rpm  4.13.0
rpmcallback.h
Go to the documentation of this file.
1 #ifndef _RPMCALLBACK_H
2 #define _RPMCALLBACK_H
3 
4 #include <rpm/rpmtypes.h>
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
13 typedef enum rpmCallbackType_e {
25  RPMCALLBACK_REPACKAGE_PROGRESS = (1 << 10), /* obsolete, unused */
26  RPMCALLBACK_REPACKAGE_START = (1 << 11), /* obsolete, unused */
27  RPMCALLBACK_REPACKAGE_STOP = (1 << 12), /* obsolete, unused */
33  RPMCALLBACK_INST_STOP = (1 << 18),
36 
51 typedef void * (*rpmCallbackFunction)
52  (const void * h,
53  const rpmCallbackType what,
54  const rpm_loff_t amount,
55  const rpm_loff_t total,
56  fnpyKey key,
57  rpmCallbackData data);
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #endif /* _RPMCALLBACK_H */
RPMCALLBACK_INST_CLOSE_FILE
@ RPMCALLBACK_INST_CLOSE_FILE
Definition: rpmcallback.h:18
RPMCALLBACK_INST_OPEN_FILE
@ RPMCALLBACK_INST_OPEN_FILE
Definition: rpmcallback.h:17
RPMCALLBACK_REPACKAGE_START
@ RPMCALLBACK_REPACKAGE_START
Definition: rpmcallback.h:26
RPMCALLBACK_REPACKAGE_STOP
@ RPMCALLBACK_REPACKAGE_STOP
Definition: rpmcallback.h:27
RPMCALLBACK_UNPACK_ERROR
@ RPMCALLBACK_UNPACK_ERROR
Definition: rpmcallback.h:28
RPMCALLBACK_INST_STOP
@ RPMCALLBACK_INST_STOP
Definition: rpmcallback.h:33
RPMCALLBACK_SCRIPT_ERROR
@ RPMCALLBACK_SCRIPT_ERROR
Definition: rpmcallback.h:30
RPMCALLBACK_INST_PROGRESS
@ RPMCALLBACK_INST_PROGRESS
Definition: rpmcallback.h:15
rpmCallbackData
void * rpmCallbackData
Definition: rpmtypes.h:76
rpm_loff_t
uint64_t rpm_loff_t
Definition: rpmtypes.h:51
RPMCALLBACK_REPACKAGE_PROGRESS
@ RPMCALLBACK_REPACKAGE_PROGRESS
Definition: rpmcallback.h:25
rpmCallbackType
enum rpmCallbackType_e rpmCallbackType
Bit(s) to identify progress callbacks.
RPMCALLBACK_TRANS_STOP
@ RPMCALLBACK_TRANS_STOP
Definition: rpmcallback.h:21
RPMCALLBACK_UNINST_STOP
@ RPMCALLBACK_UNINST_STOP
Definition: rpmcallback.h:24
RPMCALLBACK_TRANS_PROGRESS
@ RPMCALLBACK_TRANS_PROGRESS
Definition: rpmcallback.h:19
RPMCALLBACK_UNINST_PROGRESS
@ RPMCALLBACK_UNINST_PROGRESS
Definition: rpmcallback.h:22
RPMCALLBACK_INST_START
@ RPMCALLBACK_INST_START
Definition: rpmcallback.h:16
RPMCALLBACK_TRANS_START
@ RPMCALLBACK_TRANS_START
Definition: rpmcallback.h:20
RPMCALLBACK_CPIO_ERROR
@ RPMCALLBACK_CPIO_ERROR
Definition: rpmcallback.h:29
RPMCALLBACK_UNKNOWN
@ RPMCALLBACK_UNKNOWN
Definition: rpmcallback.h:14
RPMCALLBACK_SCRIPT_STOP
@ RPMCALLBACK_SCRIPT_STOP
Definition: rpmcallback.h:32
RPMCALLBACK_UNINST_START
@ RPMCALLBACK_UNINST_START
Definition: rpmcallback.h:23
fnpyKey
const typedef void * fnpyKey
Definition: rpmtypes.h:75
RPMCALLBACK_SCRIPT_START
@ RPMCALLBACK_SCRIPT_START
Definition: rpmcallback.h:31
RPMCALLBACK_ELEM_PROGRESS
@ RPMCALLBACK_ELEM_PROGRESS
Definition: rpmcallback.h:34
rpmCallbackType_e
rpmCallbackType_e
Bit(s) to identify progress callbacks.
Definition: rpmcallback.h:13