Rev 4089 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4089 | Rev 4217 | ||
|---|---|---|---|
| Line 37... | Line 37... | ||
| 37 | 37 | ||
| 38 | #include <adt/list.h> |
38 | #include <adt/list.h> |
| 39 | #include <synch/spinlock.h> |
39 | #include <synch/spinlock.h> |
| 40 | #include <ipc/irq.h> |
40 | #include <ipc/irq.h> |
| 41 | 41 | ||
| 42 | #define MAX_CMDLINE 256 |
42 | #define MAX_CMDLINE 256 |
| 43 | #define KCONSOLE_HISTORY 10 |
43 | #define KCONSOLE_HISTORY 10 |
| 44 | 44 | ||
| 45 | typedef enum { |
45 | typedef enum { |
| 46 | ARG_TYPE_INVALID = 0, |
46 | ARG_TYPE_INVALID = 0, |
| 47 | ARG_TYPE_INT, |
47 | ARG_TYPE_INT, |
| 48 | ARG_TYPE_STRING, |
48 | ARG_TYPE_STRING, |
| 49 | /** Variable type - either symbol or string. */ |
49 | /** Variable type - either symbol or string. */ |
| 50 | ARG_TYPE_VAR |
50 | ARG_TYPE_VAR |
| 51 | } cmd_arg_type_t; |
51 | } cmd_arg_type_t; |
| 52 | 52 | ||
| 53 | /** Structure representing one argument of kconsole command line. */ |
53 | /** Structure representing one argument of kconsole command line. */ |
| 54 | typedef struct { |
54 | typedef struct { |
| 55 | /** Type descriptor. */ |
55 | /** Type descriptor. */ |
| Line 94... | Line 94... | ||
| 94 | extern void kconsole_notify_init(void); |
94 | extern void kconsole_notify_init(void); |
| 95 | extern bool kconsole_check_poll(void); |
95 | extern bool kconsole_check_poll(void); |
| 96 | extern void kconsole(char *prompt, char *msg, bool kcon); |
96 | extern void kconsole(char *prompt, char *msg, bool kcon); |
| 97 | extern void kconsole_thread(void *data); |
97 | extern void kconsole_thread(void *data); |
| 98 | 98 | ||
| 99 | extern int cmd_register(cmd_info_t *cmd); |
99 | extern bool cmd_register(cmd_info_t *cmd); |
| 100 | 100 | ||
| 101 | #endif |
101 | #endif |
| 102 | 102 | ||
| 103 | /** @} |
103 | /** @} |
| 104 | */ |
104 | */ |