opkg: remove unused code
[oweals/opkg-lede.git] / libopkg / libopkg.h
1 /* opkglib.h - the opkg package management system
2
3    Florian Boor <florian.boor@kernelconcepts.de>
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 OPKGLIB_H
17 #define OPKGLIB_H
18
19 #ifdef HAVE_CONFIG_H
20 #include "config.h"
21 #endif
22
23
24 #include "opkg_conf.h"
25 #include "opkg_message.h"
26 #include "opkg_state.h"
27 #include "opkg_download.h"
28 #include "opkg_utils.h"
29
30 #include "args.h"
31 #include "pkg.h"
32 #include "user.h"
33
34 typedef int (*opkg_status_callback)(char *name, int istatus, char *desc,
35         void *userdata);
36 typedef int (*opkg_list_callback)(char *name, char *desc, char *version, 
37         pkg_state_status_t status, void *userdata);
38 typedef void (*opkg_progress_callback)(int complete, int total, void *userdata);
39 extern int opkg_op(int argc, char *argv[]); /* opkglib.c */
40
41 extern opkg_message_callback opkg_cb_message; /* opkg_message.c */
42 extern opkg_response_callback opkg_cb_response; /* user.c */
43 extern opkg_status_callback opkg_cb_status;
44 extern opkg_list_callback opkg_cb_list;
45 extern opkg_download_progress_callback opkg_cb_download_progress; /* opkg_download.c */
46 extern opkg_state_changed_callback opkg_cb_state_changed; /* opkg_state.c */
47 #endif