Package parser API.

Funkce

void cr_package_parser_init ()
void cr_package_parser_shutdown ()
cr_Packagecr_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

Dokumentace funkcí

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.

Parametry:
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.

Parametry:
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)

Dokumentace proměnných

Status of initialization of global structures for package parsing.


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