summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_error.h
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:22:06 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:22:06 (EST)
commit9e85c59c8df6dd151fce6238811844d8d66ea1c0 (patch)
treefda715b0c88fb02029a6a42ed1768511a0ae4a0f /libopkg/opkg_error.h
parent38171e005d8bc496389bccdf8b9f8449b7b227a5 (diff)
opkg: Consolidate error reporting from opkg_conf_init and ensure return value is
checked in the appropriate places. opkg: Add a locking mechanism to prevent two instances of opkg being run at the same time. git-svn-id: http://opkg.googlecode.com/svn/trunk@130 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/opkg_error.h')
-rw-r--r--libopkg/opkg_error.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libopkg/opkg_error.h b/libopkg/opkg_error.h
index b04bd0b..94dbdea 100644
--- a/libopkg/opkg_error.h
+++ b/libopkg/opkg_error.h
@@ -20,6 +20,11 @@ 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,