opkg: improve opkg_install error reporting and include a check to verify repository...
[oweals/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_SUCCESS = 0,
21     OPKG_PKG_DEPS_UNSATISFIED,
22     OPKG_PKG_IS_ESSENTIAL,
23     OPKG_PKG_HAS_DEPENDENTS,
24     OPKG_PKG_HAS_NO_CANDIDATE
25 };
26 typedef enum opkg_error opkg_error_t;
27
28
29 struct errlist {
30     char * errmsg;
31     struct errlist * next;
32 } ;
33
34 struct errlist* error_list;
35
36 #endif /* OPKG_ERROR_H */