summaryrefslogtreecommitdiffstats
path: root/libopkg.h
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-14 23:21:07 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-14 23:21:07 (EST)
commitc82094c9e17afef41e49cff3eabdbdd0f6ca3a21 (patch)
tree6196e847768ba4557fb3d02069b2191f13b0a558 /libopkg.h
parent1b978470851b90036769099e69e82b1ea2d20500 (diff)
opkg: add internal state framework
git-svn-id: http://opkg.googlecode.com/svn/trunk@26 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg.h')
-rw-r--r--libopkg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libopkg.h b/libopkg.h
index 274e37b..3430e1c 100644
--- a/libopkg.h
+++ b/libopkg.h
@@ -25,6 +25,7 @@
#include "opkg_conf.h"
#include "opkg_message.h"
+#include "opkg_state.h"
#include "args.h"
#include "pkg.h"
@@ -37,6 +38,7 @@ typedef int (*opkg_status_callback)(char *name, int istatus, char *desc,
void *userdata);
typedef char* (*opkg_response_callback)(char *question);
typedef void (*opkg_download_progress_callback)(int percent, char *url);
+typedef void (*opkg_state_changed_callback)(opkg_state_t state, const char *data);
extern int opkg_op(int argc, char *argv[]); /* opkglib.c */
extern int opkg_init (opkg_message_callback mcall,
@@ -79,7 +81,8 @@ extern opkg_message_callback opkg_cb_message; /* opkglib.c */
extern opkg_response_callback opkg_cb_response;
extern opkg_status_callback opkg_cb_status;
extern opkg_list_callback opkg_cb_list;
-extern opkg_download_progress_callback opkg_cb_download_progress; /* ipkg_download.c */
+extern opkg_download_progress_callback opkg_cb_download_progress; /* opkg_download.c */
+extern opkg_state_changed_callback opkg_cb_state_changed; /* opkg_state.c */
extern void push_error_list(struct errlist **errors,char * msg);
extern void reverse_error_list(struct errlist **errors);