rpmdb/hdrNVR.c File Reference

#include "system.h"
#include <rpmio.h>
#include <rpmmacro.h>
#include "header_internal.h"
#include <rpmtag.h>
#include <netinet/in.h>
#include "debug.h"
Include dependency graph for hdrNVR.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tagMacro
 Macros to be defined from per-header tag values. More...

Defines

#define _RPMTAG_INTERNAL

Functions

int headerMacrosLoad (Header h)
 Define per-header macros.
int headerMacrosUnload (Header h)
 Define per-header macros.
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.
uint32_t hGetColor (Header h)
 Return header color.
void headerMergeLegacySigs (Header h, const Header sigh)
 Translate and merge legacy signature tags into header.
Header headerRegenSigHeader (const Header h, int noArchiveSize)
 Regenerate signature header.

Variables

static struct tagMacro tagMacros []
 Macros to be defined from per-header tag values.

Detailed Description

Definition in file hdrNVR.c.


Define Documentation

#define _RPMTAG_INTERNAL

Definition at line 9 of file hdrNVR.c.


Function Documentation

int headerMacrosLoad ( Header  h  ) 
int headerMacrosUnload ( Header  h  ) 
uint32_t hGetColor ( Header  h  ) 

Return header color.

Parameters:
h header
Returns:
header color

Definition at line 216 of file hdrNVR.c.

References _free(), alloca(), _HE_s::c, headerGet(), _HE_s::p, rpmDataType_u::ptr, _HE_s::tag, and rpmDataType_u::ui32p.

Referenced by rpmdbAdd(), and rpmtsAddInstallElement().


Variable Documentation

struct tagMacro tagMacros[] [static]

Macros to be defined from per-header tag values.

Todo:
Should other macros be added from header when installing a package?

Referenced by headerMacrosLoad(), and headerMacrosUnload().

Generated on Wed Jun 30 22:49:02 2010 for rpm by  doxygen 1.6.3