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/sync.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/libalpm/sync.h') diff --git a/lib/libalpm/sync.h b/lib/libalpm/sync.h index d23dc6d8..f3d5ec02 100644 --- a/lib/libalpm/sync.h +++ b/lib/libalpm/sync.h @@ -23,15 +23,14 @@ #ifndef _ALPM_SYNC_H #define _ALPM_SYNC_H -#include "db.h" -#include "package.h" -#include "trans.h" +#include "alpm.h" -typedef struct __pmsyncpkg_t { +/* Sync package */ +struct __pmsyncpkg_t { unsigned char type; pmpkg_t *pkg; void *data; -} pmsyncpkg_t; +}; #define FREESYNC(p) do { if(p) { _alpm_sync_free(p); p = NULL; } } while(0) -- cgit v1.2.3-24-g4f1b