diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-02-17 22:35:26 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-02-17 22:35:26 +0000 |
commit | be39f49a5461d5804e4391266dfea6dd076691f4 (patch) | |
tree | 911a7f550895d9fdda7b4846d6775699549b2bf4 /lib/libalpm/sync.h | |
parent | 5e4c3661c6066623bbfa34bacccfafda5be21315 (diff) | |
download | 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/sync.h')
-rw-r--r-- | lib/libalpm/sync.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libalpm/sync.h b/lib/libalpm/sync.h index f8859977..196910ad 100644 --- a/lib/libalpm/sync.h +++ b/lib/libalpm/sync.h @@ -31,17 +31,17 @@ typedef struct __pmsyncpkg_t { void *data; } pmsyncpkg_t; -#define FREESYNC(p) do { if(p) { sync_free(p); p = NULL; } } while(0) +#define FREESYNC(p) do { if(p) { _alpm_sync_free(p); p = NULL; } } while(0) -pmsyncpkg_t *sync_new(int type, pmpkg_t *spkg, void *data); -void sync_free(pmsyncpkg_t *sync); +pmsyncpkg_t *_alpm_sync_new(int type, pmpkg_t *spkg, void *data); +void _alpm_sync_free(pmsyncpkg_t *sync); -PMList *sync_load_dbarchive(char *archive); +PMList *_alpm_sync_load_dbarchive(char *archive); -int sync_sysupgrade(pmtrans_t *trans, pmdb_t *db_local, PMList *dbs_sync); -int sync_addtarget(pmtrans_t *trans, pmdb_t *db_local, PMList *dbs_sync, char *name); -int sync_prepare(pmtrans_t *trans, pmdb_t *db_local, PMList *dbs_sync, PMList **data); -int sync_commit(pmtrans_t *trans, pmdb_t *db_local, PMList **data); +int _alpm_sync_sysupgrade(pmtrans_t *trans, pmdb_t *db_local, PMList *dbs_sync); +int _alpm_sync_addtarget(pmtrans_t *trans, pmdb_t *db_local, PMList *dbs_sync, char *name); +int _alpm_sync_prepare(pmtrans_t *trans, pmdb_t *db_local, PMList *dbs_sync, PMList **data); +int _alpm_sync_commit(pmtrans_t *trans, pmdb_t *db_local, PMList **data); #endif /* _ALPM_SYNC_H */ |