createrepo_c library 0.21.1
C library for metadata manipulation
Loading...
Searching...
No Matches
createrepo_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_CREATEREPO_SHARED_H__
21#define __C_CREATEREPOLIB_CREATEREPO_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
56gboolean
57cr_set_cleanup_handler(const char *lock_dir,
58 const char *tmp_out_repo,
59 GError **err);
60
65gboolean
67
71gboolean
73
74
102gboolean
103cr_lock_repo(const gchar *repo_dir,
104 gboolean ignore_lock,
105 gchar **lock_dir,
106 gchar **tmp_repodata_dir,
107 GError **err);
108
114gboolean
116
120void
121cr_setup_logging(gboolean quiet, gboolean verbose);
122
125#ifdef __cplusplus
126}
127#endif
128
129#endif /* __C_CREATEREPOLIB_CREATEREPO_SHARED__ */
gboolean cr_lock_repo(const gchar *repo_dir, gboolean ignore_lock, gchar **lock_dir, gchar **tmp_repodata_dir, GError **err)
gboolean cr_set_cleanup_handler(const char *lock_dir, const char *tmp_out_repo, GError **err)
gboolean cr_block_terminating_signals(GError **err)
void cr_setup_logging(gboolean quiet, gboolean verbose)
gboolean cr_unblock_terminating_signals(GError **err)
gboolean cr_unset_cleanup_handler(GError **err)