rpmcallback.h
Go to the documentation of this file.
#ifndef _RPMCALLBACK_H
#define _RPMCALLBACK_H
#include <rpm/rpmtypes.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum rpmCallbackType_e {
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), /* obsolete, unused */
RPMCALLBACK_REPACKAGE_START = (1 << 11), /* obsolete, unused */
RPMCALLBACK_REPACKAGE_STOP = (1 << 12), /* obsolete, unused */
RPMCALLBACK_UNPACK_ERROR = (1 << 13),
RPMCALLBACK_CPIO_ERROR = (1 << 14),
RPMCALLBACK_SCRIPT_ERROR = (1 << 15),
RPMCALLBACK_SCRIPT_START = (1 << 16),
RPMCALLBACK_SCRIPT_STOP = (1 << 17),
RPMCALLBACK_INST_STOP = (1 << 18),
RPMCALLBACK_ELEM_PROGRESS = (1 << 19),
RPMCALLBACK_VERIFY_PROGRESS = (1 << 20),
RPMCALLBACK_VERIFY_START = (1 << 21),
RPMCALLBACK_VERIFY_STOP = (1 << 22),
} rpmCallbackType;
typedef void * (*rpmCallbackFunction)
(const void * h,
const rpmCallbackType what,
const rpm_loff_t amount,
const rpm_loff_t total,
fnpyKey key,
rpmCallbackData data);
#ifdef __cplusplus
}
#endif
#endif /* _RPMCALLBACK_H */
RPMCALLBACK_UNKNOWN
Definition: rpmcallback.h:20
rpmCallbackType
enum rpmCallbackType_e rpmCallbackType
Bit(s) to identify progress callbacks.
RPMCALLBACK_REPACKAGE_START
Definition: rpmcallback.h:32
RPMCALLBACK_UNINST_STOP
Definition: rpmcallback.h:30
RPMCALLBACK_VERIFY_PROGRESS
Definition: rpmcallback.h:41
RPMCALLBACK_CPIO_ERROR
Definition: rpmcallback.h:35
rpmCallbackData
void * rpmCallbackData
Definition: rpmtypes.h:76
RPMCALLBACK_INST_START
Definition: rpmcallback.h:22
RPMCALLBACK_TRANS_PROGRESS
Definition: rpmcallback.h:25
RPMCALLBACK_INST_OPEN_FILE
Definition: rpmcallback.h:23
RPMCALLBACK_SCRIPT_STOP
Definition: rpmcallback.h:38
RPMCALLBACK_TRANS_START
Definition: rpmcallback.h:26
RPMCALLBACK_REPACKAGE_STOP
Definition: rpmcallback.h:33
RPMCALLBACK_UNPACK_ERROR
Definition: rpmcallback.h:34
rpmCallbackType_e
rpmCallbackType_e
Bit(s) to identify progress callbacks.
Definition: rpmcallback.h:19
RPMCALLBACK_INST_STOP
Definition: rpmcallback.h:39
RPMCALLBACK_TRANS_STOP
Definition: rpmcallback.h:27
RPMCALLBACK_SCRIPT_ERROR
Definition: rpmcallback.h:36
RPMCALLBACK_INST_PROGRESS
Definition: rpmcallback.h:21
fnpyKey
const void * fnpyKey
Definition: rpmtypes.h:75
RPMCALLBACK_ELEM_PROGRESS
Definition: rpmcallback.h:40
RPMCALLBACK_REPACKAGE_PROGRESS
Definition: rpmcallback.h:31
RPMCALLBACK_VERIFY_START
Definition: rpmcallback.h:42
RPMCALLBACK_UNINST_START
Definition: rpmcallback.h:29
RPMCALLBACK_INST_CLOSE_FILE
Definition: rpmcallback.h:24
RPMCALLBACK_VERIFY_STOP
Definition: rpmcallback.h:43
RPMCALLBACK_UNINST_PROGRESS
Definition: rpmcallback.h:28
rpm_loff_t
uint64_t rpm_loff_t
Definition: rpmtypes.h:51
RPMCALLBACK_SCRIPT_START
Definition: rpmcallback.h:37