Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

tagname.c File Reference

#include "system.h"
#include <rpmlib.h>
#include "debug.h"

Go to the source code of this file.

Functions

const char *const tagName (int tag)
 Return name of tag from value.
int tagValue (const char *tagstr)
 Return value of tag from name.


Detailed Description

Definition in file tagname.c.


Function Documentation

const char* const tagName int  tag  ) 
 

Return name of tag from value.

Parameters:
tag tag value
Returns:
name of tag

Definition at line 10 of file tagname.c.

References headerTagTableEntry_s::name, RPMDBI_ADDED, RPMDBI_AVAILABLE, RPMDBI_DEPENDS, RPMDBI_PACKAGES, RPMDBI_REMOVED, rpmTagTable, headerTagTableEntry_s::val, and xtolower().

Referenced by checkForDuplicates(), checkForRequired(), db3close(), db3New(), db3open(), dbiOpen(), i18nTag(), printNewSpecfile(), rpmdbAdd(), rpmdbMoveDatabase(), rpmdbRemove(), rpmdbRemoveDatabase(), rpmHeaderGetEntry(), singleSprintf(), and stashSt().

int tagValue const char *  tagstr  ) 
 

Return value of tag from name.

Parameters:
tagstr name of tag
Returns:
tag value

Definition at line 55 of file tagname.c.

References headerTagTableEntry_s::name, headerTagTableEntry_s::val, and xstrcasecmp().

Referenced by dbiTagsInit(), and rpmQueryVerify().


Generated on Thu Mar 9 09:02:32 2006 for rpm by  doxygen 1.3.9.1