spkgdeveloper's documentation

misc.h

00001 /*----------------------------------------------------------------------*\
00002 |* spkg - The Unofficial Slackware Linux Package Manager                *|
00003 |*                                      designed by Ondøej Jirman, 2005 *|
00004 |*----------------------------------------------------------------------*|
00005 |*          No copy/usage restrictions are imposed on anybody.          *|
00006 \*----------------------------------------------------------------------*/
00010 #ifndef SPKG__MISC_H
00011 #define SPKG__MISC_H
00012 
00013 #include <glib.h>
00014 
00015 G_BEGIN_DECLS
00016 
00030 extern gchar* parse_pkgname(const gchar* path, guint elem) G_GNUC_MALLOC;
00031 
00039 extern gint parse_slackdesc(const gchar* slackdesc, const gchar* sname, gchar* desc[11]);
00040 
00047 extern gchar* gen_slackdesc(const gchar* sname, gchar* desc[11]) G_GNUC_MALLOC;
00048 
00057 extern gint parse_createlink(gchar* line, gchar** dir, gchar** link, gchar** target);
00058 
00064 extern gint parse_cleanuplink(gchar* line);
00065 
00082 extern gint iter_str_lines(gchar** b, gchar** e, gchar** n, gchar** ln);
00083 
00101 extern gint iter_buf_lines(gchar** b, gchar** e, gchar** n, gchar* eof, gchar** ln);
00102 
00103 G_END_DECLS
00104 
00105 #endif
00106 
Documentation for spkg, Sun Jul 23 13:12:53 2006.