blob: c4f741ddebbd30c646ec3ce6963d24437a2e03e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/* opkglib.h - the opkg package management system
Florian Boor <florian.boor@kernelconcepts.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2, or (at
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/
#ifndef OPKGLIB_H
#define OPKGLIB_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "opkg_conf.h"
#include "opkg_message.h"
#include "opkg_state.h"
#include "opkg_download.h"
#include "opkg_utils.h"
#include "args.h"
#include "pkg.h"
#include "user.h"
typedef int (*opkg_status_callback)(char *name, int istatus, char *desc,
void *userdata);
typedef int (*opkg_list_callback)(char *name, char *desc, char *version,
pkg_state_status_t status, void *userdata);
typedef void (*opkg_progress_callback)(int complete, int total, void *userdata);
extern int opkg_op(int argc, char *argv[]); /* opkglib.c */
extern opkg_message_callback opkg_cb_message; /* opkg_message.c */
extern opkg_response_callback opkg_cb_response; /* user.c */
extern opkg_status_callback opkg_cb_status;
extern opkg_list_callback opkg_cb_list;
extern opkg_download_progress_callback opkg_cb_download_progress; /* opkg_download.c */
extern opkg_state_changed_callback opkg_cb_state_changed; /* opkg_state.c */
#endif
|