Librepo library 1.22.1
C library for downloading linux repository metadata and packages
Loading...
Searching...
No Matches
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, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef __LR_RETURN_CODES_H__
21#define __LR_RETURN_CODES_H__
22
23#include <glib.h>
24
25G_BEGIN_DECLS
26
31
130
135const char *lr_strerror(int rc);
136
138#define LR_CHECKSUM_ERROR lr_checksum_error_quark()
139#define LR_DOWNLOADER_ERROR lr_downloader_error_quark()
140#define LR_FASTESTMIRROR_ERROR lr_fastestmirror_error_quark()
141#define LR_GPG_ERROR lr_gpg_error_quark()
142#define LR_HANDLE_ERROR lr_handle_error_quark()
143#define LR_METALINK_ERROR lr_metalink_error_quark()
144#define LR_MIRRORLIST_ERROR lr_mirrorlist_error_quark()
145#define LR_PACKAGE_DOWNLOADER_ERROR lr_package_downloader_error_quark()
146#define LR_REPOCONF_ERROR lr_repoconf_error_quark()
147#define LR_REPOMD_ERROR lr_repomd_error_quark()
148#define LR_REPOUTIL_YUM_ERROR lr_repoutil_yum_error_quark()
149#define LR_RESULT_ERROR lr_result_error_quark()
150#define LR_XML_PARSER_ERROR lr_xml_parser_error_quark()
151#define LR_YUM_ERROR lr_yum_error_quark()
152
153GQuark lr_checksum_error_quark(void);
154GQuark lr_downloader_error_quark(void);
155GQuark lr_fastestmirror_error_quark(void);
156GQuark lr_gpg_error_quark(void);
157GQuark lr_handle_error_quark(void);
158GQuark lr_metalink_error_quark(void);
159GQuark lr_mirrorlist_error_quark(void);
160GQuark lr_package_downloader_error_quark(void);
161GQuark lr_repoconf_error_quark(void);
162GQuark lr_repomd_error_quark(void);
163GQuark lr_repoutil_yum_error_quark(void);
164GQuark lr_result_error_quark(void);
165GQuark lr_xml_parser_error_quark(void);
166GQuark lr_yum_error_quark(void);
167
169
170G_END_DECLS
171
172#endif
const char * lr_strerror(int rc)
LrRc
Definition rcodes.h:34
@ LRE_BADGPG
Definition rcodes.h:88
@ LRE_REPOMD
Definition rcodes.h:111
@ LRE_NOTSET
Definition rcodes.h:116
@ LRE_BADFUNCARG
Definition rcodes.h:37
@ LRE_SIGACTION
Definition rcodes.h:95
@ LRE_BADURL
Definition rcodes.h:82
@ LRE_BADOPTARG
Definition rcodes.h:39
@ LRE_CURLSETOPT
Definition rcodes.h:43
@ LRE_CURLM
Definition rcodes.h:53
@ LRE_VALUE
Definition rcodes.h:113
@ LRE_OPENSSL
Definition rcodes.h:103
@ LRE_FILE
Definition rcodes.h:119
@ LRE_SELECT
Definition rcodes.h:101
@ LRE_UNKNOWNOPT
Definition rcodes.h:41
@ LRE_TEMPORARYERR
Definition rcodes.h:58
@ LRE_NOURL
Definition rcodes.h:76
@ LRE_IO
Definition rcodes.h:65
@ LRE_CANNOTCREATEDIR
Definition rcodes.h:63
@ LRE_BADSTATUS
Definition rcodes.h:55
@ LRE_CURL
Definition rcodes.h:51
@ LRE_UNKNOWNERROR
Definition rcodes.h:127
@ LRE_OK
Definition rcodes.h:35
@ LRE_REPOMDXML
Definition rcodes.h:74
@ LRE_ZCK
Definition rcodes.h:125
@ LRE_INCOMPLETERESULT
Definition rcodes.h:47
@ LRE_MEMORY
Definition rcodes.h:105
@ LRE_UNFINISHED
Definition rcodes.h:99
@ LRE_CANNOTCREATETMP
Definition rcodes.h:78
@ LRE_CURLDUP
Definition rcodes.h:49
@ LRE_GPGNOTSUPPORTED
Definition rcodes.h:84
@ LRE_INCOMPLETEREPO
Definition rcodes.h:90
@ LRE_NOTLOCAL
Definition rcodes.h:61
@ LRE_KEYFILE
Definition rcodes.h:122
@ LRE_ALREADYUSEDRESULT
Definition rcodes.h:45
@ LRE_MLXML
Definition rcodes.h:70
@ LRE_GPGERROR
Definition rcodes.h:86
@ LRE_ALREADYDOWNLOADED
Definition rcodes.h:97
@ LRE_INTERRUPTED
Definition rcodes.h:92
@ LRE_XMLPARSER
Definition rcodes.h:107
@ LRE_UNKNOWNCHECKSUM
Definition rcodes.h:80
@ LRE_BADCHECKSUM
Definition rcodes.h:72
@ LRE_CBINTERRUPTED
Definition rcodes.h:109
@ LRE_MLBAD
Definition rcodes.h:67