From 7ea0060e3b5c0f4d261cf4291bcd160ec94164c2 Mon Sep 17 00:00:00 2001 From: graham.gower Date: Thu, 26 Nov 2009 23:09:44 -0500 Subject: 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 --- (limited to 'libopkg/opkg_error.h') 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; -- cgit v0.9.1