spkgdeveloper's documentation

taction.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 \*----------------------------------------------------------------------*/
00018 #ifndef SPKG__TRANSACTION_H
00019 #define SPKG__TRANSACTION_H
00020 
00021 #include <glib.h>
00022 #include "error.h"
00023 
00024 G_BEGIN_DECLS
00025 
00026 #define TA_ACTIVE  E(0) 
00027 #define TA_NACTIVE E(1) 
00035 extern gint ta_initialize(gboolean dryrun, struct error* e);
00036 
00042 extern gint ta_finalize();
00043 
00049 extern gint ta_rollback();
00050 
00056 extern void ta_keep_remove(gchar* path, gboolean is_dir);
00057 
00063 extern void ta_move_remove(gchar* path, gchar* dst_path);
00064 
00070 extern void ta_link_nothing(gchar* path, gchar* tgt_path);
00071 
00077 extern void ta_forcelink_nothing(gchar* path, gchar* tgt_path);
00078 
00084 extern void ta_symlink_nothing(gchar* path, gchar* tgt_path);
00085 
00091 extern void ta_forcesymlink_nothing(gchar* path, gchar* tgt_path);
00092 
00100 extern void ta_chperm_nothing(gchar* path, gint mode, gint owner, gint group);
00101 
00109 extern void ta_remove_nothing(gchar* path, gint is_dir);
00110 
00111 G_END_DECLS
00112 
00113 #endif
00114 
Documentation for spkg, Sun Jul 23 13:12:53 2006.