ec0d1c2fdb398e9278cf51413fb37e0af7f10ac1
[project/opkg-lede.git] / libopkg / opkg_error.h
1 /* opkg_error.h - the opkg package management system
2
3 Copyright (C) 2008 OpenMoko Inc
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License as
7 published by the Free Software Foundation; either version 2, or (at
8 your option) any later version.
9
10 This program is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14 */
15
16 #ifndef OPKG_ERROR_H
17 #define OPKG_ERROR_H
18
19 enum opkg_error {
20 OPKG_ERR_UNKNOWN = -1,
21 OPKG_ERR_NONE = 0,
22
23 OPKG_CONF_ERR_DEFAULT_DEST, /* could not set default dest */
24 OPKG_CONF_ERR_PARSE, /* error parsing config file */
25 OPKG_CONF_ERR_TMP_DIR, /* could not create temporary directory */
26 OPKG_CONF_ERR_LOCK, /* could not get opkg lock */
27
28 OPKG_PKG_DEPS_UNSATISFIED,
29 OPKG_PKG_IS_ESSENTIAL,
30 OPKG_PKG_HAS_DEPENDENTS,
31 OPKG_PKG_HAS_NO_CANDIDATE,
32 OPKG_PKG_HAS_NO_AVAILABLE_ARCH,
33
34 OPKG_INSTALL_ERR_NOT_TRUSTED,
35 OPKG_INSTALL_ERR_DOWNLOAD,
36 OPKG_INSTALL_ERR_CONFLICTS,
37 OPKG_INSTALL_ERR_ALREADY_INSTALLED,
38 OPKG_INSTALL_ERR_DEPENDENCIES,
39 OPKG_INSTALL_ERR_NO_DOWNGRADE,
40 OPKG_INSTALL_ERR_NO_SPACE,
41 OPKG_INSTALL_ERR_SIGNATURE,
42 OPKG_INSTALL_ERR_MD5,
43 OPKG_INSTALL_ERR_INTERNAL,
44 OPKG_INSTALL_ERR_SHA256,
45
46 };
47 typedef enum opkg_error opkg_error_t;
48
49
50 struct errlist {
51 char * errmsg;
52 struct errlist * next;
53 } ;
54
55 #endif /* OPKG_ERROR_H */