diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-07-07 10:48:06 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-07-07 10:48:06 +0300 |
commit | 811436ec92fa874585552204fc9e4136e0b406c0 (patch) | |
tree | ded3118189c5c25906a3d1f04f54f0c027cd3c2c /rpmio/rpmio.h | |
parent | 7b95061d3b77d8e6b3c80e856b66f49b393511ba (diff) | |
download | librpm-tizen-811436ec92fa874585552204fc9e4136e0b406c0.tar.gz librpm-tizen-811436ec92fa874585552204fc9e4136e0b406c0.tar.bz2 librpm-tizen-811436ec92fa874585552204fc9e4136e0b406c0.zip |
Kick out ftpStrerror() and related error code defines
- our url-retrieval error codes depend on the helper used which is
configurable via macros so hardcoding eg curl codes wont work either
- need to figure out something better, pass helper error messages through
FD_t or something...
Diffstat (limited to 'rpmio/rpmio.h')
-rw-r--r-- | rpmio/rpmio.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/rpmio/rpmio.h b/rpmio/rpmio.h index eed47e704..ca05d156e 100644 --- a/rpmio/rpmio.h +++ b/rpmio/rpmio.h @@ -138,38 +138,6 @@ int fdWritable(FD_t fd, int secs); int fdReadable(FD_t fd, int secs); /** - * FTP and HTTP error codes. - */ -typedef enum ftperrCode_e { - FTPERR_NE_ERROR = -1, /*!< Generic error. */ - FTPERR_NE_LOOKUP = -2, /*!< Hostname lookup failed. */ - FTPERR_NE_AUTH = -3, /*!< Server authentication failed. */ - FTPERR_NE_PROXYAUTH = -4, /*!< Proxy authentication failed. */ - FTPERR_NE_CONNECT = -5, /*!< Could not connect to server. */ - FTPERR_NE_TIMEOUT = -6, /*!< Connection timed out. */ - FTPERR_NE_FAILED = -7, /*!< The precondition failed. */ - FTPERR_NE_RETRY = -8, /*!< Retry request. */ - FTPERR_NE_REDIRECT = -9, /*!< Redirect received. */ - - FTPERR_BAD_SERVER_RESPONSE = -81, /*!< Bad server response */ - FTPERR_SERVER_IO_ERROR = -82, /*!< Server I/O error */ - FTPERR_SERVER_TIMEOUT = -83, /*!< Server timeout */ - FTPERR_BAD_HOST_ADDR = -84, /*!< Unable to lookup server host address */ - FTPERR_BAD_HOSTNAME = -85, /*!< Unable to lookup server host name */ - FTPERR_FAILED_CONNECT = -86, /*!< Failed to connect to server */ - FTPERR_FILE_IO_ERROR = -87, /*!< Failed to establish data connection to server */ - FTPERR_PASSIVE_ERROR = -88, /*!< I/O error to local file */ - FTPERR_FAILED_DATA_CONNECT = -89, /*!< Error setting remote server to passive mode */ - FTPERR_FILE_NOT_FOUND = -90, /*!< File not found on server */ - FTPERR_NIC_ABORT_IN_PROGRESS= -91, /*!< Abort in progress */ - FTPERR_UNKNOWN = -100 /*!< Unknown or unexpected error */ -} ftperrCode; - -/** - */ -const char * ftpStrerror(int errorNumber); - -/** */ int ufdCopy(FD_t sfd, FD_t tfd); |