index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-29 20:31:03 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-29 20:31:03 +0000 |
commit | 95ea99e1973c03abe73b7c20ded9a24905420291 (patch) | |
tree | 32c7887786916842bf8e9f2dd93b8cd03c44f5d0 /lib/libalpm/deps.h | |
parent | e5389ddc620bb4584a29c8e36ea1d2584f013f7f (diff) |
-rw-r--r-- | lib/libalpm/deps.h | 14 |
diff --git a/lib/libalpm/deps.h b/lib/libalpm/deps.h index 71af64be..b45fa48c 100644 --- a/lib/libalpm/deps.h +++ b/lib/libalpm/deps.h @@ -24,8 +24,20 @@ #include "db.h" #include "sync.h" +typedef struct __pmdepend_t { + unsigned char mod; + char name[PKG_NAME_LEN]; + char version[PKG_VERSION_LEN]; +} pmdepend_t; + +typedef struct __pmdepmissing_t { + char target[PKG_NAME_LEN]; + unsigned char type; + pmdepend_t depend; +} pmdepmissing_t; + PMList *sortbydeps(PMList *targets, int mode); -PMList *checkdeps(pmdb_t *db, unsigned short op, PMList *packages); +PMList *checkdeps(pmdb_t *db, unsigned char op, PMList *packages); int splitdep(char *depstr, pmdepend_t *depend); PMList *removedeps(pmdb_t *db, PMList *targs); int resolvedeps(pmdb_t *local, PMList *databases, pmsync_t *sync, PMList *list, PMList *trail, PMList **data); |