X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=blobdiff_plain;f=libopkg%2Fopkg_state.h;h=44b8d0dc1fc1e40418ab218643cc5a483e3aa629;hp=9442d939487dbdc21988231970d7cd4d33cd5472;hb=922c14bca8e95e1d507ece63e0464f45dc92443c;hpb=4875f878ecec75c8982c833a5e13055a762c4c3f diff --git a/libopkg/opkg_state.h b/libopkg/opkg_state.h index 9442d93..44b8d0d 100644 --- a/libopkg/opkg_state.h +++ b/libopkg/opkg_state.h @@ -18,7 +18,7 @@ #ifndef OPKG_STATE_H #define OPKG_STATE_H -#include +#include "opkg_message.h" extern int opkg_state_changed; @@ -36,5 +36,8 @@ typedef enum _opkg_state { 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 */