From ae492679ac7f4a612978bb6a8b648918636d35e7 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 22 Jan 1996 21:13:27 +0000 Subject: [PATCH] changed parameters to install.c to allow for a notification function CVS patchset: 220 CVS date: 1996/01/22 21:13:27 --- lib/rpmlib.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/rpmlib.h b/lib/rpmlib.h index 83ce205..8b55261 100644 --- a/lib/rpmlib.h +++ b/lib/rpmlib.h @@ -68,10 +68,13 @@ #define INSTALL_REPLACEPKG 1 #define INSTALL_REPLACEFILES 2 -#define INSTALL_PROGRESS 4 +#define INSTALL_TEST 4 typedef struct rpmdb * rpmdb; +typedef void (*notifyFunction)(const unsigned long amount, + const unsigned long total); + int rpmdbOpen (char * prefix, rpmdb * dbp, int mode, int perms); /* 0 on error */ int rpmdbCreate (rpmdb db, int mode, int perms); @@ -87,7 +90,8 @@ int rpmdbFindByFile(rpmdb db, char * filespec, dbIndexSet * matches); int rpmdbFindByGroup(rpmdb db, char * group, dbIndexSet * matches); int rpmdbFindPackage(rpmdb db, char * name, dbIndexSet * matches); -int rpmInstallPackage(char * prefix, rpmdb db, int fd, int flags, int test); +int rpmInstallPackage(char * prefix, rpmdb db, int fd, int flags, + notifyFunction notify); int rpmRemovePackage(char * prefix, rpmdb db, unsigned int offset, int test); int rpmdbRemove(rpmdb db, unsigned int offset, int tolerant); int rpmdbAdd(rpmdb db, Header dbentry); -- 2.7.4