00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __C_CREATEREPOLIB_MODIFYREPO_SHARED_H__
00021 #define __C_CREATEREPOLIB_MODIFYREPO_SHARED_H__
00022
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026
00027 #include "checksum.h"
00028 #include "compression_wrapper.h"
00029 #include "package.h"
00030
00039 typedef struct {
00040
00041 gchar *path;
00042 gchar *type;
00043 gboolean remove;
00044 gboolean compress;
00045 cr_CompressionType compress_type;
00046 gboolean unique_md_filenames;
00047 cr_ChecksumType checksum_type;
00048 gchar *new_name;
00049
00050
00051 gchar *repopath;
00052 GStringChunk *chunk;
00053
00054 } cr_ModifyRepoTask;
00055
00056 cr_ModifyRepoTask *
00057 cr_modifyrepotask_new(void);
00058
00059 void
00060 cr_modifyrepotask_free(cr_ModifyRepoTask *task);
00061
00062 gboolean
00063 cr_modifyrepo(GSList *modifyrepotasks, gchar *repopath, GError **err);
00064
00065 gboolean
00066 cr_modifyrepo_parse_batchfile(const gchar *path,
00067 GSList **modifyrepotasks,
00068 GError **err);
00069
00072 #ifdef __cplusplus
00073 }
00074 #endif
00075
00076 #endif