blob: 91ea949077d38402790d1a23d65093837a02b955 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
#ifndef _RPMTYPES_H
#define _RPMTYPES_H
/** \ingroup rpmtypes
* \file lib/rpmtypes.h
*
* Typedefs for RPM abstract data types.
* @todo The grouping needs love to look sane...
*/
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef const char * errmsg_t;
/** \ingroup rpmtypes
*
* RPM header and data retrieval types.
* @{
*/
typedef struct headerToken_s * Header;
typedef struct headerIterator_s * HeaderIterator;
typedef int32_t rpm_tag_t;
typedef uint32_t rpm_tagtype_t;
typedef uint32_t rpm_count_t;
typedef rpm_tag_t rpmTagVal;
typedef rpm_tag_t rpmDbiTagVal;
typedef void * rpm_data_t;
typedef const void * rpm_constdata_t;
typedef struct rpmtd_s * rpmtd;
typedef uint32_t rpm_color_t;
typedef uint32_t rpm_flag_t;
typedef uint32_t rpm_tid_t;
typedef uint32_t rpmFlags;
/** @} */
/** \ingroup rpmtypes
*
* In-header hardcoded sizes for various POSIXy types
* @{
*/
typedef uint32_t rpm_off_t;
typedef uint64_t rpm_loff_t;
typedef uint32_t rpm_time_t;
typedef uint16_t rpm_mode_t;
typedef uint16_t rpm_rdev_t;
typedef uint32_t rpm_dev_t;
typedef uint32_t rpm_ino_t;
/** @} */
/** \ingroup rpmtypes
* The main types involved in transaction manipulation
* @{
*/
typedef struct rpmts_s * rpmts;
typedef struct rpmte_s * rpmte;
typedef struct rpmds_s * rpmds;
typedef struct rpmfi_s * rpmfi;
typedef struct rpmdb_s * rpmdb;
typedef struct rpmdbMatchIterator_s * rpmdbMatchIterator;
typedef struct rpmtsi_s * rpmtsi;
typedef struct rpmps_s * rpmps;
typedef struct rpmdbIndexIterator_s * rpmdbIndexIterator;
typedef const void * fnpyKey;
typedef void * rpmCallbackData;
/** @} */
typedef struct rpmPubkey_s * rpmPubkey;
typedef struct rpmKeyring_s * rpmKeyring;
typedef uint32_t rpmsid;
typedef struct rpmstrPool_s * rpmstrPool;
typedef struct rpmPlugins_s * rpmPlugins;
typedef struct rpmgi_s * rpmgi;
typedef struct rpmSpec_s * rpmSpec;
typedef struct rpmRelocation_s rpmRelocation;
/** \ingroup rpmtypes
* RPM IO file descriptor type
*/
typedef struct _FD_s * FD_t;
/** \ingroup rpmtypes
* Package read return codes.
*/
typedef enum rpmRC_e {
RPMRC_OK = 0, /*!< Generic success code */
RPMRC_NOTFOUND = 1, /*!< Generic not found code. */
RPMRC_FAIL = 2, /*!< Generic failure code. */
RPMRC_NOTTRUSTED = 3, /*!< Signature is OK, but key is not trusted. */
RPMRC_NOKEY = 4 /*!< Public key is unavailable. */
} rpmRC;
#ifdef __cplusplus
}
#endif
/* XXX included late as rpmtag.h depends on our definitions here... */
#include <rpm/rpmtag.h>
#endif /* _RPMTYPES_H */
|