tools/rpmxp.h File Reference

Structure(s) used for an xml parser. More...

#include <libxml/xmlreader.h>

Go to the source code of this file.

Typedefs

typedef rpmxp_s * rpmxp

Functions

rpmxp rpmxpFree (rpmxp xp)
 Destroy an xml parser.
rpmxp rpmxpNew (const char *fn)
 Create an xml parser.
int rpmxpRead (rpmxp xp)
 Read next item from an xml parser.
int rpmxpProcess (rpmxp xp)
 Parse all elements from an xml parser.
int rpmxpParseFile (rpmxp xp)
 Parse all elements from an xml parser.

Variables

int _rpmxp_debug
const char * rpmxpDTD


Detailed Description

Structure(s) used for an xml parser.

Definition in file rpmxp.h.


Typedef Documentation

typedef struct rpmxp_s* rpmxp

Definition at line 25 of file rpmxp.h.


Function Documentation

rpmxp rpmxpFree ( rpmxp  xp  ) 

Destroy an xml parser.

Parameters:
xp rpm xml parser
Returns:
NULL always

Definition at line 23 of file rpmxml.c.

rpmxp rpmxpNew ( const char *  fn  ) 

Create an xml parser.

Parameters:
fn xml file name
Returns:
new xml parser

Definition at line 44 of file rpmxml.c.

References rpmxpFree().

int rpmxpParseFile ( rpmxp  xp  ) 

Parse all elements from an xml parser.

Parameters:
xp rpm xml parser
Returns:
0 on success

Definition at line 251 of file rpmxml.c.

References rpmxpProcess(), and rpmxpRead().

int rpmxpProcess ( rpmxp  xp  ) 

Parse all elements from an xml parser.

Parameters:
xp rpm xml parser
Returns:
0 on success

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.

int rpmxpRead ( rpmxp  xp  ) 

Read next item from an xml parser.

Parameters:
xp rpm xml parser
Returns:
1 to continue

Definition at line 86 of file rpmxml.c.


Variable Documentation

int _rpmxp_debug

Definition at line 9 of file rpmxml.c.

const char* rpmxpDTD

Definition at line 11 of file rpmxml.c.


Generated on Tue Feb 19 22:26:42 2008 for rpm by  doxygen 1.5.1