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 "checksum.h"
00028 #include "compression_wrapper.h"
00029 #include "package.h"
00030
00039 typedef enum {
00040 CR_RETENTION_DEFAULT,
00041 CR_RETENTION_COMPATIBILITY,
00042 CR_RETENTION_BYAGE,
00043 } cr_RetentionType;
00044
00045 gboolean
00046 cr_old_metadata_retention(const char *old_repo,
00047 const char *new_repo,
00048 cr_RetentionType type,
00049 gint64 val,
00050 GError **err);
00051
00060 int cr_remove_metadata(const char *repopath, GError **err);
00061
00072 int cr_remove_metadata_classic(const char *repopath, int retain, GError **err);
00073
00076 #ifdef __cplusplus
00077 }
00078 #endif
00079
00080 #endif