rpm: rpmts.h Source File

rpm 4.12.0.1

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

- File List
- Globals

rpmts.h
Go to the documentation of this file.
1 #ifndef H_RPMTS
2 #define H_RPMTS
3
9 #include <sys/types.h>
10
11 #include <rpm/rpmtypes.h>
12 #include <rpm/rpmte.h>
13 #include <rpm/rpmps.h>
14 #include <rpm/rpmsw.h>
15 #include <rpm/rpmpgp.h>
16 #include <rpm/rpmfi.h>
17 #include <rpm/rpmcallback.h>
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 extern int _rpmts_stats;
24
28 enum rpmtransFlags_e {
29 RPMTRANS_FLAG_NONE = 0,
30 RPMTRANS_FLAG_TEST = (1 << 0),
31 RPMTRANS_FLAG_BUILD_PROBS = (1 << 1),
32 RPMTRANS_FLAG_NOSCRIPTS = (1 << 2),
33 RPMTRANS_FLAG_JUSTDB = (1 << 3),
34 RPMTRANS_FLAG_NOTRIGGERS = (1 << 4),
35 RPMTRANS_FLAG_NODOCS = (1 << 5),
36 RPMTRANS_FLAG_ALLFILES = (1 << 6),
37 RPMTRANS_FLAG_NOPLUGINS = (1 << 7),
38 RPMTRANS_FLAG_NOCONTEXTS = (1 << 8),
39 /* bits 9-15 unused */
40 RPMTRANS_FLAG_NOTRIGGERPREIN= (1 << 16),
41 RPMTRANS_FLAG_NOPRE = (1 << 17),
42 RPMTRANS_FLAG_NOPOST = (1 << 18),
43 RPMTRANS_FLAG_NOTRIGGERIN = (1 << 19),
44 RPMTRANS_FLAG_NOTRIGGERUN = (1 << 20),
45 RPMTRANS_FLAG_NOPREUN = (1 << 21),
46 RPMTRANS_FLAG_NOPOSTUN = (1 << 22),
47 RPMTRANS_FLAG_NOTRIGGERPOSTUN = (1 << 23),
48 RPMTRANS_FLAG_NOPRETRANS = (1 << 24),
49 RPMTRANS_FLAG_NOPOSTTRANS = (1 << 25),
50 /* bit 26 unused */
51 RPMTRANS_FLAG_NOMD5 = (1 << 27),
52 RPMTRANS_FLAG_NOFILEDIGEST = (1 << 27),
53 /* bits 28-29 unused */
54 RPMTRANS_FLAG_NOCONFIGS = (1 << 30),
55 RPMTRANS_FLAG_DEPLOOPS = (1 << 31)
56 };
57
58 typedef rpmFlags rpmtransFlags;
59
60 #define _noTransScripts \
61 ( RPMTRANS_FLAG_NOPRE | \
62 RPMTRANS_FLAG_NOPOST | \
63 RPMTRANS_FLAG_NOPREUN | \
64 RPMTRANS_FLAG_NOPOSTUN | \
65 RPMTRANS_FLAG_NOPRETRANS | \
66 RPMTRANS_FLAG_NOPOSTTRANS \
67 )
68
69 #define _noTransTriggers \
70 ( RPMTRANS_FLAG_NOTRIGGERPREIN | \
71 RPMTRANS_FLAG_NOTRIGGERIN | \
72 RPMTRANS_FLAG_NOTRIGGERUN | \
73 RPMTRANS_FLAG_NOTRIGGERPOSTUN \
74 )
75
76 /* Avoid unnecessary breakage for stuff referring to these unused flags */
77 #define RPMTRANS_FLAG_NOPAYLOAD 0
78 #define RPMTRANS_FLAG_APPLYONLY 0
79 #define RPMTRANS_FLAG_KEEPOBSOLETE 0
80 #define RPMTRANS_FLAG_DIRSTASH 0
81 #define RPMTRANS_FLAG_REPACKAGE 0
82 #define RPMTRANS_FLAG_PKGCOMMIT 0
83 #define RPMTRANS_FLAG_PKGUNDO 0
84 #define RPMTRANS_FLAG_COMMIT 0
85 #define RPMTRANS_FLAG_UNDO 0
86 #define RPMTRANS_FLAG_REVERSE 0
87 #define RPMTRANS_FLAG_NOSUGGEST 0
88 #define RPMTRANS_FLAG_ADDINDEPS 0
89
93 enum rpmVSFlags_e {
94 RPMVSF_DEFAULT = 0,
95 RPMVSF_NOHDRCHK = (1 << 0),
96 RPMVSF_NEEDPAYLOAD = (1 << 1),
97 /* bit(s) 2-7 unused */
98 RPMVSF_NOSHA1HEADER = (1 << 8),
99 RPMVSF_NOMD5HEADER = (1 << 9), /* unimplemented */
100 RPMVSF_NODSAHEADER = (1 << 10),
101 RPMVSF_NORSAHEADER = (1 << 11), /* unimplemented */
102 /* bit(s) 12-15 unused */
103 RPMVSF_NOSHA1 = (1 << 16), /* unimplemented */
104 RPMVSF_NOMD5 = (1 << 17),
105 RPMVSF_NODSA = (1 << 18),
106 RPMVSF_NORSA = (1 << 19)
107 /* bit(s) 16-31 unused */
108 };
109
110 typedef rpmFlags rpmVSFlags;
111
112 #define _RPMVSF_NODIGESTS \
113 ( RPMVSF_NOSHA1HEADER | \
114 RPMVSF_NOMD5HEADER | \
115 RPMVSF_NOSHA1 | \
116 RPMVSF_NOMD5 )
117
118 #define _RPMVSF_NOSIGNATURES \
119 ( RPMVSF_NODSAHEADER | \
120 RPMVSF_NORSAHEADER | \
121 RPMVSF_NODSA | \
122 RPMVSF_NORSA )
123
124 #define _RPMVSF_NOHEADER \
125 ( RPMVSF_NOSHA1HEADER | \
126 RPMVSF_NOMD5HEADER | \
127 RPMVSF_NODSAHEADER | \
128 RPMVSF_NORSAHEADER )
129
130 #define _RPMVSF_NOPAYLOAD \
131 ( RPMVSF_NOSHA1 | \
132 RPMVSF_NOMD5 | \
133 RPMVSF_NODSA | \
134 RPMVSF_NORSA )
135
139 typedef enum rpmtsOpX_e {
140 RPMTS_OP_TOTAL = 0,
141 RPMTS_OP_CHECK = 1,
142 RPMTS_OP_ORDER = 2,
143 RPMTS_OP_FINGERPRINT = 3,
144 RPMTS_OP_INSTALL = 5,
145 RPMTS_OP_ERASE = 6,
146 RPMTS_OP_SCRIPTLETS = 7,
147 RPMTS_OP_COMPRESS = 8,
148 RPMTS_OP_UNCOMPRESS = 9,
149 RPMTS_OP_DIGEST = 10,
150 RPMTS_OP_SIGNATURE = 11,
151 RPMTS_OP_DBADD = 12,
152 RPMTS_OP_DBREMOVE = 13,
153 RPMTS_OP_DBGET = 14,
154 RPMTS_OP_DBPUT = 15,
155 RPMTS_OP_DBDEL = 16,
156 RPMTS_OP_MAX = 17
157 } rpmtsOpX;
158
159 enum rpmtxnFlags_e {
160 RPMTXN_READ = (1 << 0),
161 RPMTXN_WRITE = (1 << 1),
162 };
163 typedef rpmFlags rpmtxnFlags;
164
175 int rpmtsCheck(rpmts ts);
176
193 int rpmtsOrder(rpmts ts);
194
212 int rpmtsRun(rpmts ts, rpmps okProbs, rpmprobFilterFlags ignoreSet);
213
219 rpmts rpmtsLink (rpmts ts);
220
226 int rpmtsCloseDB(rpmts ts);
227
234 int rpmtsOpenDB(rpmts ts, int dbmode);
235
243 int rpmtsInitDB(rpmts ts, int dbmode);
244
250 int rpmtsGetDBMode(rpmts ts);
251
259 int rpmtsSetDBMode(rpmts ts, int dbmode);
260
266 int rpmtsRebuildDB(rpmts ts);
267
273 int rpmtsVerifyDB(rpmts ts);
274
283 rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmDbiTagVal rpmtag,
284 const void * keyp, size_t keylen);
285
293 rpmRC rpmtsImportHeader(rpmtxn txn, Header h, rpmFlags flags);
294
303 rpmRC rpmtsImportPubkey(rpmts ts, const unsigned char * pkt, size_t pktlen);
304
311 rpmKeyring rpmtsGetKeyring(rpmts ts, int autoload);
312
321 int rpmtsSetKeyring(rpmts ts, rpmKeyring keyring);
322
330 int rpmtsSetSolveCallback(rpmts ts,
331 int (*solve) (rpmts ts, rpmds ds, const void * data),
332 const void * solveData);
333
339 rpmps rpmtsProblems(rpmts ts);
340
345 void rpmtsCleanProblems(rpmts ts);
346
351 void rpmtsClean(rpmts ts);
352
357 void rpmtsEmpty(rpmts ts);
358
364 rpmts rpmtsFree(rpmts ts);
365
371 rpmVSFlags rpmtsVSFlags(rpmts ts);
372
379 rpmVSFlags rpmtsSetVSFlags(rpmts ts, rpmVSFlags vsflags);
380
386 const char * rpmtsRootDir(rpmts ts);
387
394 int rpmtsSetRootDir(rpmts ts, const char * rootDir);
395
401 FD_t rpmtsScriptFd(rpmts ts);
402
408 void rpmtsSetScriptFd(rpmts ts, FD_t scriptFd);
409
415 rpm_tid_t rpmtsGetTid(rpmts ts);
416
423 rpm_tid_t rpmtsSetTid(rpmts ts, rpm_tid_t tid);
424
430 rpmdb rpmtsGetRdb(rpmts ts);
431
441 void * rpmtsNotify(rpmts ts, rpmte te,
442 rpmCallbackType what, rpm_loff_t amount, rpm_loff_t total);
443
449 int rpmtsNElements(rpmts ts);
450
457 rpmte rpmtsElement(rpmts ts, int ix);
458
464 rpmprobFilterFlags rpmtsFilterFlags(rpmts ts);
465
471 rpmtransFlags rpmtsFlags(rpmts ts);
472
479 rpmtransFlags rpmtsSetFlags(rpmts ts, rpmtransFlags transFlags);
480
486 rpm_color_t rpmtsColor(rpmts ts);
487
493 rpm_color_t rpmtsPrefColor(rpmts ts);
494
501 rpm_color_t rpmtsSetColor(rpmts ts, rpm_color_t color);
502
509 rpm_color_t rpmtsSetPrefColor(rpmts ts, rpm_color_t color);
510
517 rpmop rpmtsOp(rpmts ts, rpmtsOpX opx);
518
524 rpmPlugins rpmtsPlugins(rpmts ts);
525
537 int rpmtsSetNotifyCallback(rpmts ts,
538 rpmCallbackFunction notify,
539 rpmCallbackData notifyData);
540
545 rpmts rpmtsCreate(void);
546
560 int rpmtsAddInstallElement(rpmts ts, Header h,
561 const fnpyKey key, int upgrade,
562 rpmRelocation * relocs);
563
572 int rpmtsAddReinstallElement(rpmts ts, Header h, const fnpyKey key);
573
581 int rpmtsAddEraseElement(rpmts ts, Header h, int dboffset);
582
589 rpmtxn rpmtxnBegin(rpmts ts, rpmtxnFlags flags);
590
596 rpmtxn rpmtxnEnd(rpmtxn txn);
597
603 rpmtsi rpmtsiFree(rpmtsi tsi);
604
610 rpmtsi rpmtsiInit(rpmts ts);
611
618 rpmte rpmtsiNext(rpmtsi tsi, rpmElementTypes types);
619
620 #ifdef __cplusplus
621 }
622 #endif
623
624
625 #endif /* H_RPMTS */
rpmtsSetNotifyCallback
int rpmtsSetNotifyCallback(rpmts ts, rpmCallbackFunction notify, rpmCallbackData notifyData)
Set transaction notify callback function and argument.
RPMTRANS_FLAG_NODOCS
Definition: rpmts.h:35
rpmCallbackType
enum rpmCallbackType_e rpmCallbackType
Bit(s) to identify progress callbacks.
RPMTRANS_FLAG_NOTRIGGERIN
Definition: rpmts.h:43
RPMTS_OP_FINGERPRINT
Definition: rpmts.h:143
rpmtsImportPubkey
rpmRC rpmtsImportPubkey(rpmts ts, const unsigned char *pkt, size_t pktlen)
Import public key packet(s).
rpmdbMatchIterator
struct rpmdbMatchIterator_s * rpmdbMatchIterator
Definition: rpmtypes.h:69
rpmtsOp
rpmop rpmtsOp(rpmts ts, rpmtsOpX opx)
Retrieve operation timestamp from a transaction set.
rpmtsFilterFlags
rpmprobFilterFlags rpmtsFilterFlags(rpmts ts)
Get problem ignore bit mask, i.e.
RPMVSF_NOMD5
Definition: rpmts.h:104
rpmtxnEnd
rpmtxn rpmtxnEnd(rpmtxn txn)
Destroy transaction (lock) handle.
rpmps
struct rpmps_s * rpmps
Definition: rpmtypes.h:71
rpmtxn
struct rpmtxn_s * rpmtxn
Definition: rpmtypes.h:72
rpmtsSetColor
rpm_color_t rpmtsSetColor(rpmts ts, rpm_color_t color)
Set color bits of transaction set.
rpmtsi
struct rpmtsi_s * rpmtsi
Definition: rpmtypes.h:70
rpmtsSetFlags
rpmtransFlags rpmtsSetFlags(rpmts ts, rpmtransFlags transFlags)
Set transaction flags, i.e.
rpmtsGetRdb
rpmdb rpmtsGetRdb(rpmts ts)
Get transaction set database handle.
rpmtsFree
rpmts rpmtsFree(rpmts ts)
Destroy transaction set, closing the database as well.
RPMVSF_NODSAHEADER
Definition: rpmts.h:100
rpmtsPlugins
rpmPlugins rpmtsPlugins(rpmts ts)
Get the plugins associated with a transaction set.
RPMTRANS_FLAG_NOPREUN
Definition: rpmts.h:45
rpmtsLink
rpmts rpmtsLink(rpmts ts)
Reference a transaction set instance.
rpmtxnFlags
rpmFlags rpmtxnFlags
Definition: rpmts.h:163
RPMVSF_NOMD5HEADER
Definition: rpmts.h:99
RPMTRANS_FLAG_NOTRIGGERUN
Definition: rpmts.h:44
rpmtsRebuildDB
int rpmtsRebuildDB(rpmts ts)
Rebuild the database used by the transaction.
rpmtsGetTid
rpm_tid_t rpmtsGetTid(rpmts ts)
Get transaction id, i.e.
RPMTRANS_FLAG_NOMD5
Definition: rpmts.h:51
RPMVSF_NOSHA1HEADER
Definition: rpmts.h:98
RPMTS_OP_DIGEST
Definition: rpmts.h:149
rpmtsEmpty
void rpmtsEmpty(rpmts ts)
Re-create an empty transaction set.
rpmtsSetKeyring
int rpmtsSetKeyring(rpmts ts, rpmKeyring keyring)
Set keyring to use for this transaction set.
RPMTRANS_FLAG_NOSCRIPTS
Definition: rpmts.h:32
rpmtsNotify
void * rpmtsNotify(rpmts ts, rpmte te, rpmCallbackType what, rpm_loff_t amount, rpm_loff_t total)
Perform transaction progress notify callback.
rpmts
struct rpmts_s * rpmts
The main types involved in transaction manipulation.
Definition: rpmtypes.h:63
rpmCallbackData
void * rpmCallbackData
Definition: rpmtypes.h:76
RPMTS_OP_ERASE
Definition: rpmts.h:145
rpmtsColor
rpm_color_t rpmtsColor(rpmts ts)
Retrieve color bits of transaction set.
RPMVSF_NORSAHEADER
Definition: rpmts.h:101
rpmtsPrefColor
rpm_color_t rpmtsPrefColor(rpmts ts)
Retrieve preferred file color.
rpmprobFilterFlags
rpmFlags rpmprobFilterFlags
Definition: rpmprob.h:34
rpmtsAddInstallElement
int rpmtsAddInstallElement(rpmts ts, Header h, const fnpyKey key, int upgrade, rpmRelocation *relocs)
Add package to be installed to transaction set.
RPMTS_OP_ORDER
Definition: rpmts.h:142
RPMVSF_DEFAULT
Definition: rpmts.h:94
rpmRelocation_s
We pass these around as an array with a sentinel.
Definition: rpmfiles.h:94
rpmtsSetSolveCallback
int rpmtsSetSolveCallback(rpmts ts, int(*solve)(rpmts ts, rpmds ds, const void *data), const void *solveData)
Set dependency solver callback.
rpmtsScriptFd
FD_t rpmtsScriptFd(rpmts ts)
Get transaction script file handle, i.e.
RPMTRANS_FLAG_NOTRIGGERPREIN
Definition: rpmts.h:40
rpmtsInitIterator
rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmDbiTagVal rpmtag, const void *keyp, size_t keylen)
Return transaction database iterator.
rpmKeyring
struct rpmKeyring_s * rpmKeyring
Definition: rpmtypes.h:80
RPMVSF_NORSA
Definition: rpmts.h:106
rpmtsCreate
rpmts rpmtsCreate(void)
Create an empty transaction set.
rpmPlugins
struct rpmPlugins_s * rpmPlugins
Definition: rpmtypes.h:86
_rpmts_stats
int _rpmts_stats
RPMTRANS_FLAG_NOTRIGGERPOSTUN
Definition: rpmts.h:47
rpmFlags
uint32_t rpmFlags
Definition: rpmtypes.h:42
RPMTS_OP_DBADD
Definition: rpmts.h:151
rpmtsAddReinstallElement
int rpmtsAddReinstallElement(rpmts ts, Header h, const fnpyKey key)
Add package to be reinstalled to transaction set.
rpmtsInitDB
int rpmtsInitDB(rpmts ts, int dbmode)
Initialize the database used by the transaction.
RPMTS_OP_DBPUT
Definition: rpmts.h:154
rpmdb
struct rpmdb_s * rpmdb
Definition: rpmtypes.h:68
rpmtransFlags_e
rpmtransFlags_e
Bit(s) to control rpmtsRun() operation.
Definition: rpmts.h:28
rpmtsOpX
enum rpmtsOpX_e rpmtsOpX
Indices for timestamps.
FD_t
struct _FD_s * FD_t
RPM IO file descriptor type.
Definition: rpmtypes.h:98
rpmtsVerifyDB
int rpmtsVerifyDB(rpmts ts)
Verify the database used by the transaction.
rpm_color_t
uint32_t rpm_color_t
Definition: rpmtypes.h:38
rpmtsCloseDB
int rpmtsCloseDB(rpmts ts)
Close the database used by the transaction.
RPMTS_OP_UNCOMPRESS
Definition: rpmts.h:148
RPMTRANS_FLAG_DEPLOOPS
Definition: rpmts.h:55
Header
struct headerToken_s * Header
RPM header and data retrieval types.
Definition: rpmtypes.h:24
rpmVSFlags_e
rpmVSFlags_e
Bit(s) to control digest and signature verification.
Definition: rpmts.h:93
rpmtsRootDir
const char * rpmtsRootDir(rpmts ts)
Get transaction rootDir, i.e.
fnpyKey
const void * fnpyKey
Definition: rpmtypes.h:75
RPMTRANS_FLAG_NOCONTEXTS
Definition: rpmts.h:38
rpmCallbackFunction
void *(* rpmCallbackFunction)(const void *h, const rpmCallbackType what, const rpm_loff_t amount, const rpm_loff_t total, fnpyKey key, rpmCallbackData data)
Definition: rpmcallback.h:39
RPMVSF_NOSHA1
Definition: rpmts.h:103
RPMTXN_READ
Definition: rpmts.h:160
rpmVSFlags
rpmFlags rpmVSFlags
Definition: rpmts.h:110
RPMTS_OP_SIGNATURE
Definition: rpmts.h:150
rpmds
struct rpmds_s * rpmds
Definition: rpmtypes.h:65
rpmtsOpenDB
int rpmtsOpenDB(rpmts ts, int dbmode)
Open the database used by the transaction.
RPMTRANS_FLAG_NOPOST
Definition: rpmts.h:42
rpmtsiFree
rpmtsi rpmtsiFree(rpmtsi tsi)
Destroy transaction element iterator.
rpmtsElement
rpmte rpmtsElement(rpmts ts, int ix)
Return (ordered) transaction set element.
rpmtsiNext
rpmte rpmtsiNext(rpmtsi tsi, rpmElementTypes types)
Return next transaction element of type.
rpmtsSetDBMode
int rpmtsSetDBMode(rpmts ts, int dbmode)
Set the transaction database mode.
rpmtxnFlags_e
rpmtxnFlags_e
Definition: rpmts.h:159
rpmte
struct rpmte_s * rpmte
Definition: rpmtypes.h:64
RPMTRANS_FLAG_ALLFILES
Definition: rpmts.h:36
RPMTS_OP_SCRIPTLETS
Definition: rpmts.h:146
RPMTRANS_FLAG_NOPOSTUN
Definition: rpmts.h:46
rpmop_s
Cumulative statistics for an operation.
Definition: rpmsw.h:40
RPMTRANS_FLAG_BUILD_PROBS
Definition: rpmts.h:31
RPMTRANS_FLAG_NOTRIGGERS
Definition: rpmts.h:34
rpmtsImportHeader
rpmRC rpmtsImportHeader(rpmtxn txn, Header h, rpmFlags flags)
Import a header into the rpmdb.
rpmtsSetVSFlags
rpmVSFlags rpmtsSetVSFlags(rpmts ts, rpmVSFlags vsflags)
Set verify signatures flag(s).
rpmtsGetKeyring
rpmKeyring rpmtsGetKeyring(rpmts ts, int autoload)
Retrieve handle for keyring used for this transaction set.
rpm_tid_t
uint32_t rpm_tid_t
Definition: rpmtypes.h:40
rpmtsOrder
int rpmtsOrder(rpmts ts)
Determine package order in a transaction set according to dependencies.
RPMTS_OP_INSTALL
Definition: rpmts.h:144
rpmtsClean
void rpmtsClean(rpmts ts)
Free memory needed only for dependency checks and ordering.
rpmDbiTagVal
rpm_tag_t rpmDbiTagVal
Definition: rpmtypes.h:31
rpmtsAddEraseElement
int rpmtsAddEraseElement(rpmts ts, Header h, int dboffset)
Add package to be erased to transaction set.
rpmtsRun
int rpmtsRun(rpmts ts, rpmps okProbs, rpmprobFilterFlags ignoreSet)
Process all package elements in a transaction set.
RPMTRANS_FLAG_NOPRE
Definition: rpmts.h:41
rpmtsGetDBMode
int rpmtsGetDBMode(rpmts ts)
Return the transaction database mode.
rpmtsNElements
int rpmtsNElements(rpmts ts)
Return number of (ordered) transaction set elements.
RPMTRANS_FLAG_NONE
Definition: rpmts.h:29
rpmtsFlags
rpmtransFlags rpmtsFlags(rpmts ts)
Get transaction flags, i.e.
RPMTS_OP_CHECK
Definition: rpmts.h:141
RPMTRANS_FLAG_NOPRETRANS
Definition: rpmts.h:48
rpmElementTypes
rpmFlags rpmElementTypes
Definition: rpmte.h:24
rpmtsVSFlags
rpmVSFlags rpmtsVSFlags(rpmts ts)
Get verify signatures flag(s).
RPMTRANS_FLAG_TEST
Definition: rpmts.h:30
RPMTS_OP_DBDEL
Definition: rpmts.h:155
RPMTRANS_FLAG_NOPOSTTRANS
Definition: rpmts.h:49
rpmtsSetPrefColor
rpm_color_t rpmtsSetPrefColor(rpmts ts, rpm_color_t color)
Set preferred file color.
RPMTRANS_FLAG_NOFILEDIGEST
Definition: rpmts.h:52
RPMTRANS_FLAG_NOCONFIGS
Definition: rpmts.h:54
RPMTS_OP_TOTAL
Definition: rpmts.h:140
RPMTXN_WRITE
Definition: rpmts.h:161
RPMVSF_NODSA
Definition: rpmts.h:105
RPMTS_OP_COMPRESS
Definition: rpmts.h:147
rpmtransFlags
rpmFlags rpmtransFlags
Definition: rpmts.h:58
rpmtsSetRootDir
int rpmtsSetRootDir(rpmts ts, const char *rootDir)
Set transaction rootDir, i.e.
RPMTS_OP_DBREMOVE
Definition: rpmts.h:152
RPMVSF_NEEDPAYLOAD
Definition: rpmts.h:96
RPMTRANS_FLAG_NOPLUGINS
Definition: rpmts.h:37
RPMVSF_NOHDRCHK
Definition: rpmts.h:95
rpmtsSetScriptFd
void rpmtsSetScriptFd(rpmts ts, FD_t scriptFd)
Set transaction script file handle, i.e.
RPMTRANS_FLAG_JUSTDB
Definition: rpmts.h:33
rpmtsOpX_e
rpmtsOpX_e
Indices for timestamps.
Definition: rpmts.h:139
RPMTS_OP_DBGET
Definition: rpmts.h:153
rpmtsCheck
int rpmtsCheck(rpmts ts)
Perform dependency resolution on the transaction set.
rpm_loff_t
uint64_t rpm_loff_t
Definition: rpmtypes.h:51
rpmtsCleanProblems
void rpmtsCleanProblems(rpmts ts)
Clean current transaction problem set.
RPMTS_OP_MAX
Definition: rpmts.h:156
rpmtsiInit
rpmtsi rpmtsiInit(rpmts ts)
Create transaction element iterator.
rpmRC
enum rpmRC_e rpmRC
Package read return codes.
rpmtxnBegin
rpmtxn rpmtxnBegin(rpmts ts, rpmtxnFlags flags)
Create a transaction (lock) handle.
rpmtsProblems
rpmps rpmtsProblems(rpmts ts)
Return current transaction set problems.
rpmtsSetTid
rpm_tid_t rpmtsSetTid(rpmts ts, rpm_tid_t tid)
Set transaction id, i.e.