rpm  4.11.1-rc1
rpmdb.h
Go to the documentation of this file.
1 #ifndef H_RPMDB
2 #define H_RPMDB
3 
9 #include <rpm/rpmtypes.h>
10 #include <rpm/rpmsw.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
19 typedef enum rpmMireMode_e {
24 } rpmMireMode;
25 
26 typedef enum rpmdbOpX_e {
31 } rpmdbOpX;
32 
39 rpmop rpmdbOp(rpmdb db, rpmdbOpX opx);
40 
46 int rpmdbOpenAll (rpmdb db);
47 
54 int rpmdbCountPackages(rpmdb db, const char * name);
55 
62 
69 
73 
82  const int * hdrNums, int nHdrNums);
83 
93  rpmMireMode mode, const char * pattern);
94 
102 int rpmdbSetIteratorRewrite(rpmdbMatchIterator mi, int rewrite);
103 
110 int rpmdbSetIteratorModified(rpmdbMatchIterator mi, int modified);
111 
120  rpmRC (*hdrchk) (rpmts ts, const void * uh, size_t uc, char ** msg));
121 
131  const void * keyp, size_t keylen);
132 
139 
143 int rpmdbCheckSignals(void);
144 
153 int rpmdbCheckTerminate(int terminate);
154 
161 
169 
178 int rpmdbIndexIteratorNext(rpmdbIndexIterator ii, const void ** key, size_t * keylen);
179 
186 
193 unsigned int rpmdbIndexIteratorPkgOffset(rpmdbIndexIterator ii, unsigned int nr);
194 
201 unsigned int rpmdbIndexIteratorTagNum(rpmdbIndexIterator ii, unsigned int nr);
202 
209 
210 
211 #ifdef __cplusplus
212 }
213 #endif
214 
215 #endif /* H_RPMDB */