Header parser API.

Funkce

cr_Packagecr_parse_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)
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)

Dokumentace funkcí

cr_Package* cr_parse_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 
)

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

Parametry:
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
Návratová hodnota:
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 
) [read]

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

Parametry:
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
Návratová hodnota:
XML chunks for primary, filelists and other (in struct cr_XmlStruct)

Generováno 24 Sep 2013 pro projekt createrepo_c library programem  doxygen 1.6.1