spkgdeveloper's documentation

commands.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 \*----------------------------------------------------------------------*/
00015 #ifndef SPKG__COMMANDS_H
00016 #define SPKG__COMMANDS_H
00017 
00018 #include <glib.h>
00019 #include "error.h"
00020 
00021 G_BEGIN_DECLS
00022 
00023 #define CMD_EXIST   E(0) 
00024 #define CMD_NOTEX   E(1) 
00027 struct cmd_options {
00028   gchar* root;         
00029   gboolean safe;       
00030   gboolean dryrun;     
00031   gint verbosity;      
00032   gboolean no_scripts; 
00033   gboolean no_optsyms; 
00034   gboolean no_ldconfig; 
00035   gboolean reinstall;  
00036 };
00037 
00045 extern gint cmd_install(const gchar* pkgfile, const struct cmd_options* opts, struct error* e);
00046 
00054 extern gint cmd_upgrade(const gchar* pkgfile, const struct cmd_options* opts, struct error* e);
00055 
00063 extern gint cmd_remove(const gchar* pkgname, const struct cmd_options* opts, struct error* e);
00064 
00072 extern gint cmd_list(GSList* arglist, const struct cmd_options* opts, struct error* e);
00073 
00074 G_END_DECLS
00075 
00076 #endif
00077 
Documentation for spkg, Sun Jul 23 13:12:53 2006.