From aa1c0ba9f8787fc3b1a1190103e394b0c1c95922 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 20 Nov 2006 09:10:23 +0000 Subject: * repo-add script - to add entries to a db file directly from package data (no PKGBUILD) * libalpm api changes - move from a _getinfo(p, WHAT_WE_WANT) scheme to a typesafe _get_what_we_want(p) scheme [not 100% complete yet] * some const correctness changes * removal of PM_* types in alpm.h in favor of the pm*_t types used throughout libalpm --- lib/libalpm/deps.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'lib/libalpm/deps.h') diff --git a/lib/libalpm/deps.h b/lib/libalpm/deps.h index 030020a9..d3269673 100644 --- a/lib/libalpm/deps.h +++ b/lib/libalpm/deps.h @@ -25,18 +25,21 @@ #include "db.h" #include "sync.h" +#include "alpm.h" -typedef struct __pmdepend_t { +/* Dependency */ +struct __pmdepend_t { unsigned char mod; char name[PKG_NAME_LEN]; char version[PKG_VERSION_LEN]; -} pmdepend_t; +}; -typedef struct __pmdepmissing_t { +/* Missing dependency */ +struct __pmdepmissing_t { char target[PKG_NAME_LEN]; unsigned char type; pmdepend_t depend; -} pmdepmissing_t; +}; pmdepmissing_t *_alpm_depmiss_new(const char *target, unsigned char type, unsigned char depmod, const char *depname, const char *depversion); -- cgit v1.2.3-2-g168b