Librepo library  1.7.13
C library for downloading linux repository metadata and packages
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules
rcodes.h
1 /* librepo - A library providing (libcURL like) API to downloading repository
2  * Copyright (C) 2012 Tomas Mlcoch
3  *
4  * Licensed under the GNU Lesser General Public License Version 2.1
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef __LR_RETURN_CODES_H__
22 #define __LR_RETURN_CODES_H__
23 
24 #include <glib.h>
25 
26 G_BEGIN_DECLS
27 
35 typedef enum {
119 } LrRc;
125 const char *lr_strerror(int rc);
126 
128 #define LR_CHECKSUM_ERROR lr_checksum_error_quark()
129 #define LR_DOWNLOADER_ERROR lr_downloader_error_quark()
130 #define LR_FASTESTMIRROR_ERROR lr_fastestmirror_error_quark()
131 #define LR_GPG_ERROR lr_gpg_error_quark()
132 #define LR_HANDLE_ERROR lr_handle_error_quark()
133 #define LR_METALINK_ERROR lr_metalink_error_quark()
134 #define LR_MIRRORLIST_ERROR lr_mirrorlist_error_quark()
135 #define LR_PACKAGE_DOWNLOADER_ERROR lr_package_downloader_error_quark()
136 #define LR_REPOCONF_ERROR lr_repoconf_error_quark()
137 #define LR_REPOMD_ERROR lr_repomd_error_quark()
138 #define LR_REPOUTIL_YUM_ERROR lr_repoutil_yum_error_quark()
139 #define LR_RESULT_ERROR lr_result_error_quark()
140 #define LR_XML_PARSER_ERROR lr_xml_parser_error_quark()
141 #define LR_YUM_ERROR lr_yum_error_quark()
142 
143 GQuark lr_checksum_error_quark(void);
144 GQuark lr_downloader_error_quark(void);
145 GQuark lr_fastestmirror_error_quark(void);
146 GQuark lr_gpg_error_quark(void);
147 GQuark lr_handle_error_quark(void);
148 GQuark lr_metalink_error_quark(void);
149 GQuark lr_mirrorlist_error_quark(void);
150 GQuark lr_package_downloader_error_quark(void);
151 GQuark lr_repoconf_error_quark(void);
152 GQuark lr_repomd_error_quark(void);
153 GQuark lr_repoutil_yum_error_quark(void);
154 GQuark lr_result_error_quark(void);
155 GQuark lr_xml_parser_error_quark(void);
156 GQuark lr_yum_error_quark(void);
157 
160 G_END_DECLS
161 
162 #endif
LrRc
Definition: rcodes.h:35
Definition: rcodes.h:66
const char * lr_strerror(int rc)
Definition: rcodes.h:36