From: root Date: Mon, 22 Jan 1996 21:13:27 +0000 (+0000) Subject: changed parameters to install.c to allow for a notification function X-Git-Tag: rpm-4.4-release~5515 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae492679ac7f4a612978bb6a8b648918636d35e7;p=platform%2Fupstream%2Frpm.git changed parameters to install.c to allow for a notification function CVS patchset: 220 CVS date: 1996/01/22 21:13:27 --- 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);