rpm: /srv/include/rpm/rpmcallback.h Source File

rpm 4.20.1 The RPM Package Manager

Loading...
Searching...
No Matches
rpmcallback.h
Go to the documentation of this file.
1#ifndef _RPMCALLBACK_H
2#define _RPMCALLBACK_H
3
10#include <rpm/rpmtypes.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
19 typedef enum rpmCallbackType_e {
20 RPMCALLBACK_UNKNOWN = 0,
21 RPMCALLBACK_INST_PROGRESS = (1 << 0),
22 RPMCALLBACK_INST_START = (1 << 1),
23 RPMCALLBACK_INST_OPEN_FILE = (1 << 2),
24 RPMCALLBACK_INST_CLOSE_FILE = (1 << 3),
25 RPMCALLBACK_TRANS_PROGRESS = (1 << 4),
26 RPMCALLBACK_TRANS_START = (1 << 5),
27 RPMCALLBACK_TRANS_STOP = (1 << 6),
28 RPMCALLBACK_UNINST_PROGRESS = (1 << 7),
29 RPMCALLBACK_UNINST_START = (1 << 8),
30 RPMCALLBACK_UNINST_STOP = (1 << 9),
31 RPMCALLBACK_REPACKAGE_PROGRESS = (1 << 10), /* obsolete, unused */
32 RPMCALLBACK_REPACKAGE_START = (1 << 11), /* obsolete, unused */
33 RPMCALLBACK_REPACKAGE_STOP = (1 << 12), /* obsolete, unused */
34 RPMCALLBACK_UNPACK_ERROR = (1 << 13),
35 RPMCALLBACK_CPIO_ERROR = (1 << 14),
36 RPMCALLBACK_SCRIPT_ERROR = (1 << 15),
37 RPMCALLBACK_SCRIPT_START = (1 << 16),
38 RPMCALLBACK_SCRIPT_STOP = (1 << 17),
39 RPMCALLBACK_INST_STOP = (1 << 18),
40 RPMCALLBACK_ELEM_PROGRESS = (1 << 19),
41 RPMCALLBACK_VERIFY_PROGRESS = (1 << 20),
42 RPMCALLBACK_VERIFY_START = (1 << 21),
43 RPMCALLBACK_VERIFY_STOP = (1 << 22),
44} rpmCallbackType;
45
60 typedef void * (*rpmCallbackFunction)
61 (const void * h,
62 const rpmCallbackType what,
63 const rpm_loff_t amount,
64 const rpm_loff_t total,
65 fnpyKey key,
66 rpmCallbackData data);
67
68#ifdef __cplusplus
69}
70#endif
71
72#endif /* _RPMCALLBACK_H */
rpmCallbackType_e
rpmCallbackType_e
Definition rpmcallback.h:19
rpmCallbackType
enum rpmCallbackType_e rpmCallbackType
rpmtypes.h