ipkg: remove auto-generated files
[oweals/opkg-lede.git] / ipkg.h
1 /* ipkg.h - the itsy package management system
2
3    Carl D. Worth
4
5    Copyright (C) 2001 University of Southern California
6
7    This program is free software; you can redistribute it and/or
8    modify it under the terms of the GNU General Public License as
9    published by the Free Software Foundation; either version 2, or (at
10    your option) any later version.
11
12    This program is distributed in the hope that it will be useful, but
13    WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15    General Public License for more details.
16 */
17
18 #ifndef IPKG_H
19 #define IPKG_H
20
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24
25 #if 0
26 #define IPKG_DEBUG_NO_TMP_CLEANUP
27 #endif
28
29 #include "includes.h"
30 #include "ipkg_conf.h"
31 #include "ipkg_message.h"
32
33 #define IPKG_PKG_EXTENSION ".ipk"
34 #define DPKG_PKG_EXTENSION ".deb"
35
36 #define IPKG_LEGAL_PKG_NAME_CHARS "abcdefghijklmnopqrstuvwxyz0123456789.+-"
37 #define IPKG_PKG_VERSION_SEP_CHAR '_'
38
39 #define IPKG_STATE_DIR_PREFIX IPKGLIBDIR"/ipkg"
40 #define IPKG_LISTS_DIR_SUFFIX "lists"
41 #define IPKG_INFO_DIR_SUFFIX "info"
42 #define IPKG_STATUS_FILE_SUFFIX "status"
43
44 #define IPKG_BACKUP_SUFFIX "-ipkg.backup"
45
46 #define IPKG_LIST_DESCRIPTION_LENGTH 128
47
48 enum ipkg_error {
49     IPKG_SUCCESS = 0,
50     IPKG_PKG_DEPS_UNSATISFIED,
51     IPKG_PKG_IS_ESSENTIAL,
52     IPKG_PKG_HAS_DEPENDENTS,
53     IPKG_PKG_HAS_NO_CANDIDATE
54 };
55 typedef enum ipkg_error ipkg_error_t;
56
57 extern int ipkg_state_changed;
58
59
60 struct errlist {
61     char * errmsg;
62     struct errlist * next;
63 } ;
64
65 struct errlist* error_list;
66
67
68 #endif