Rev 517 | Rev 532 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 517 | Rev 518 | ||
|---|---|---|---|
| Line 41... | Line 41... | ||
| 41 | 41 | ||
| 42 | /** Structure representing one argument of kconsole command line. */ |
42 | /** Structure representing one argument of kconsole command line. */ |
| 43 | struct cmd_arg { |
43 | struct cmd_arg { |
| 44 | cmd_arg_type_t type; /**< Type descriptor. */ |
44 | cmd_arg_type_t type; /**< Type descriptor. */ |
| 45 | void *buffer; /**< Buffer where to store data. */ |
45 | void *buffer; /**< Buffer where to store data. */ |
| 46 | size_t buflen; /**< Size of the buffer. */ |
46 | size_t len; /**< Size of the buffer. */ |
| 47 | }; |
47 | }; |
| 48 | 48 | ||
| 49 | /** Structure representing one kconsole command. */ |
49 | /** Structure representing one kconsole command. */ |
| 50 | struct cmd_info { |
50 | struct cmd_info { |
| 51 | link_t link; /**< Command list link. */ |
51 | link_t link; /**< Command list link. */ |
| 52 | spinlock_t lock; /**< This lock protects everything below. */ |
52 | spinlock_t lock; /**< This lock protects everything below. */ |
| 53 | const char *name; /**< Command name. */ |
53 | const char *name; /**< Command name. */ |
| 54 | const char *description; /**< Textual description. */ |
54 | const char *description; /**< Textual description. */ |
| 55 | int (* func)(cmd_arg_t *cmd); /**< Function implementing the command. */ |
55 | int (* func)(cmd_arg_t *); /**< Function implementing the command. */ |
| 56 | count_t argc; /**< Number of arguments. */ |
56 | count_t argc; /**< Number of arguments. */ |
| 57 | cmd_arg_t *argv; /**< Argument vector. */ |
57 | cmd_arg_t *argv; /**< Argument vector. */ |
| - | 58 | void (* help)(void); /**< Function for printing detailed help. */ |
|
| 58 | }; |
59 | }; |
| 59 | 60 | ||
| 60 | extern spinlock_t cmd_lock; |
61 | extern spinlock_t cmd_lock; |
| 61 | extern link_t cmd_head; |
62 | extern link_t cmd_head; |
| 62 | 63 | ||