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:
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);