00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __C_CREATEREPOLIB_HELPERS_H__
00021 #define __C_CREATEREPOLIB_HELPERS_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 enum {
00041 CR_RETENTION_DEFAULT,
00042 CR_RETENTION_COMPATIBILITY,
00043 CR_RETENTION_BYAGE,
00044 } cr_RetentionType;
00045
00046 gboolean
00047 cr_old_metadata_retention(const char *old_repo,
00048 const char *new_repo,
00049 cr_RetentionType type,
00050 gint64 val,
00051 GError **err);
00052
00061 int cr_remove_metadata(const char *repopath, GError **err);
00062
00073 int cr_remove_metadata_classic(const char *repopath, int retain, GError **err);
00074
00077 #ifdef __cplusplus
00078 }
00079 #endif
00080
00081 #endif