#include "system.h"
#include <rpmlib.h>
#include <rpmmacro.h>
#include "debug.h"
Include dependency graph for hdrNVR.c:
Go to the source code of this file.
Data Structures | |
struct | tagMacro |
Macros to be defined from per-header tag values. More... | |
Functions | |
int | headerMacrosLoad (Header h) |
Define per-header macros. | |
int | headerMacrosUnload (Header h) |
Define per-header macros. | |
int | headerNVR (Header h, const char **np, const char **vp, const char **rp) |
Return name, version, release strings from header. | |
int | headerNEVRA (Header h, const char **np, const char **ep, const char **vp, const char **rp, const char **ap) |
Return name, epoch, version, release, arch strings from header. | |
char * | hGetNEVR (Header h, const char **np) |
Return (malloc'd) header name-version-release string. | |
char * | hGetNEVRA (Header h, const char **np) |
Return (malloc'd) header name-version-release.arch string. | |
uint_32 | hGetColor (Header h) |
Return header color. | |
Variables | |
static struct tagMacro | tagMacros [] |
Macros to be defined from per-header tag values. |
Definition in file hdrNVR.c.
int headerMacrosLoad | ( | Header | h | ) |
Define per-header macros.
h | header |
Definition at line 29 of file hdrNVR.c.
References _free(), addMacro(), argv, body(), headerFreeData(), headerGetEntryMinMemory(), tagMacro::macroname, RPM_BIN_TYPE, RPM_CHAR_TYPE, RPM_I18NSTRING_TYPE, RPM_INT16_TYPE, RPM_INT32_TYPE, RPM_INT8_TYPE, RPM_NULL_TYPE, RPM_STRING_ARRAY_TYPE, RPM_STRING_TYPE, rpmExpand(), tagMacro::tag, and tagMacros.
Referenced by processBinaryFiles(), and rpmInstallSourcePackage().
int headerMacrosUnload | ( | Header | h | ) |
Define per-header macros.
h | header |
Definition at line 84 of file hdrNVR.c.
References _free(), argv, body(), delMacro(), headerFreeData(), headerGetEntryMinMemory(), tagMacro::macroname, RPM_BIN_TYPE, RPM_CHAR_TYPE, RPM_I18NSTRING_TYPE, RPM_INT16_TYPE, RPM_INT32_TYPE, RPM_INT8_TYPE, RPM_NULL_TYPE, RPM_STRING_ARRAY_TYPE, RPM_STRING_TYPE, rpmExpand(), tagMacro::tag, and tagMacros.
Referenced by processBinaryFiles().
Return header color.
h | header |
Definition at line 240 of file hdrNVR.c.
References headerGetEntryMinMemory(), and RPMTAG_FILECOLORS.
Referenced by rpmdbAdd(), and rpmtsAddInstallElement().
char* hGetNEVR | ( | Header | h, | |
const char ** | np | |||
) |
Return (malloc'd) header name-version-release string.
h | header |
np | name tag value |
Definition at line 194 of file hdrNVR.c.
References headerNVR(), stpcpy(), and xcalloc().
Referenced by addTE(), and ensureOlder().
char* hGetNEVRA | ( | Header | h, | |
const char ** | np | |||
) |
Return (malloc'd) header name-version-release.arch string.
h | header |
np | name tag value |
Definition at line 213 of file hdrNVR.c.
References headerGetEntry(), headerNVR(), RPMTAG_ARCH, stpcpy(), and xcalloc().
Referenced by checkPackageSet(), handleInstInstalledFiles(), rpmteChain(), and rpmtsAddInstallElement().
Macros to be defined from per-header tag values.
Referenced by headerMacrosLoad(), and headerMacrosUnload().