Changeset b3f8fb7 in mainline for kernel/generic/include/console/kconsole.h
- Timestamp:
- 2007-01-28T13:25:49Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8e8c1a5
- Parents:
- 1ba41c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/kconsole.h
r1ba41c5 rb3f8fb7 36 36 #define KERN_KCONSOLE_H_ 37 37 38 #include <typedefs.h>39 38 #include <adt/list.h> 40 39 #include <synch/spinlock.h> … … 43 42 #define KCONSOLE_HISTORY 10 44 43 45 enum cmd_arg_type{44 typedef enum { 46 45 ARG_TYPE_INVALID = 0, 47 46 ARG_TYPE_INT, 48 47 ARG_TYPE_STRING, 49 48 ARG_TYPE_VAR /**< Variable type - either symbol or string */ 50 } ;49 } cmd_arg_type_t; 51 50 52 51 /** Structure representing one argument of kconsole command line. */ 53 struct cmd_arg{52 typedef struct { 54 53 cmd_arg_type_t type; /**< Type descriptor. */ 55 54 void *buffer; /**< Buffer where to store data. */ … … 57 56 unative_t intval; /**< Integer value */ 58 57 cmd_arg_type_t vartype; /**< Resulting type of variable arg */ 59 } ;58 } cmd_arg_t; 60 59 61 60 /** Structure representing one kconsole command. */ 62 struct cmd_info{61 typedef struct { 63 62 link_t link; /**< Command list link. */ 64 63 SPINLOCK_DECLARE(lock); /**< This lock protects everything below. */ … … 69 68 cmd_arg_t *argv; /**< Argument vector. */ 70 69 void (* help)(void); /**< Function for printing detailed help. */ 71 } ;70 } cmd_info_t; 72 71 73 72 extern spinlock_t cmd_lock;
Note:
See TracChangeset
for help on using the changeset viewer.