createrepo_c library  0.9.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 
57 gboolean
58 cr_set_cleanup_handler(const char *lock_dir,
59  const char *tmp_out_repo,
60  GError **err);
61 
66 gboolean
67 cr_block_terminating_signals(GError **err);
68 
72 gboolean
73 cr_unblock_terminating_signals(GError **err);
74 
75 
103 gboolean
104 cr_lock_repo(const gchar *repo_dir,
105  gboolean ignore_lock,
106  gchar **lock_dir,
107  gchar **tmp_repodata_dir,
108  GError **err);
109 
115 gboolean
116 cr_unset_cleanup_handler(GError **err);
117 
121 void
122 cr_setup_logging(gboolean quiet, gboolean verbose);
123 
126 #ifdef __cplusplus
127 }
128 #endif
129 
130 #endif /* __C_CREATEREPOLIB_CREATEREPO_SHARED__ */
gboolean cr_unset_cleanup_handler(GError **err)
gboolean cr_lock_repo(const gchar *repo_dir, gboolean ignore_lock, gchar **lock_dir, gchar **tmp_repodata_dir, GError **err)
gboolean cr_block_terminating_signals(GError **err)
gboolean cr_set_cleanup_handler(const char *lock_dir, const char *tmp_out_repo, GError **err)
gboolean cr_unblock_terminating_signals(GError **err)
void cr_setup_logging(gboolean quiet, gboolean verbose)