rpm  4.12.90
Todo List
globalScope> Global expandMacros (void *spec, rpmMacroContext mc, char *sbuf, size_t slen)
Eliminate from API.
Parameters
speccookie (unused)
mcmacro context (NULL uses global context).
Return values
sbufinput macro to expand, output expansion
Parameters
slensize of buffer
Returns
0 on success
globalScope> Global headerPutBin (Header h, rpmTagVal tag, const uint8_t *val, rpm_count_t size)
Make doxygen group these meaningfully.
globalScope> Global pgpExtractPubkeyFingerprint (const char *b64pkt, pgpKeyID_t keyid)
V3 non-RSA public keys not implemented.
Parameters
b64pktbase64 encoded openpgp packet
Return values
keyidpublic key fingerprint
Returns
8 (no. of bytes) on success, < 0 on error
globalScope> Global pgpHashAlgo
Add SHA256.
globalScope> Global pgpHashAlgo
Add SHA256.
globalScope> Global pgpPubkeyFingerprint (const uint8_t *pkt, size_t pktlen, pgpKeyID_t keyid)
V3 non-RSA public keys not implemented.
Parameters
pktOpenPGP packet (i.e. PGPTAG_PUBLIC_KEY)
pktlenOpenPGP packet length (no. of bytes)
Return values
keyidpublic key fingerprint
Returns
0 on success, else -1
globalScope> Global RPM_BIN_ARRAY_TYPE
Implement, kinda like RPM_STRING_ARRAY_TYPE for known (but variable) length binary data.
globalScope> Global rpm_machtable_e
Eliminate from API.
globalScope> Global RPM_XREF_TYPE
Implement, intent is to to carry a (???,tagNum,valNum) cross reference to retrieve data from other tags.
globalScope> Global rpmcliQuery (rpmts ts, QVA_t qva, ARGV_const_t argv)
hack: RPMQV_ALL can pass char ** arglist = NULL, not char * arg. Union?
Parameters
tstransaction set
qvaparsed query/verify options
argvquery argument(s) (or NULL)
Returns
0 on success, else no. of failures
globalScope> Global rpmcliVerify (rpmts ts, QVA_t qva, ARGV_const_t argv)
hack: RPMQV_ALL can pass char ** arglist = NULL, not char * arg. Union?
Parameters
tstransaction set
qvaparsed query/verify options
argvverify argument(s) (or NULL)
Returns
0 on success, else no. of failures
globalScope> Global rpmfcPrint (const char *msg, rpmfc fc, FILE *fp)
Remove debugging routine.
Parameters
msgmessage prefix (NULL for none)
fcfile classifier
fpoutput file handle (NULL for stderr)
globalScope> Global RPMFILE_SPECFILE
(unnecessary) marks 1st file in srpm.
globalScope> Global rpmFreeRpmrc (void)
Eliminate from API.
globalScope> Global rpmGetArchInfo (const char **name, int *num)
Generalize to extract arch component from target_platform macro.
Return values
nameaddress of arch name (or NULL)
numaddress of arch number (or NULL)
globalScope> Global rpmGetOsInfo (const char **name, int *num)
Generalize to extract os component from target_platform macro.
Return values
nameaddress of os name (or NULL)
numaddress of os number (or NULL)
globalScope> Global rpmInstall (rpmts ts, struct rpmInstallArguments_s *ia, ARGV_t fileArgv)
fileArgv is modified on errors, should be ARGV_const_t
globalScope> Global rpmlogClose (void)
Implement.
globalScope> Global rpmlogOpen (const char *ident, int option, int facility)
Implement.
globalScope> Global rpmMachineScore (int type, const char *name)
Rewrite to use RE's against config.guess target platform output.
globalScope> Global rpmprobFilterFlags_e
Generalize filter mechanism.
globalScope> Global rpmProblemGetStr (rpmProblem prob)
needs a better name
globalScope> Global rpmQueryFlags_e
Merge rpmQueryFlags, rpmVerifyFlags, and rpmVerifyAttrs?.
globalScope> Global rpmQVSources_e
Reassign to tag values.
globalScope> Global rpmShowProgress (const void *arg, const rpmCallbackType what, const rpm_loff_t amount, const rpm_loff_t total, fnpyKey key, void *data)
Remove headerFormat() from the progress callback.
globalScope> Global rpmSpecParse (const char *specFile, rpmSpecFlags flags, const char *buildRoot)
Eliminate buildRoot from here, its a build, not spec property
globalScope> Global rpmTag
: Somehow supply type
globalScope> Global rpmTag
: Somehow supply type
Class rpmtd_s
Make this opaque (at least outside rpm itself)
globalScope> Global rpmtePkgFileSize (rpmte te)
Signature header is estimated at 256b.
Parameters
tetransaction element
Returns
size in bytes of package file.
globalScope> Global rpmtsImportPubkey (rpmts ts, const unsigned char *pkt, size_t pktlen)
Implicit –update policy for gpg-pubkey headers.
Parameters
tstransaction set
pktpgp pubkey packet(s)
pktlenpgp pubkey length
Returns
RPMRC_OK/RPMRC_FAIL
File rpmtypes.h
The grouping needs love to look sane...
globalScope> Global rpmVerifyFile (const rpmts ts, rpmfi fi, rpmVerifyAttrs *res, rpmVerifyAttrs omitMask)
gnorpm and python bindings prevent this from being static.
Parameters
tstransaction set
fifile info (with linked header and current file index)
Return values
*resbit(s) returned to indicate failure
Parameters
omitMaskbit(s) to disable verify checks
Returns
0 on success (or not installed), 1 on error
File rpmvf.h
Add a more complete API...
globalScope> Global showQueryPackage (QVA_t qva, rpmts ts, Header h)
Devise a meaningful return code.
Parameters
qvaparsed query/verify options
tstransaction set
hheader to use for query
Returns
0 always