blob: accbc00992d46dc9d0b9c2d3d1f1089240bccb55 (
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
|
#ifndef H_RPMGI
#define H_RPMGI
/** \ingroup rpmio
* \file lib/rpmgi.h
*/
#include <rpm/rpmtypes.h>
#include <rpm/argv.h>
#ifdef __cplusplus
extern "C" {
#endif
/** \ingroup rpmgi
*/
typedef enum rpmgiFlags_e {
RPMGI_NONE = 0,
RPMGI_NOGLOB = (1 << 2),
RPMGI_NOMANIFEST = (1 << 3),
} rpmgiFlags;
extern rpmgiFlags giFlags;
/** \ingroup rpmgi
* Destroy a generalized iterator.
* @param gi generalized iterator
* @return NULL always
*/
RPM_GNUC_INTERNAL
rpmgi rpmgiFree(rpmgi gi);
/** \ingroup rpmgi
* Return a generalized iterator.
* @param ts transaction set
* @param flags iterator flags
* @param argv arg list
* @return new iterator
*/
RPM_GNUC_INTERNAL
rpmgi rpmgiNew(rpmts ts, rpmgiFlags flags, ARGV_const_t argv);
/** \ingroup rpmgi
* Perform next iteration step.
* @param gi generalized iterator
* @returns next header (new reference), NULL on end of iteration
*/
RPM_GNUC_INTERNAL
Header rpmgiNext(rpmgi gi);
/** \ingroup rpmgi
* Return number of errors (file not found etc) encountered during iteration
* @param gi generalized iterator
* @return number of errors
*/
RPM_GNUC_INTERNAL
int rpmgiNumErrors(rpmgi gi);
#ifdef __cplusplus
}
#endif
#endif /* H_RPMGI */
|