Loading...
Searching...
No Matches
rcodes.h
/* librepo - A library providing (libcURL like) API to downloading repository
* Copyright (C) 2012 Tomas Mlcoch
*
* Licensed under the GNU Lesser General Public License Version 2.1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __LR_RETURN_CODES_H__
#define __LR_RETURN_CODES_H__
#include <glib.h>
G_BEGIN_DECLS
typedef enum {
LRE_OK,
LRE_BADFUNCARG,
LRE_BADOPTARG,
LRE_UNKNOWNOPT,
LRE_CURLSETOPT,
LRE_ALREADYUSEDRESULT,
LRE_INCOMPLETERESULT,
LRE_CURLDUP,
LRE_CURL,
LRE_CURLM,
LRE_BADSTATUS,
LRE_TEMPORARYERR,
LRE_NOTLOCAL,
LRE_CANNOTCREATEDIR,
LRE_IO,
LRE_MLBAD,
LRE_MLXML,
LRE_BADCHECKSUM,
LRE_REPOMDXML,
LRE_NOURL,
LRE_CANNOTCREATETMP,
LRE_UNKNOWNCHECKSUM,
LRE_BADURL,
LRE_GPGNOTSUPPORTED,
LRE_GPGERROR,
LRE_BADGPG,
LRE_INCOMPLETEREPO,
LRE_INTERRUPTED,
LRE_SIGACTION,
LRE_ALREADYDOWNLOADED,
LRE_UNFINISHED,
LRE_SELECT,
LRE_OPENSSL,
LRE_MEMORY,
LRE_XMLPARSER,
LRE_CBINTERRUPTED,
LRE_REPOMD,
LRE_VALUE,
LRE_NOTSET,
LRE_FILE,
LRE_KEYFILE,
LRE_ZCK,
LRE_UNKNOWNERROR,
} LrRc;
const char *lr_strerror(int rc);
#define LR_CHECKSUM_ERROR lr_checksum_error_quark()
#define LR_DOWNLOADER_ERROR lr_downloader_error_quark()
#define LR_FASTESTMIRROR_ERROR lr_fastestmirror_error_quark()
#define LR_GPG_ERROR lr_gpg_error_quark()
#define LR_HANDLE_ERROR lr_handle_error_quark()
#define LR_METALINK_ERROR lr_metalink_error_quark()
#define LR_MIRRORLIST_ERROR lr_mirrorlist_error_quark()
#define LR_PACKAGE_DOWNLOADER_ERROR lr_package_downloader_error_quark()
#define LR_REPOCONF_ERROR lr_repoconf_error_quark()
#define LR_REPOMD_ERROR lr_repomd_error_quark()
#define LR_REPOUTIL_YUM_ERROR lr_repoutil_yum_error_quark()
#define LR_RESULT_ERROR lr_result_error_quark()
#define LR_XML_PARSER_ERROR lr_xml_parser_error_quark()
#define LR_YUM_ERROR lr_yum_error_quark()
GQuark lr_checksum_error_quark(void);
GQuark lr_downloader_error_quark(void);
GQuark lr_fastestmirror_error_quark(void);
GQuark lr_gpg_error_quark(void);
GQuark lr_handle_error_quark(void);
GQuark lr_metalink_error_quark(void);
GQuark lr_mirrorlist_error_quark(void);
GQuark lr_package_downloader_error_quark(void);
GQuark lr_repoconf_error_quark(void);
GQuark lr_repomd_error_quark(void);
GQuark lr_repoutil_yum_error_quark(void);
GQuark lr_result_error_quark(void);
GQuark lr_xml_parser_error_quark(void);
GQuark lr_yum_error_quark(void);
G_END_DECLS
#endif
lr_strerror
const char * lr_strerror(int rc)
LrRc
LrRc
Definition rcodes.h:35
LRE_BADGPG
@ LRE_BADGPG
Definition rcodes.h:89
LRE_REPOMD
@ LRE_REPOMD
Definition rcodes.h:112
LRE_NOTSET
@ LRE_NOTSET
Definition rcodes.h:117
LRE_BADFUNCARG
@ LRE_BADFUNCARG
Definition rcodes.h:38
LRE_SIGACTION
@ LRE_SIGACTION
Definition rcodes.h:96
LRE_BADURL
@ LRE_BADURL
Definition rcodes.h:83
LRE_BADOPTARG
@ LRE_BADOPTARG
Definition rcodes.h:40
LRE_CURLSETOPT
@ LRE_CURLSETOPT
Definition rcodes.h:44
LRE_CURLM
@ LRE_CURLM
Definition rcodes.h:54
LRE_VALUE
@ LRE_VALUE
Definition rcodes.h:114
LRE_OPENSSL
@ LRE_OPENSSL
Definition rcodes.h:104
LRE_FILE
@ LRE_FILE
Definition rcodes.h:120
LRE_SELECT
@ LRE_SELECT
Definition rcodes.h:102
LRE_UNKNOWNOPT
@ LRE_UNKNOWNOPT
Definition rcodes.h:42
LRE_TEMPORARYERR
@ LRE_TEMPORARYERR
Definition rcodes.h:59
LRE_NOURL
@ LRE_NOURL
Definition rcodes.h:77
LRE_IO
@ LRE_IO
Definition rcodes.h:66
LRE_CANNOTCREATEDIR
@ LRE_CANNOTCREATEDIR
Definition rcodes.h:64
LRE_BADSTATUS
@ LRE_BADSTATUS
Definition rcodes.h:56
LRE_CURL
@ LRE_CURL
Definition rcodes.h:52
LRE_UNKNOWNERROR
@ LRE_UNKNOWNERROR
Definition rcodes.h:128
LRE_OK
@ LRE_OK
Definition rcodes.h:36
LRE_REPOMDXML
@ LRE_REPOMDXML
Definition rcodes.h:75
LRE_ZCK
@ LRE_ZCK
Definition rcodes.h:126
LRE_INCOMPLETERESULT
@ LRE_INCOMPLETERESULT
Definition rcodes.h:48
LRE_MEMORY
@ LRE_MEMORY
Definition rcodes.h:106
LRE_UNFINISHED
@ LRE_UNFINISHED
Definition rcodes.h:100
LRE_CANNOTCREATETMP
@ LRE_CANNOTCREATETMP
Definition rcodes.h:79
LRE_CURLDUP
@ LRE_CURLDUP
Definition rcodes.h:50
LRE_GPGNOTSUPPORTED
@ LRE_GPGNOTSUPPORTED
Definition rcodes.h:85
LRE_INCOMPLETEREPO
@ LRE_INCOMPLETEREPO
Definition rcodes.h:91
LRE_NOTLOCAL
@ LRE_NOTLOCAL
Definition rcodes.h:62
LRE_KEYFILE
@ LRE_KEYFILE
Definition rcodes.h:123
LRE_ALREADYUSEDRESULT
@ LRE_ALREADYUSEDRESULT
Definition rcodes.h:46
LRE_MLXML
@ LRE_MLXML
Definition rcodes.h:71
LRE_GPGERROR
@ LRE_GPGERROR
Definition rcodes.h:87
LRE_ALREADYDOWNLOADED
@ LRE_ALREADYDOWNLOADED
Definition rcodes.h:98
LRE_INTERRUPTED
@ LRE_INTERRUPTED
Definition rcodes.h:93
LRE_XMLPARSER
@ LRE_XMLPARSER
Definition rcodes.h:108
LRE_UNKNOWNCHECKSUM
@ LRE_UNKNOWNCHECKSUM
Definition rcodes.h:81
LRE_BADCHECKSUM
@ LRE_BADCHECKSUM
Definition rcodes.h:73
LRE_CBINTERRUPTED
@ LRE_CBINTERRUPTED
Definition rcodes.h:110
LRE_MLBAD
@ LRE_MLBAD
Definition rcodes.h:68