changed parameters to install.c to allow for a notification function
authorroot <devnull@localhost>
Mon, 22 Jan 1996 21:13:27 +0000 (21:13 +0000)
committerroot <devnull@localhost>
Mon, 22 Jan 1996 21:13:27 +0000 (21:13 +0000)
CVS patchset: 220
CVS date: 1996/01/22 21:13:27

lib/rpmlib.h

index 83ce205..8b55261 100644 (file)
 
 #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);