rpm  4.5
Functions | Variables
rpmdb/tagname.c File Reference
#include "system.h"
#include <rpmlib.h>
#include "debug.h"
Include dependency graph for tagname.c:

Go to the source code of this file.

Functions

static int tagCmpName (const void *avp, const void *bvp)
 Compare tag table entries by name.
static int tagCmpValue (const void *avp, const void *bvp)
 Compare tag table entries by value.
static int tagLoadIndex (headerTagTableEntry **ipp, int *np, int(*cmp)(const void *avp, const void *bvp))
 Load/sort a tag index.
static const char * _tagName (int tag)
static int _tagType (int tag)
static int _tagValue (const char *tagstr)

Variables

static struct headerTagIndices_s _rpmTags
headerTagIndices rpmTags = &_rpmTags

Detailed Description

Definition in file tagname.c.


Function Documentation

static const char * _tagName ( int  tag) [static]
static int _tagType ( int  tag) [static]
static int _tagValue ( const char *  tagstr) [static]
static int tagCmpName ( const void *  avp,
const void *  bvp 
) [static]

Compare tag table entries by name.

Parameters:
*avptag table entry a
*bvptag table entry b
Returns:
comparison

Definition at line 19 of file tagname.c.

References headerTagTableEntry_s::name.

Referenced by _tagValue().

static int tagCmpValue ( const void *  avp,
const void *  bvp 
) [static]

Compare tag table entries by value.

Parameters:
*avptag table entry a
*bvptag table entry b
Returns:
comparison

Definition at line 33 of file tagname.c.

References headerTagTableEntry_s::name, and headerTagTableEntry_s::val.

Referenced by _tagName(), and _tagType().

static int tagLoadIndex ( headerTagTableEntry **  ipp,
int *  np,
int(*)(const void *avp, const void *bvp)  cmp 
) [static]

Load/sort a tag index.

Return values:
*ipptag index
*npno. of tags
Parameters:
cmpsort compare routine
Returns:
0 always

Definition at line 52 of file tagname.c.

References headerTagTableEntry_s::name, rpmTagTable, rpmTagTableSize, and xcalloc().

Referenced by _tagName(), _tagType(), and _tagValue().


Variable Documentation

struct headerTagIndices_s _rpmTags [static]
Initial value:

Definition at line 86 of file tagname.c.

Definition at line 94 of file tagname.c.

Referenced by rpmcliFini().