|
createrepo_c library 1.2.3
C library for metadata manipulation
|
Data Structures | |
| struct | cr_CompressionTask |
| struct | cr_RepomdRecordFillTask |
Functions | |
| cr_CompressionTask * | cr_compressiontask_new (const char *src, const char *dst, cr_CompressionType compression_type, cr_ChecksumType checksum_type, const char *zck_dict_dir, gboolean zck_auto_chunk, int delsrc, GError **err) |
| void | cr_compressiontask_free (cr_CompressionTask *task, GError **err) |
| void | cr_compressing_thread (gpointer data, gpointer user_data) |
| cr_RepomdRecordFillTask * | cr_repomdrecordfilltask_new (cr_RepomdRecord *record, cr_ChecksumType checksum_type, GError **err) |
| void | cr_repomdrecordfilltask_free (cr_RepomdRecordFillTask *task, GError **err) |
| void | cr_repomd_record_fill_thread (gpointer data, gpointer user_data) |
| void | cr_rewrite_pkg_count_thread (gpointer data, gpointer user_data) |
Paralelized compression example:
| void cr_compressing_thread | ( | gpointer | data, |
| gpointer | user_data ) |
Function for GThreadPool.
| void cr_compressiontask_free | ( | cr_CompressionTask * | task, |
| GError ** | err ) |
Frees cr_CompressionTask and all its components.
| task | cr_CompressionTask task |
| err | GError ** |
| cr_CompressionTask * cr_compressiontask_new | ( | const char * | src, |
| const char * | dst, | ||
| cr_CompressionType | compression_type, | ||
| cr_ChecksumType | checksum_type, | ||
| const char * | zck_dict_dir, | ||
| gboolean | zck_auto_chunk, | ||
| int | delsrc, | ||
| GError ** | err ) |
Function to prepare a new cr_CompressionTask.
| src | Source filename. |
| dst | Destination filename or NULL (then src+compression suffix will be used). |
| compression_type | Type of compression to use. |
| checksum_type | Checksum type for stat calculation. Note: Stat is always use. If you don't need a stats use CR_CHECKSUM_UNKNOWN, then no checksum calculation will be performed, only size would be calculated. Don't be afraid, size calculation has almost no overhead. |
| delsrc | Delete src after successuful compression. 0 = Do not delete, delete otherwise |
| err | GError **. Note: This is a GError for the cr_compresiontask_new function. The GError that will be at created cr_CompressionTask is different. |
| void cr_repomd_record_fill_thread | ( | gpointer | data, |
| gpointer | user_data ) |
Function for GThread Pool.
| void cr_repomdrecordfilltask_free | ( | cr_RepomdRecordFillTask * | task, |
| GError ** | err ) |
Frees cr_RepomdRecordFillTask
| cr_RepomdRecordFillTask * cr_repomdrecordfilltask_new | ( | cr_RepomdRecord * | record, |
| cr_ChecksumType | checksum_type, | ||
| GError ** | err ) |
Function to prepare a new cr_RepomdRecordFillTask.
| record | cr_RepomdRecord. |
| checksum_type | Type of checksum. |
| err | GError ** |
| void cr_rewrite_pkg_count_thread | ( | gpointer | data, |
| gpointer | user_data ) |
Function for GThread Pool.