rpm 4.10.0

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

rpmcallback.h
Go to the documentation of this file.

    00001 #ifndef _RPMCALLBACK_H
    00002 #define _RPMCALLBACK_H
    00003
    00004 #include <rpm/rpmtypes.h>
    00005
    00006 #ifdef __cplusplus
    00007 extern "C" {
    00008 #endif
    00009
    00013 typedef enum rpmCallbackType_e {
    00014     RPMCALLBACK_UNKNOWN         = 0,
    00015     RPMCALLBACK_INST_PROGRESS   = (1 <<  0),
    00016     RPMCALLBACK_INST_START      = (1 <<  1),
    00017     RPMCALLBACK_INST_OPEN_FILE  = (1 <<  2),
    00018     RPMCALLBACK_INST_CLOSE_FILE = (1 <<  3),
    00019     RPMCALLBACK_TRANS_PROGRESS  = (1 <<  4),
    00020     RPMCALLBACK_TRANS_START     = (1 <<  5),
    00021     RPMCALLBACK_TRANS_STOP      = (1 <<  6),
    00022     RPMCALLBACK_UNINST_PROGRESS = (1 <<  7),
    00023     RPMCALLBACK_UNINST_START    = (1 <<  8),
    00024     RPMCALLBACK_UNINST_STOP     = (1 <<  9),
    00025     RPMCALLBACK_REPACKAGE_PROGRESS = (1 << 10), /* obsolete, unused */
    00026     RPMCALLBACK_REPACKAGE_START = (1 << 11),    /* obsolete, unused */
    00027     RPMCALLBACK_REPACKAGE_STOP  = (1 << 12),    /* obsolete, unused */
    00028     RPMCALLBACK_UNPACK_ERROR    = (1 << 13),
    00029     RPMCALLBACK_CPIO_ERROR      = (1 << 14),
    00030     RPMCALLBACK_SCRIPT_ERROR    = (1 << 15),
    00031     RPMCALLBACK_SCRIPT_START    = (1 << 16),
    00032     RPMCALLBACK_SCRIPT_STOP     = (1 << 17),
    00033     RPMCALLBACK_INST_STOP       = (1 << 18),
    00034 } rpmCallbackType;
    00035
    00038 typedef void * (*rpmCallbackFunction)
    00039                 (const void * h,
    00040                 const rpmCallbackType what,
    00041                 const rpm_loff_t amount,
    00042                 const rpm_loff_t total,
    00043                 fnpyKey key,
    00044                 rpmCallbackData data);
    00045
    00046 #ifdef __cplusplus
    00047 }
    00048 #endif
    00049
    00050 #endif /* _RPMCALLBACK_H */