createrepo_c library 1.2.1 C library for metadata manipulation

Enumerations | Functions
Header parser API.

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

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

## Detailed Description

## Enumeration Type Documentation

## ◆ cr_HeaderReadingFlags

enum cr_HeaderReadingFlags

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_from_header()

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

  hdr | Header
  changelog_limit | number of changelog entries
  flags | Flags for header reading
  err | GError **

Returns
  Newly allocated cr_Package or NULL on error