# Deprecated List

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

File buildio.h
  this information will move elsewhere eventually.

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

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

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

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

Class rpmdb

  Legacy, use rpmdbMatchIterator instead.

  Legacy, use rpmdbMatchIterator instead.

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

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

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

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

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

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 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 rpmReadPackageInfo (FD_t fd, Header *sigp, Header *hdrp)
  Signature tags are appended to header in rpm-4.0.2.

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

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

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

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 RPMSIGTAG_PGP5
  legacy.