summaryrefslogtreecommitdiffstats
path: root/libopkg/user.c
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:03:46 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:03:46 (EST)
commitf4a787e50beb527aeffd847df6b734b29967bd96 (patch)
treec07cd2fbd8f10b2eef445f5e400de95c25c5e04a /libopkg/user.c
parent4875f878ecec75c8982c833a5e13055a762c4c3f (diff)
libopkg: remove internal dependency on libopkg.h and opkg_cmd.h
git-svn-id: http://opkg.googlecode.com/svn/trunk@64 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/user.c')
-rw-r--r--libopkg/user.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libopkg/user.c b/libopkg/user.c
index 557f7ce..2467de9 100644
--- a/libopkg/user.c
+++ b/libopkg/user.c
@@ -15,17 +15,19 @@
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;