|
cr_RepomdRecord | cr_repomd_record_new (const char *path) |
|
void | cr_repomd_record_free (cr_RepomdRecord record) |
|
int | cr_repomd_record_fill (cr_RepomdRecord record, cr_ChecksumType checksum_type) |
|
void | cr_repomd_record_groupfile (cr_RepomdRecord groupfile, cr_RepomdRecord compressed_groupfile, cr_ChecksumType checksum_type, cr_CompressionType compression) |
|
void | cr_repomd_record_rename_file (cr_RepomdRecord record) |
|
cr_Repomd | cr_repomd_new () |
|
void | cr_repomd_set_record (cr_Repomd repomd, cr_RepomdRecord record, const char *type) |
|
void | cr_repomd_set_revision (cr_Repomd repomd, const char *revision) |
|
void | cr_repomd_add_distro_tag (cr_Repomd repomd, const char *cpeid, const char *tag) |
|
void | cr_repomd_add_repo_tag (cr_Repomd repomd, const char *tag) |
|
void | cr_repomd_add_content_tag (cr_Repomd repomd, const char *tag) |
|
void | cr_repomd_free (cr_Repomd repomd) |
|
gchar * | cr_repomd_xml_dump (cr_Repomd repomd) |
|
Module for generating repomd.xml.
Example:
cr_Repomd - object representing repomd.xml
Definice je uvedena na řádku 72 v souboru repomd.h.
cr_RepomdRecord - object representing an item from repomd.xml
Definice je uvedena na řádku 68 v souboru repomd.h.
void cr_repomd_add_content_tag |
( |
cr_Repomd |
repomd, |
|
|
const char * |
tag |
|
) |
| |
Add content tag.
- Parametry
-
repomd | cr_Repomd object |
tag | content tag |
void cr_repomd_add_distro_tag |
( |
cr_Repomd |
repomd, |
|
|
const char * |
cpeid, |
|
|
const char * |
tag |
|
) |
| |
Add distro tag.
- Parametry
-
repomd | cr_Repomd object |
cpeid | cpeid string (could be NULL) |
tag | distro tag string |
void cr_repomd_add_repo_tag |
( |
cr_Repomd |
repomd, |
|
|
const char * |
tag |
|
) |
| |
Add repo tag.
- Parametry
-
repomd | cr_Repomd object |
tag | repo tag |
Frees cr_Repomd object and all its cr_RepomdRecord objects
- Parametry
-
Create new empty cr_Repomd object wich represents content of repomd.xml.
Fill unfilled items in the cr_RepomdRecord (calculate checksums, get file size before/after compression, etc.). Note: For groupfile you shoud use cr_repomd_record_groupfile function.
- Parametry
-
record | cr_RepomdRecord object |
checksum_type | type of checksum to use |
Destroy cr_RepomdRecord object. NOTE: Do NOT use this function on objects attached to cr_Repomd (by cr_repomd_set_record).
- Parametry
-
record | cr_RepomdRecord object |
Analogue of cr_repomd_record_fill but for groupfile. Groupfile must be set with the path to existing non compressed groupfile. Compressed group file will be created and compressed_groupfile record updated.
- Parametry
-
groupfile | cr_RepomdRecord initialized to an existing groupfile |
compressed_groupfile | empty cr_RepomdRecord object that will by filled |
checksum_type | type of checksums |
compression | type of compression |
Creates (alloc) new cr_RepomdRecord object
- Parametry
-
path | path to the compressed file |
Add a hash as prefix to the filename.
- Parametry
-
record | cr_RepomdRecord of file to be renamed |
Set cr_Repomd record into cr_Repomd object.
- Parametry
-
repomd | cr_Repomd object |
record | cr_RepomdRecord object |
type | type of record ("primary, "groupfile", ...) |
void cr_repomd_set_revision |
( |
cr_Repomd |
repomd, |
|
|
const char * |
revision |
|
) |
| |
Set custom revision string of repomd.
- Parametry
-
repomd | cr_Repomd object |
revision | revision string |
gchar* cr_repomd_xml_dump |
( |
cr_Repomd |
repomd | ) |
|
Generate repomd.xml content. Don't forget to use cr_xml_dump_init() before call this function.
- Parametry
-
- Návratová hodnota
- string with repomd.xml content