11 #include <rpm/rpmtypes.h> 12 #include <rpm/rpmps.h> 13 #include <rpm/rpmsw.h> 14 #include <rpm/rpmpgp.h> 15 #include <rpm/rpmfi.h> 16 #include <rpm/rpmcallback.h> 67 #define _noTransScripts \ 68 ( RPMTRANS_FLAG_NOPRE | \ 69 RPMTRANS_FLAG_NOPOST | \ 70 RPMTRANS_FLAG_NOPREUN | \ 71 RPMTRANS_FLAG_NOPOSTUN \ 74 #define _noTransTriggers \ 75 ( RPMTRANS_FLAG_NOTRIGGERPREIN | \ 76 RPMTRANS_FLAG_NOTRIGGERIN | \ 77 RPMTRANS_FLAG_NOTRIGGERUN | \ 78 RPMTRANS_FLAG_NOTRIGGERPOSTUN \ 101 #define _RPMVSF_NODIGESTS \ 102 ( RPMVSF_NOSHA1HEADER | \ 103 RPMVSF_NOMD5HEADER | \ 107 #define _RPMVSF_NOSIGNATURES \ 108 ( RPMVSF_NODSAHEADER | \ 109 RPMVSF_NORSAHEADER | \ 113 #define _RPMVSF_NOHEADER \ 114 ( RPMVSF_NOSHA1HEADER | \ 115 RPMVSF_NOMD5HEADER | \ 116 RPMVSF_NODSAHEADER | \ 119 #define _RPMVSF_NOPAYLOAD \ 277 const void * keyp,
size_t keylen);
323 int (*solve) (
rpmts ts,
rpmds ds,
const void * data),
324 const void * solveData);
597 const fnpyKey key,
int upgrade,
int rpmtsSetKeyring(rpmts ts, rpmKeyring keyring)
Set keyring to use for this transaction set.
int rpmtsSetRootDir(rpmts ts, const char *rootDir)
Set transaction rootDir, i.e.
enum rpmCallbackType_e rpmCallbackType
Bit(s) to identify progress callbacks.
void *(* rpmCallbackFunction)(const void *h, const rpmCallbackType what, const rpm_loff_t amount, const rpm_loff_t total, fnpyKey key, rpmCallbackData data)
int rpmtsGetDBMode(rpmts ts)
Return the transaction database mode.
int rpmtsInitDB(rpmts ts, int dbmode)
Initialize the database used by the transaction.
int rpmtsSetDBMode(rpmts ts, int dbmode)
Set the transaction database mode.
int rpmtsCheck(rpmts ts)
Perform dependency resolution on the transaction set.
rpmts rpmtsUnlink(rpmts ts, const char *msg)
Unreference a transaction instance.
struct _FD_s * FD_t
RPM IO file descriptor type.
void * rpmtsNotify(rpmts ts, rpmte te, rpmCallbackType what, rpm_loff_t amount, rpm_loff_t total)
Perform transaction progress notify callback.
rpm_tid_t rpmtsSetTid(rpmts ts, rpm_tid_t tid)
Set transaction id, i.e.
rpmps rpmtsProblems(rpmts ts)
Return current transaction set problems.
enum rpmprobFilterFlags_e rpmprobFilterFlags
int rpmtsCloseDB(rpmts ts)
Close the database used by the transaction.
rpm_tid_t rpmtsGetTid(rpmts ts)
Get transaction id, i.e.
rpmRC rpmtsFindPubkey(rpmts ts, pgpDig dig) RPM_GNUC_DEPRECATED
Retrieve pubkey from rpm database.
enum rpmTag_e rpmTag
Tags identify data in package headers.
rpmSpec rpmtsSpec(rpmts ts)
Get spec control structure from transaction set.
rpmop rpmtsOp(rpmts ts, rpmtsOpX opx)
Retrieve operation timestamp from a transaction set.
enum rpmtsOpX_e rpmtsOpX
Indices for timestamps.
int rpmtsSetSolveCallback(rpmts ts, int(*solve)(rpmts ts, rpmds ds, const void *data), const void *solveData)
Set dependency solver callback.
struct rpmps_s * rpmps
Transaction problems found while processing a transaction set/.
const char * rpmtsRootDir(rpmts ts)
Get transaction rootDir, i.e.
rpmts rpmtsLink(rpmts ts, const char *msg)
Reference a transaction set instance.
#define RPM_GNUC_DEPRECATED
int rpmtsOpenDB(rpmts ts, int dbmode)
Open the database used by the transaction.
void rpmtsCleanProblems(rpmts ts)
Clean current transaction problem set.
int rpmtsSetChrootDone(rpmts ts, int chrootDone)
Set chrootDone flag, i.e.
rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmTag rpmtag, const void *keyp, size_t keylen)
Return transaction database iterator.
We pass these around as an array with a sentinel.
rpmRC rpmtsImportPubkey(rpmts ts, const unsigned char *pkt, size_t pktlen)
Import public key packet(s).
void rpmtsEmpty(rpmts ts)
Re-create an empty transaction set.
struct rpmKeyring_s * rpmKeyring
int rpmtsChrootDone(rpmts ts)
Get chrootDone flag, i.e.
The structure used to store values parsed from a spec file.
int rpmtsRun(rpmts ts, rpmps okProbs, rpmprobFilterFlags ignoreSet)
Process all package elements in a transaction set.
struct rpmdbMatchIterator_s * rpmdbMatchIterator
const char * rpmtsCurrDir(rpmts ts)
Get transaction currDir, i.e.
rpmtransFlags rpmtsFlags(rpmts ts)
Get transaction flags, i.e.
int rpmtsVerifyDB(rpmts ts)
Verify the database used by the transaction.
enum rpmVSFlags_e rpmVSFlags
Bit(s) to control digest and signature verification.
int rpmtsOrder(rpmts ts)
Determine package order in a transaction set according to dependencies.
rpmprobFilterFlags rpmtsFilterFlags(rpmts ts)
Get problem ignore bit mask, i.e.
rpmVSFlags_e
Bit(s) to control digest and signature verification.
int rpmtsAddEraseElement(rpmts ts, Header h, int dboffset)
Add package to be erased to transaction set.
rpmte rpmtsElement(rpmts ts, int ix)
Return (ordered) transaction set element.
int rpmtsAddInstallElement(rpmts ts, Header h, const fnpyKey key, int upgrade, rpmRelocation *relocs)
Add package to be installed to transaction set.
Cumulative statistics for an operation.
rpmSpec rpmtsSetSpec(rpmts ts, rpmSpec spec)
Set a spec control structure in transaction set.
rpmdb rpmtsGetRdb(rpmts ts)
Get transaction set database handle.
rpm_color_t rpmtsSetColor(rpmts ts, rpm_color_t color)
Set color bits of transaction set.
rpm_color_t rpmtsPrefColor(rpmts ts)
Retrieve prefered file color.
void rpmtsSetCurrDir(rpmts ts, const char *currDir)
Set transaction currDir, i.e.
int rpmtsNElements(rpmts ts)
Return number of (ordered) transaction set elements.
rpmts rpmtsFree(rpmts ts)
Destroy transaction set, closing the database as well.
enum rpmtransFlags_e rpmtransFlags
Bit(s) to control rpmtsRun() operation.
rpmVSFlags rpmtsSetVSFlags(rpmts ts, rpmVSFlags vsflags)
Set verify signatures flag(s).
struct rpmts_s * rpmts
The main types involved in transaction manipulation.
void rpmtsSetScriptFd(rpmts ts, FD_t scriptFd)
Set transaction script file handle, i.e.
rpmKeyring rpmtsGetKeyring(rpmts ts, int autoload)
Retrieve handle for keyring used for this transaction set.
FD_t rpmtsScriptFd(rpmts ts)
Get transaction script file handle, i.e.
rpmtransFlags_e
Bit(s) to control rpmtsRun() operation.
rpmtsOpX_e
Indices for timestamps.
rpmVSFlags rpmtsVSFlags(rpmts ts)
Get verify signatures flag(s).
int rpmtsRebuildDB(rpmts ts)
Rebuild the database used by the transaction.
enum rpmRC_e rpmRC
Package read return codes.
void rpmtsClean(rpmts ts)
Free memory needed only for dependency checks and ordering.
rpm_color_t rpmtsSetPrefColor(rpmts ts, rpm_color_t color)
Set prefered file color.
rpmtransFlags rpmtsSetFlags(rpmts ts, rpmtransFlags transFlags)
Set transaction flags, i.e.
rpm_color_t rpmtsColor(rpmts ts)
Retrieve color bits of transaction set.
rpmts rpmtsCreate(void)
Create an empty transaction set.
int rpmtsSetNotifyCallback(rpmts ts, rpmCallbackFunction notify, rpmCallbackData notifyData)
Set transaction notify callback function and argument.
int rpmtsSELinuxEnabled(rpmts ts)
Get selinuxEnabled flag, i.e.
struct headerToken_s * Header
RPM header and data retrieval types.