createrepo_c library  0.2.1
C library for metadata manipulation
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
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)
 

Detailed Description

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
hdrHeader
mtimemtime of rpm file
sizesize of rpm file (in bytes)
checksumchecksum of rpm file
checksum_typeused checksum algorithm
location_hreflocation of package inside repository
location_baselocation (url) of repository
changelog_limitnumber of changelog entries
hdr_startstart byte of header
hdr_endlast byte of header
errGError **
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 data from header and return struct cr_XmlStruct. All const char * params could be NULL.

Parameters
hdrHeader
mtimemtime of rpm file
sizesize of rpm file (in bytes)
checksumchecksum of rpm file
checksum_typeused checksum algorithm
location_hreflocation of package inside repository
location_baselocation (url) of repository
changelog_limitnumber of changelog entries
hdr_startstart byte of header
hdr_endlast byte of header
errGError **
Returns
XML chunks for primary, filelists and other (in struct cr_XmlStruct)