Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/sync.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-04-06 18:29:17 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-04-06 18:29:17 +0000
commit3b49720e397b1c8042cf262547f6e8a0590dc078 (patch)
tree1138eda94df1c169c95a2b3d3dbe2b706ba6fe3c /lib/libalpm/sync.h
parent04e054f3cbc9ddda9d99e4891055ae2743b3b8ff (diff)
updated structure names (PM_SYNCPKG), and added transaction queues (install & remove)
Diffstat (limited to 'lib/libalpm/sync.h')
-rw-r--r--lib/libalpm/sync.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/lib/libalpm/sync.h b/lib/libalpm/sync.h
index 51e0dd3d..94a70189 100644
--- a/lib/libalpm/sync.h
+++ b/lib/libalpm/sync.h
@@ -26,28 +26,18 @@
#include "trans.h"
#include "alpm.h"
-typedef struct __syncpkg_t { /* ORE: not used for now */
- pmpkg_t *pkg;
- pmdb_t *db;
-} pmsyncpkg_t;
-
-typedef struct __pmsync_t {
+typedef struct __pmsyncpkg_t {
unsigned char type;
pmpkg_t *lpkg;
pmpkg_t *spkg;
- pmdb_t *dbs; /* ORE: not used for now */
-} pmsync_t;
+ PMList *replaces;
+} pmsyncpkg_t;
-pmsync_t *sync_new(int type, pmpkg_t *lpkg, pmpkg_t *spkg);
+pmsyncpkg_t *sync_new(int type, pmpkg_t *lpkg, pmpkg_t *spkg);
+void sync_free(pmsyncpkg_t *sync);
PMList *sync_load_archive(char *archive);
-/*int sync_findpkg(char *name, PMList *dbs, pmsyncpkg_t **sync);
-pmsyncpkg_t *find_pkginsync(char *needle, PMList *haystack);
-PMList *rm_pkginsync(char *needle, PMList *haystack);*/
-
-int sync_sysupgrade(PMList **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);