-opkg_state_changed_callback opkg_cb_state;
+opkg_state_changed_callback opkg_cb_state_changed = NULL;
static opkg_state_t opkg_state = 0;
static char *opkg_state_data = NULL;
opkg_state = state;
+ if (opkg_cb_state_changed)
+ {
+ opkg_cb_state_changed (opkg_state, opkg_state_data);
+ }
+
+
printf ("opkg state set to %s: %s\n", state_strings[state], data);
}