#include "system.h"
#include <rpmlib.h>
#include "rpmxp.h"
#include "debug.h"
Go to the source code of this file.
Defines | |
#define | _RPMXP_INTERNAL |
Functions | |
rpmxp | rpmxpFree (rpmxp xp) |
rpmxp | rpmxpNew (const char *fn) |
static headerTagTableEntry | myTagByName (headerTagTableEntry tbl, const char *name) |
Return tag table entry from name lookup. | |
int | rpmxpRead (rpmxp xp) |
int | rpmxpProcess (rpmxp xp) |
int | rpmxpParseFile (rpmxp xp) |
int | main (int argc, char **argv) |
Variables | |
const char * | program_name |
int | _rpmxp_debug = 0 |
const char * | rpmxpDTD |
int main | ( | int | argc, | |
char ** | argv | |||
) |
static headerTagTableEntry myTagByName | ( | headerTagTableEntry | tbl, | |
const char * | name | |||
) | [static] |
Return tag table entry from name lookup.
Definition at line 74 of file rpmxml.c.
References headerTagTableEntry_s::name, and xstrcasecmp().
Referenced by rpmxpProcess().
rpmxp rpmxpFree | ( | rpmxp | xp | ) |
rpmxp rpmxpNew | ( | const char * | fn | ) |
int rpmxpParseFile | ( | rpmxp | xp | ) |
Definition at line 251 of file rpmxml.c.
References rpmxpProcess(), and rpmxpRead().
Referenced by main().
int rpmxpProcess | ( | rpmxp | xp | ) |
Definition at line 91 of file rpmxml.c.
References _rpmxp_debug, Fclose(), Fopen(), HEADER_MAGIC_YES, headerAddEntry(), headerAddI18NString(), headerAddOrAppendEntry(), headerFree(), headerNew(), headerWrite(), myTagByName(), 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, rpmTagTable, headerTagTableEntry_s::type, and headerTagTableEntry_s::val.
Referenced by rpmxpParseFile().
int rpmxpRead | ( | rpmxp | xp | ) |
int _rpmxp_debug = 0 |
const char* program_name |
const char* rpmxpDTD |
Initial value:
"\ <?xml version=\"1.0\"?>\n\ <!DOCTYPE rpmHeader [\n\ <!ELEMENT rpmHeader (rpmTag+)>\n\ <!ELEMENT rpmTag (string+|integer+|base64+)>\n\ <!ATTLIST rpmTag name CDATA #REQUIRED>\n\ <!ELEMENT string (#PCDATA)>\n\ <!ELEMENT integer (#PCDATA)>\n\ <!ELEMENT base64 (#PCDATA)>\n\ ]>\n\ "
Definition at line 11 of file rpmxml.c.
Referenced by spewHeader().