createrepo_c library  0.9.1
C library for metadata manipulation
Header parser API.

Enumerations

enum  cr_HeaderReadingFlags { CR_HDRR_NONE = (1 << 0), CR_HDRR_LOADHDRID = (1 << 1), CR_HDRR_LOADSIGNATURES = (1 << 2) }
 

Functions

cr_Packagecr_package_from_header (Header hdr, int changelog_limit, cr_HeaderReadingFlags flags, GError **err)
 

Detailed Description

Enumeration Type Documentation

Flags

Enumerator
CR_HDRR_LOADHDRID 

Load hdrid

CR_HDRR_LOADSIGNATURES 

Load siggpg and siggpg

Definition at line 38 of file parsehdr.h.

Function Documentation

cr_Package* cr_package_from_header ( Header  hdr,
int  changelog_limit,
cr_HeaderReadingFlags  flags,
GError **  err 
)

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

Parameters
hdrHeader
changelog_limitnumber of changelog entries
flagsFlags for header reading
errGError **
Returns
Newly allocated cr_Package or NULL on error