5 #ifndef LUADEBUG_USER_H 6 #define LUADEBUG_USER_H 9 #include <haka/thread.h> 11 typedef char *generator_callback(
const char *text,
int state);
13 struct luadebug_user {
15 generator_callback *(*completion)(
const char *line,
int start);
18 bool (*start)(
struct luadebug_user *data,
const char *name);
19 char *(*readline)(
struct luadebug_user *data,
const char *prompt);
20 void (*addhistory)(
struct luadebug_user *data,
const char *line);
21 bool (*stop)(
struct luadebug_user *data);
22 void (*print)(
struct luadebug_user *data,
const char *format, ...);
23 bool (*check)(
struct luadebug_user *data);
24 void (*destroy)(
struct luadebug_user *data);
27 void luadebug_user_init(
struct luadebug_user *user);
28 void luadebug_user_addref(
struct luadebug_user *user);
29 void luadebug_user_release(
struct luadebug_user **user);
31 struct luadebug_user *luadebug_user_readline();
33 struct luadebug_user *luadebug_user_remote(
int fd);
34 void luadebug_user_remote_server(
int fd,
struct luadebug_user *user);
unsigned char bool
Definition: types.h:17
volatile uint32 atomic_t
Definition: thread.h:267