Stick rpmCallbackType to rpmtypes too..
[platform/upstream/rpm.git] / lib / rpmtypes.h
1 #ifndef _RPMTYPES_H
2 #define _RPMTYPES_H
3
4 /** \ingroup rpmtypes
5  * \file lib/rpmtypes.h
6  */
7
8 #include <rpm/rpmints.h>
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 typedef const char *    errmsg_t;
15
16 typedef int32_t         rpm_tag_t;
17 typedef uint32_t        rpm_tagtype_t;
18 typedef uint32_t        rpm_count_t;
19
20 typedef void *          rpm_data_t;
21 typedef const void *    rpm_constdata_t;
22
23 typedef struct headerToken_s * Header;
24 typedef struct headerIterator_s * HeaderIterator;
25
26 typedef struct rpmts_s * rpmts;
27 typedef struct rpmte_s * rpmte;
28 typedef struct rpmds_s * rpmds;
29 typedef struct rpmfi_s * rpmfi;
30 typedef struct rpmdb_s * rpmdb;
31 typedef struct rpmdbMatchIterator_s * rpmdbMatchIterator;
32
33 typedef struct rpmal_s * rpmal;
34 typedef void * rpmalKey;
35
36 typedef struct rpmgi_s * rpmgi;
37
38 typedef struct rpmSpec_s * rpmSpec;
39
40 typedef const void * fnpyKey;
41 typedef void * rpmCallbackData;
42
43 typedef struct rpmRelocation_s rpmRelocation;
44
45 typedef struct _FD_s * FD_t;
46
47 /**
48  * Package read return codes.
49  */
50 typedef enum rpmRC_e {
51     RPMRC_OK            = 0,    /*!< Generic success code */
52     RPMRC_NOTFOUND      = 1,    /*!< Generic not found code. */
53     RPMRC_FAIL          = 2,    /*!< Generic failure code. */
54     RPMRC_NOTTRUSTED    = 3,    /*!< Signature is OK, but key is not trusted. */
55     RPMRC_NOKEY         = 4     /*!< Public key is unavailable. */
56 } rpmRC;
57
58 #ifdef __cplusplus
59 }
60 #endif
61
62 #endif /* _RPMTYPES_H */