Librepo library  1.7.13
C library for downloading linux repository metadata and packages
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules
Result object

Typedefs

typedef struct _LrResult LrResult
 

Enumerations

enum  LrResultInfoOption { LRR_YUM_REPO, LRR_YUM_REPOMD, LRR_YUM_TIMESTAMP, LRR_SENTINEL }
 

Functions

LrResultlr_result_init ()
 
void lr_result_clear (LrResult *result)
 
void lr_result_free (LrResult *result)
 
gboolean lr_result_getinfo (LrResult *result, GError **err, LrResultInfoOption option,...)
 

Detailed Description

Typedef Documentation

typedef struct _LrResult LrResult

Result object

Definition at line 37 of file result.h.

Enumeration Type Documentation

Result options for lr_result_getinfo.

Enumerator
LRR_YUM_REPO 

(LrYumRepo *) Reference to LrYumRepo in result

LRR_YUM_REPOMD 

(LrYumRepoMd *) Reference to LrYumRepoMd in result

LRR_YUM_TIMESTAMP 

(gint64) The highest timestamp from repomd.xml. See: https://github.com/Tojaj/librepo/issues/25 See: http://yum.baseurl.org/gitweb?p=yum.git;a=commitdiff;h=59d3d67f

Definition at line 41 of file result.h.

Function Documentation

void lr_result_clear ( LrResult result)

Clean result object.

Parameters
resultResult object.
void lr_result_free ( LrResult result)

Free result object.

Parameters
resultResult object.
gboolean lr_result_getinfo ( LrResult result,
GError **  err,
LrResultInfoOption  option,
  ... 
)

Get information about downloaded/localised repository from result object.

Parameters
resultResult object.
errGError **
optionOption from LrResultInfoOption enum.
...Apropriate variable for the selected option.
Returns
TRUE if everything is ok, false if err is set.
LrResult* lr_result_init ( )

Return new allocated LrResult object

Returns
New allocated LrResult object