From 95ea99e1973c03abe73b7c20ded9a24905420291 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Tue, 29 Mar 2005 20:31:03 +0000 Subject: Turned pmdepmissing_t into an opaque structure --- lib/libalpm/deps.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'lib/libalpm/deps.h') 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); -- cgit v1.2.3-2-g168b