createrepo_c library
C library for metadata manipulation
|
Funkce | |
void | cr_package_parser_init () |
void | cr_package_parser_shutdown () |
cr_Package * | cr_package_from_file (const char *filename, cr_ChecksumType checksum_type, const char *location_href, const char *location_base, int changelog_limit, struct stat *stat_buf) |
struct cr_XmlStruct | cr_xml_from_package_file (const char *filename, cr_ChecksumType checksum_type, const char *location_href, const char *location_base, int changelog_limit, struct stat *stat_buf) |
Proměnné | |
short | cr_initialized |
cr_Package* cr_package_from_file | ( | const char * | filename, |
cr_ChecksumType | checksum_type, | ||
const char * | location_href, | ||
const char * | location_base, | ||
int | changelog_limit, | ||
struct stat * | stat_buf | ||
) |
Generate package object from package file.
filename | filename |
checksum_type | type of checksum to be used |
location_href | package location inside repository |
location_base | location (url) of repository |
changelog_limit | number of changelog entries |
stat_buf | struct stat of the filename (optional - could be NULL) |
void cr_package_parser_init | ( | ) |
Initialize global structures for package parsing. This function call rpmReadConfigFiles() and create global transaction set. This function should be called only once! This function is not thread safe!
void cr_package_parser_shutdown | ( | ) |
Free global structures for package parsing.
struct cr_XmlStruct cr_xml_from_package_file | ( | const char * | filename, |
cr_ChecksumType | checksum_type, | ||
const char * | location_href, | ||
const char * | location_base, | ||
int | changelog_limit, | ||
struct stat * | stat_buf | ||
) | [read] |
Generate XML for the specified package.
filename | filename |
checksum_type | type of checksum to be used |
location_href | package location inside repository |
location_base | location (url) of repository |
changelog_limit | number of changelog entries |
stat_buf | struct stat of the filename (optional - could be NULL) |
short cr_initialized |
Status of initialization of global structures for package parsing.