libopkg: remove internal dependency on libopkg.h and opkg_cmd.h
[oweals/opkg-lede.git] / libopkg / user.c
index 557f7ce890577877f96d1887ab8a50f3d7a112a0..2467de9958eef51a08381356223011efb5b61db5 100644 (file)
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    General Public License for more details.
 */
-
+#include <stdlib.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <string.h>
 #include "file_util.h"
 #include "str_util.h"
-#include "libopkg.h"
-
+#include "user.h"
 
 static char *question = NULL;
 static int question_len = 255;
 
+opkg_response_callback opkg_cb_response = NULL;
+
 char *get_user_response(const char *format, ...)
 {
      int len = question_len;