Header parser API.

Functions

cr_Packagecr_package_from_header (Header hdr, gint64 mtime, gint64 size, const char *checksum, const char *checksum_type, const char *location_href, const char *location_base, int changelog_limit, gint64 hdr_start, gint64 hdr_end, GError **err)
struct cr_XmlStruct cr_xml_from_header (Header hdr, gint64 mtime, gint64 size, const char *checksum, const char *checksum_type, const char *location_href, const char *location_base, int changelog_limit, gint64 hdr_start, gint64 hdr_end, GError **err)

Function Documentation

cr_Package* cr_package_from_header ( Header  hdr,
gint64  mtime,
gint64  size,
const char *  checksum,
const char *  checksum_type,
const char *  location_href,
const char *  location_base,
int  changelog_limit,
gint64  hdr_start,
gint64  hdr_end,
GError **  err 
)

Read data from header and return filled cr_Package structure. All const char * params could be NULL.

Parameters:
hdr Header
mtime mtime of rpm file
size size of rpm file (in bytes)
checksum checksum of rpm file
checksum_type used checksum algorithm
location_href location of package inside repository
location_base location (url) of repository
changelog_limit number of changelog entries
hdr_start start byte of header
hdr_end last byte of header
err GError **
Returns:
cr_Package
struct cr_XmlStruct cr_xml_from_header ( Header  hdr,
gint64  mtime,
gint64  size,
const char *  checksum,
const char *  checksum_type,
const char *  location_href,
const char *  location_base,
int  changelog_limit,
gint64  hdr_start,
gint64  hdr_end,
GError **  err 
) [read]

Read data from header and return struct cr_XmlStruct. All const char * params could be NULL.

Parameters:
hdr Header
mtime mtime of rpm file
size size of rpm file (in bytes)
checksum checksum of rpm file
checksum_type used checksum algorithm
location_href location of package inside repository
location_base location (url) of repository
changelog_limit number of changelog entries
hdr_start start byte of header
hdr_end last byte of header
err GError **
Returns:
XML chunks for primary, filelists and other (in struct cr_XmlStruct)

Generated on 14 Aug 2013 for createrepo_c library by  doxygen 1.6.1