createrepo_c library 1.2.1 C library for metadata manipulation

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
24 extern "C" {
25 #endif
26
27 #include <glib.h>
28 #include "checksum.h"
29 #include "compression_wrapper.h"
30 #include "package.h"
31
56 gboolean
57 cr_set_cleanup_handler(const char *lock_dir,
58 const char *tmp_out_repo,
59 GError **err);
60
65 gboolean
66 cr_block_terminating_signals(GError **err);
67
71 gboolean
72 cr_unblock_terminating_signals(GError **err);
73
74
102 gboolean
103 cr_lock_repo(const gchar *repo_dir,
104 gboolean ignore_lock,
105 gchar **lock_dir,
106 gchar **tmp_repodata_dir,
107 GError **err);
108
114 gboolean
115 cr_unset_cleanup_handler(GError **err);
116
120 void
121 cr_setup_logging(gboolean quiet, gboolean verbose);
122
125 #ifdef __cplusplus
126 }
127 #endif
128
129 #endif /* __C_CREATEREPOLIB_CREATEREPO_SHARED__ */
cr_lock_repo
gboolean cr_lock_repo(const gchar *repo_dir, gboolean ignore_lock, gchar **lock_dir, gchar **tmp_repodata_dir, GError **err)
cr_set_cleanup_handler
gboolean cr_set_cleanup_handler(const char *lock_dir, const char *tmp_out_repo, GError **err)
cr_setup_logging
void cr_setup_logging(gboolean quiet, gboolean verbose)
cr_unblock_terminating_signals
gboolean cr_unblock_terminating_signals(GError **err)
cr_unset_cleanup_handler
gboolean cr_unset_cleanup_handler(GError **err)
cr_block_terminating_signals
gboolean cr_block_terminating_signals(GError **err)