Make `curl' an instance variable and ssl support
[oweals/opkg-lede.git] / libopkg / opkg_state.h
index 27185693ca290f2c64f0dea038c8130e763854f7..44b8d0dc1fc1e40418ab218643cc5a483e3aa629 100644 (file)
 #ifndef OPKG_STATE_H
 #define OPKG_STATE_H
 
+#include "opkg_message.h"
+
+extern int opkg_state_changed;
+
 typedef enum _opkg_state {
   OPKG_STATE_NONE,
   OPKG_STATE_DOWNLOADING_PKG,
@@ -30,7 +34,10 @@ typedef enum _opkg_state {
 } opkg_state_t;
 
 
-void opkg_set_current_state (opkg_state_t state, const char *data);
+void opkg_set_current_state (opkg_conf_t *conf, opkg_state_t state, const char *data);
+
+typedef void (*opkg_state_changed_callback)(opkg_state_t state, const char *data);
+
 
 
 #endif /* OPKG_STATE_H */