rpm 4.18.2
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
19typedef enum rpmCallbackType_e {
31 RPMCALLBACK_REPACKAGE_PROGRESS = (1 << 10), /* obsolete, unused */
32 RPMCALLBACK_REPACKAGE_START = (1 << 11), /* obsolete, unused */
33 RPMCALLBACK_REPACKAGE_STOP = (1 << 12), /* obsolete, unused */
45
60typedef 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 */
void * rpmCallbackData
Definition rpmtypes.h:77
uint64_t rpm_loff_t
Definition rpmtypes.h:51
const void * fnpyKey
Definition rpmtypes.h:76
rpmCallbackType_e
Bit(s) to identify progress callbacks.
Definition rpmcallback.h:19
@ RPMCALLBACK_UNINST_PROGRESS
Definition rpmcallback.h:28
@ RPMCALLBACK_VERIFY_PROGRESS
Definition rpmcallback.h:41
@ RPMCALLBACK_TRANS_START
Definition rpmcallback.h:26
@ RPMCALLBACK_CPIO_ERROR
Definition rpmcallback.h:35
@ RPMCALLBACK_INST_START
Definition rpmcallback.h:22
@ RPMCALLBACK_INST_PROGRESS
Definition rpmcallback.h:21
@ RPMCALLBACK_VERIFY_STOP
Definition rpmcallback.h:43
@ RPMCALLBACK_INST_CLOSE_FILE
Definition rpmcallback.h:24
@ RPMCALLBACK_VERIFY_START
Definition rpmcallback.h:42
@ RPMCALLBACK_ELEM_PROGRESS
Definition rpmcallback.h:40
@ RPMCALLBACK_TRANS_STOP
Definition rpmcallback.h:27
@ RPMCALLBACK_INST_STOP
Definition rpmcallback.h:39
@ RPMCALLBACK_UNINST_START
Definition rpmcallback.h:29
@ RPMCALLBACK_REPACKAGE_START
Definition rpmcallback.h:32
@ RPMCALLBACK_SCRIPT_START
Definition rpmcallback.h:37
@ RPMCALLBACK_SCRIPT_ERROR
Definition rpmcallback.h:36
@ RPMCALLBACK_UNKNOWN
Definition rpmcallback.h:20
@ RPMCALLBACK_UNPACK_ERROR
Definition rpmcallback.h:34
@ RPMCALLBACK_INST_OPEN_FILE
Definition rpmcallback.h:23
@ RPMCALLBACK_REPACKAGE_STOP
Definition rpmcallback.h:33
@ RPMCALLBACK_TRANS_PROGRESS
Definition rpmcallback.h:25
@ RPMCALLBACK_REPACKAGE_PROGRESS
Definition rpmcallback.h:31
@ RPMCALLBACK_UNINST_STOP
Definition rpmcallback.h:30
@ RPMCALLBACK_SCRIPT_STOP
Definition rpmcallback.h:38
enum rpmCallbackType_e rpmCallbackType
Bit(s) to identify progress callbacks.
Typedefs for RPM abstract data types.