createrepo_c library
C library for metadata manipulation
 Vše Třídy Funkce Proměnné Definice typů Výčty Hodnoty výčtu Skupiny Stránky
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

Detailní popis

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
filenamefilename
checksum_typetype of checksum to be used
location_hrefpackage location inside repository
location_baselocation (url) of repository
changelog_limitnumber of changelog entries
stat_bufstruct 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
filenamefilename
checksum_typetype of checksum to be used
location_hrefpackage location inside repository
location_baselocation (url) of repository
changelog_limitnumber of changelog entries
stat_bufstruct stat of the filename (optional - could be NULL)

Dokumentace proměnných

short cr_initialized

Status of initialization of global structures for package parsing.