|
Librepo library 1.20.0
C library for downloading linux repository metadata and packages
|
Typedefs | |
| typedef struct _LrResult | LrResult |
Enumerations | |
| enum | LrResultInfoOption { LRR_YUM_REPO , LRR_YUM_REPOMD , LRR_YUM_TIMESTAMP , LRR_RPMMD_REPO , LRR_RPMMD_REPOMD , LRR_RPMMD_TIMESTAMP , LRR_SENTINEL } |
Functions | |
| LrResult * | lr_result_init (void) |
| void | lr_result_clear (LrResult *result) |
| void | lr_result_free (LrResult *result) |
| gboolean | lr_result_getinfo (LrResult *result, GError **err, LrResultInfoOption option,...) |
| enum LrResultInfoOption |
Result options for lr_result_getinfo.
| Enumerator | |
|---|---|
| LRR_YUM_REPO | |
| 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 |
| LRR_RPMMD_REPO | In C same as LRR_YUM_REPO |
| LRR_RPMMD_REPOMD | In C same as LRR_YUM_REPOMD |
| LRR_RPMMD_TIMESTAMP | In C same as LRR_YUM_TIMESTAMP |
| void lr_result_clear | ( | LrResult * | result | ) |
Clean result object.
| result | Result object. |
| void lr_result_free | ( | LrResult * | result | ) |
Free result object.
| result | Result object. |
| gboolean lr_result_getinfo | ( | LrResult * | result, |
| GError ** | err, | ||
| LrResultInfoOption | option, | ||
| ... ) |
Get information about downloaded/localised repository from result object.
| result | Result object. |
| err | GError ** |
| option | Option from LrResultInfoOption enum. |
| ... | Appropriate variable for the selected option. |