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 <glib.h>
00028 #include "checksum.h"
00029 #include "compression_wrapper.h"
00030 #include "package.h"
00031
00040 typedef struct {
00041
00042 gchar *path;
00043 gchar *type;
00044 gboolean remove;
00045 gboolean compress;
00046 cr_CompressionType compress_type;
00047 gboolean unique_md_filenames;
00048 cr_ChecksumType checksum_type;
00049 gchar *new_name;
00050
00051
00052 gchar *repopath;
00053 gchar *dst_fn;
00054 GStringChunk *chunk;
00055
00056 } cr_ModifyRepoTask;
00057
00058 cr_ModifyRepoTask *
00059 cr_modifyrepotask_new(void);
00060
00061 void
00062 cr_modifyrepotask_free(cr_ModifyRepoTask *task);
00063
00064 gboolean
00065 cr_modifyrepo(GSList *modifyrepotasks, gchar *repopath, GError **err);
00066
00067 gboolean
00068 cr_modifyrepo_parse_batchfile(const gchar *path,
00069 GSList **modifyrepotasks,
00070 GError **err);
00071
00074 #ifdef __cplusplus
00075 }
00076 #endif
00077
00078 #endif