summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_error.h
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-26 23:09:44 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-26 23:09:44 (EST)
commit7ea0060e3b5c0f4d261cf4291bcd160ec94164c2 (patch)
tree303fef8983cf9cc707d34c231a6eedbb703d5ad9 /libopkg/opkg_error.h
parent65744fa1522751906c5cfb93e67137fc98103e91 (diff)
Remove enum opkg_error.
The return codes aren't particularly useful and trying to have a useful one for every error scenario would be like extending errno. Good error messages via opkg_message() are far more appropriate. git-svn-id: http://opkg.googlecode.com/svn/trunk@395 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/opkg_error.h')
-rw-r--r--libopkg/opkg_error.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/libopkg/opkg_error.h b/libopkg/opkg_error.h
index ec0d1c2..c40e635 100644
--- a/libopkg/opkg_error.h
+++ b/libopkg/opkg_error.h
@@ -16,37 +16,6 @@
#ifndef OPKG_ERROR_H
#define OPKG_ERROR_H
-enum opkg_error {
- OPKG_ERR_UNKNOWN = -1,
- OPKG_ERR_NONE = 0,
-
- OPKG_CONF_ERR_DEFAULT_DEST, /* could not set default dest */
- OPKG_CONF_ERR_PARSE, /* error parsing config file */
- OPKG_CONF_ERR_TMP_DIR, /* could not create temporary directory */
- OPKG_CONF_ERR_LOCK, /* could not get opkg lock */
-
- OPKG_PKG_DEPS_UNSATISFIED,
- OPKG_PKG_IS_ESSENTIAL,
- OPKG_PKG_HAS_DEPENDENTS,
- OPKG_PKG_HAS_NO_CANDIDATE,
- OPKG_PKG_HAS_NO_AVAILABLE_ARCH,
-
- OPKG_INSTALL_ERR_NOT_TRUSTED,
- OPKG_INSTALL_ERR_DOWNLOAD,
- OPKG_INSTALL_ERR_CONFLICTS,
- OPKG_INSTALL_ERR_ALREADY_INSTALLED,
- OPKG_INSTALL_ERR_DEPENDENCIES,
- OPKG_INSTALL_ERR_NO_DOWNGRADE,
- OPKG_INSTALL_ERR_NO_SPACE,
- OPKG_INSTALL_ERR_SIGNATURE,
- OPKG_INSTALL_ERR_MD5,
- OPKG_INSTALL_ERR_INTERNAL,
- OPKG_INSTALL_ERR_SHA256,
-
-};
-typedef enum opkg_error opkg_error_t;
-
-
struct errlist {
char * errmsg;
struct errlist * next;