Rev 582 | Rev 601 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 582 | Rev 585 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | #include <synch/spinlock.h> |
34 | #include <synch/spinlock.h> |
35 | 35 | ||
36 | enum cmd_arg_type { |
36 | enum cmd_arg_type { |
37 | ARG_TYPE_INVALID = 0, |
37 | ARG_TYPE_INVALID = 0, |
38 | ARG_TYPE_INT, |
38 | ARG_TYPE_INT, |
39 | ARG_TYPE_STRING |
39 | ARG_TYPE_STRING, |
- | 40 | ARG_TYPE_VAR /**< Variable type - either symbol or string */ |
|
40 | }; |
41 | }; |
41 | 42 | ||
42 | /** Structure representing one argument of kconsole command line. */ |
43 | /** Structure representing one argument of kconsole command line. */ |
43 | struct cmd_arg { |
44 | struct cmd_arg { |
44 | cmd_arg_type_t type; /**< Type descriptor. */ |
45 | cmd_arg_type_t type; /**< Type descriptor. */ |
45 | void *buffer; /**< Buffer where to store data. */ |
46 | void *buffer; /**< Buffer where to store data. */ |
46 | size_t len; /**< Size of the buffer. */ |
47 | size_t len; /**< Size of the buffer. */ |
47 | __native intval; /**< Integer value */ |
48 | __native intval; /**< Integer value */ |
- | 49 | cmd_arg_type_t vartype; /**< Resulting type of variable arg */ |
|
48 | }; |
50 | }; |
49 | 51 | ||
50 | /** Structure representing one kconsole command. */ |
52 | /** Structure representing one kconsole command. */ |
51 | struct cmd_info { |
53 | struct cmd_info { |
52 | link_t link; /**< Command list link. */ |
54 | link_t link; /**< Command list link. */ |