createrepo_c library 1.2.1
C library for metadata manipulation
Loading...
Searching...
No Matches
modifyrepo_shared.h
1/* createrepo_c - Library of routines for manipulation with repodata
2 * Copyright (C) 2013 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_MODIFYREPO_SHARED_H__
21#define __C_CREATEREPOLIB_MODIFYREPO_SHARED_H__
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#include <glib.h>
28#include "checksum.h"
29#include "compression_wrapper.h"
30#include "package.h"
31
39
40typedef struct {
41
42 gchar *path;
43 gchar *type;
44 gboolean remove;
45 gboolean compress;
46 cr_CompressionType compress_type;
47 gboolean unique_md_filenames;
48 cr_ChecksumType checksum_type;
49 gchar *new_name;
50 gboolean zck;
51 gchar *zck_dict_dir;
52
53 // Internal use
54 gchar *repopath;
55 gchar *zck_repopath;
56 gchar *dst_fn;
57 GStringChunk *chunk;
58
60
62cr_modifyrepotask_new(void);
63
64void
65cr_modifyrepotask_free(cr_ModifyRepoTask *task);
66
67gchar *
68cr_write_file(gchar *repopath, cr_ModifyRepoTask *task,
69 cr_CompressionType compress_type, GError **err);
70
71gboolean
72cr_modifyrepo(GSList *modifyrepotasks, gchar *repopath, GError **err);
73
74gboolean
75cr_modifyrepo_parse_batchfile(const gchar *path,
76 GSList **modifyrepotasks,
77 GError **err);
78
79gchar *
80cr_remove_compression_suffix_if_present(gchar* name, GError **err);
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif /* __C_CREATEREPOLIB_MODIFYREPO_SHARED__ */
cr_ChecksumType
Definition checksum.h:43
cr_CompressionType