# Deprecated List

Class rpmdb
  Legacy, use rpmdbMatchIterator instead.

  Legacy, use rpmdbMatchIterator instead.

Class rpmlead
  The lead (except for signature_type) is legacy.

File buildio.h
  this information will move elsewhere eventually.

Global rpmPackageGetEntry (void *leadp, Header sigs, Header h, int_32 tag, int_32 *type, void **p, int_32 *c)
  Signature tags are now duplicated into header when installed.

Global rpmReadPackageInfo (FD_t fd, Header *sigp, Header *hdrp)
  Signature tags are appended to header in rpm-4.0.2.

Global rpmProblemPrint (FILE *fp, rpmProblem prob)
  API: prob used to be passed by value, now passed by reference.

Global rpmProblemString (const rpmProblem prob)
  API: prob used to be passed by value, now passed by reference.

Global rpmShowProgress (const void *arg, const rpmCallbackType what, const unsigned long amount, const unsigned long total, const void *pkgKey, void *data)
  Transaction callback arguments need to change, so don't rely on this routine in the rpmcli API.

Global addMacro (MacroContext mc, const char *n, const char *o, const char *b, int level)
  Use rpmDefineMacro().

Global expandMacros (void *spec, MacroContext mc, char *sbuf, size_t slen)
  Use rpmExpand().

Global rpmGetVar (int var)
  Use rpmExpand() with appropriate macro expression.

Global rpmSetVar (int var, const char *val)
  Use rpmDefineMacro() to change appropriate macro instead.

Global rpmSetTables (int archTable, int osTable)
  Use addMacro to set _target_* macros.

Global rpmSetMachine (const char *arch, const char *os)
  Use addMacro to set _target_* macros.

Global rpmGetMachine (const char **arch, const char **os)
  Use rpmExpand on _target_* macros.

Global headerMatchesDepFlags (Header h, const char *reqName, const char *reqEVR, int reqFlags)
  Remove from API when obsoletes is correctly eliminated.

Global rpmdbSetIteratorVersion (rpmdbMatchIterator mi, const char *version)
  Use rpmdbSetIteratorRE(mi, RPMTAG_VERSION, RPMMIRE_DEFAULT, version) instead.

Global rpmdbSetIteratorRelease (rpmdbMatchIterator mi, const char *release)
  Use rpmdbSetIteratorRE(mi, RPMTAG_RELEASE, RPMMIRE_DEFAULT, release) instead.

Global RPMSIGTAG_PGP5
  legacy.

Global headerFreeData (const void *data, rpmTagType type)
  Use headerFreeTag() instead.

Global poptAddAlias (poptContext con, struct poptAlias alias, int flags)
  Use poptAddItem instead.