createrepo_c library
0.16.0
C library for metadata manipulation
helpers.h
1
/* createrepo_c - Library of routines for manipulation with repodata
2
* Copyright (C) 2014 Tomas Mlcoch
3
*
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17
* USA.
18
*/
19
20
#ifndef __C_CREATEREPOLIB_HELPERS_H__
21
#define __C_CREATEREPOLIB_HELPERS_H__
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
#include <glib.h>
28
#include "checksum.h"
29
#include "compression_wrapper.h"
30
#include "package.h"
31
40
typedef
enum
{
41
CR_RETENTION_DEFAULT,
42
CR_RETENTION_COMPATIBILITY,
43
CR_RETENTION_BYAGE,
44
} cr_RetentionType;
45
46
gboolean
47
cr_old_metadata_retention(
const
char
*old_repo,
48
const
char
*new_repo,
49
cr_RetentionType type,
50
gint64 val,
51
GError **err);
52
61
int
cr_remove_metadata
(
const
char
*repopath, GError **err);
62
73
int
cr_remove_metadata_classic
(
const
char
*repopath,
int
retain, GError **err);
74
77
#ifdef __cplusplus
78
}
79
#endif
80
81
#endif
/* __C_CREATEREPOLIB_HELPERS__ */
cr_remove_metadata
int cr_remove_metadata(const char *repopath, GError **err)
cr_remove_metadata_classic
int cr_remove_metadata_classic(const char *repopath, int retain, GError **err)
src
helpers.h
Generated by
1.8.17