summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-08-04 16:55:55 +0000
committerjbj <devnull@localhost>2002-08-04 16:55:55 +0000
commitde0ff3b553d9f1b44c73b378637544ed6092df1e (patch)
tree35e9ff8f95719cfa257184adba816e1b65c3ea53 /rpmio
parent00375ca2bf6017f6fb652558776fb588e9df142f (diff)
downloadrpm-de0ff3b553d9f1b44c73b378637544ed6092df1e.tar.gz
rpm-de0ff3b553d9f1b44c73b378637544ed6092df1e.tar.bz2
rpm-de0ff3b553d9f1b44c73b378637544ed6092df1e.zip
- resurrect --rollback.
- renumber the callback types to be an orthogonal bit mask. - provide repackage progress callbacks, compression is slow. CVS patchset: 5597 CVS date: 2002/08/04 16:55:55
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/rpmmessages.h29
1 files changed, 17 insertions, 12 deletions
diff --git a/rpmio/rpmmessages.h b/rpmio/rpmmessages.h
index fe0d0c94c..5bad9a64f 100644
--- a/rpmio/rpmmessages.h
+++ b/rpmio/rpmmessages.h
@@ -36,20 +36,25 @@ typedef /*@abstract@*/ const void * fnpyKey;
/*@=redef@*/
/**
+ * Bit(s) to identify progress callbacks.
*/
typedef enum rpmCallbackType_e {
- RPMCALLBACK_INST_PROGRESS,
- RPMCALLBACK_INST_START,
- RPMCALLBACK_INST_OPEN_FILE,
- RPMCALLBACK_INST_CLOSE_FILE,
- RPMCALLBACK_TRANS_PROGRESS,
- RPMCALLBACK_TRANS_START,
- RPMCALLBACK_TRANS_STOP,
- RPMCALLBACK_UNINST_PROGRESS,
- RPMCALLBACK_UNINST_START,
- RPMCALLBACK_UNINST_STOP,
- RPMCALLBACK_UNPACK_ERROR,
- RPMCALLBACK_CPIO_ERROR
+ RPMCALLBACK_UNKNOWN = 0,
+ RPMCALLBACK_INST_PROGRESS = (1 << 0),
+ RPMCALLBACK_INST_START = (1 << 1),
+ RPMCALLBACK_INST_OPEN_FILE = (1 << 2),
+ RPMCALLBACK_INST_CLOSE_FILE = (1 << 3),
+ RPMCALLBACK_TRANS_PROGRESS = (1 << 4),
+ RPMCALLBACK_TRANS_START = (1 << 5),
+ RPMCALLBACK_TRANS_STOP = (1 << 6),
+ RPMCALLBACK_UNINST_PROGRESS = (1 << 7),
+ RPMCALLBACK_UNINST_START = (1 << 8),
+ RPMCALLBACK_UNINST_STOP = (1 << 9),
+ RPMCALLBACK_REPACKAGE_PROGRESS = (1 << 10),
+ RPMCALLBACK_REPACKAGE_START = (1 << 11),
+ RPMCALLBACK_REPACKAGE_STOP = (1 << 12),
+ RPMCALLBACK_UNPACK_ERROR = (1 << 13),
+ RPMCALLBACK_CPIO_ERROR = (1 << 14)
} rpmCallbackType;
/**