summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/trans.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-17 23:35:26 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-02-17 23:35:26 +0100
commitbe39f49a5461d5804e4391266dfea6dd076691f4 (patch)
tree911a7f550895d9fdda7b4846d6775699549b2bf4 /lib/libalpm/trans.h
parent5e4c3661c6066623bbfa34bacccfafda5be21315 (diff)
downloadpacman-be39f49a5461d5804e4391266dfea6dd076691f4.tar.gz
pacman-be39f49a5461d5804e4391266dfea6dd076691f4.tar.xz
prepend library function names with _alpm (helped with the patch from VMiklos <vmiklos@frugalware.org>)
added log and event callbacks to sync_commit internal transactions
Diffstat (limited to 'lib/libalpm/trans.h')
-rw-r--r--lib/libalpm/trans.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libalpm/trans.h b/lib/libalpm/trans.h
index aa0633b8..6b01035d 100644
--- a/lib/libalpm/trans.h
+++ b/lib/libalpm/trans.h
@@ -44,7 +44,7 @@ typedef struct __pmtrans_t {
#define FREETRANS(p) \
do { \
if(p) { \
- trans_free(p); \
+ _alpm_trans_free(p); \
p = NULL; \
} \
} while (0)
@@ -61,13 +61,13 @@ do { \
} \
} while(0)
-pmtrans_t *trans_new(void);
-void trans_free(pmtrans_t *trans);
-int trans_init(pmtrans_t *trans, unsigned char type, unsigned char flags, alpm_trans_cb_event event, alpm_trans_cb_conv conv);
-int trans_sysupgrade(pmtrans_t *trans);
-int trans_addtarget(pmtrans_t *trans, char *target);
-int trans_prepare(pmtrans_t *trans, PMList **data);
-int trans_commit(pmtrans_t *trans, PMList **data);
+pmtrans_t *_alpm_trans_new(void);
+void _alpm_trans_free(pmtrans_t *trans);
+int _alpm_trans_init(pmtrans_t *trans, unsigned char type, unsigned char flags, alpm_trans_cb_event event, alpm_trans_cb_conv conv);
+int _alpm_trans_sysupgrade(pmtrans_t *trans);
+int _alpm_trans_addtarget(pmtrans_t *trans, char *target);
+int _alpm_trans_prepare(pmtrans_t *trans, PMList **data);
+int _alpm_trans_commit(pmtrans_t *trans, PMList **data);
#endif /* _ALPM_TRANS_H */