diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-04-16 22:15:50 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-04-16 22:15:50 +0000 |
commit | 36087bb392e0f045039cd9d51188d9eb7fe4d98b (patch) | |
tree | 471425bb5620c5ff9f77b699ca4491554d4726fb /lib/libalpm/sync.h | |
parent | 29a712e3939ff359cdaa8574be2c76d6f71a0c78 (diff) | |
download | pacman-36087bb392e0f045039cd9d51188d9eb7fe4d98b.tar.xz |
- reworked pmsyncpkg_t structure
- got ride of uneeded handle external references
Diffstat (limited to 'lib/libalpm/sync.h')
-rw-r--r-- | lib/libalpm/sync.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/libalpm/sync.h b/lib/libalpm/sync.h index 7c839736..d5e5a02f 100644 --- a/lib/libalpm/sync.h +++ b/lib/libalpm/sync.h @@ -24,25 +24,22 @@ #include "db.h" #include "package.h" #include "trans.h" -#include "alpm.h" typedef struct __pmsyncpkg_t { unsigned char type; - pmpkg_t *lpkg; - pmpkg_t *spkg; - PMList *replaces; + pmpkg_t *pkg; + void *data; } pmsyncpkg_t; -pmsyncpkg_t *sync_new(int type, pmpkg_t *lpkg, pmpkg_t *spkg); +pmsyncpkg_t *sync_new(int type, pmpkg_t *spkg, void *data); void sync_free(pmsyncpkg_t *sync); PMList *sync_load_archive(char *archive); -int sync_sysupgrade(pmlist_t **data); - -int sync_addtarget(pmdb_t *db, PMList *dbs_sync, pmtrans_t *trans, char *name); -int sync_prepare(pmdb_t *db, pmtrans_t *trans, PMList **data); -int sync_commit(pmdb_t *db, pmtrans_t *trans); +int sync_sysupgrade(pmtrans_t *trans, pmdb_t *db, PMList *dbs_sync); +int sync_addtarget(pmtrans_t *trans, pmdb_t *db, PMList *dbs_sync, char *name); +int sync_prepare(pmtrans_t *trans, pmdb_t *db, PMList *dbs_sync, PMList **data); +int sync_commit(pmtrans_t *trans, pmdb_t *db); #endif /* _ALPM_SYNC_H */ |