Ignore:
Timestamp:
2007-02-03T13:22:24Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f619ec11
Parents:
fa8e7d2
Message:

Merge as_t structure into one and leave the differring parts in as_genarch_t.

Indentation and formatting changes in header files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/console/kconsole.h

    rfa8e7d2 r80bcaed  
    4646        ARG_TYPE_INT,
    4747        ARG_TYPE_STRING,
    48         ARG_TYPE_VAR      /**< Variable type - either symbol or string */
     48        /** Variable type - either symbol or string. */
     49        ARG_TYPE_VAR     
    4950} cmd_arg_type_t;
    5051
    5152/** Structure representing one argument of kconsole command line. */
    5253typedef struct {
    53         cmd_arg_type_t type;            /**< Type descriptor. */
    54         void *buffer;                   /**< Buffer where to store data. */
    55         size_t len;                     /**< Size of the buffer. */
    56         unative_t intval;                /**< Integer value */
    57         cmd_arg_type_t vartype;         /**< Resulting type of variable arg */
     54        /** Type descriptor. */
     55        cmd_arg_type_t type;
     56        /** Buffer where to store data. */
     57        void *buffer;
     58        /** Size of the buffer. */
     59        size_t len;
     60        /** Integer value. */
     61        unative_t intval;
     62        /** Resulting type of variable arg */
     63        cmd_arg_type_t vartype;
    5864} cmd_arg_t;
    5965
    6066/** Structure representing one kconsole command. */
    6167typedef struct {
    62         link_t link;                    /**< Command list link. */
    63         SPINLOCK_DECLARE(lock);         /**< This lock protects everything below. */
    64         const char *name;               /**< Command name. */
    65         const char *description;        /**< Textual description. */
    66         int (* func)(cmd_arg_t *);      /**< Function implementing the command. */
    67         count_t argc;                   /**< Number of arguments. */
    68         cmd_arg_t *argv;                /**< Argument vector. */
    69         void (* help)(void);            /**< Function for printing detailed help. */
     68        /** Command list link. */
     69        link_t link;
     70        /** This lock protects everything below. */
     71        SPINLOCK_DECLARE(lock);
     72        /** Command name. */
     73        const char *name;
     74        /** Textual description. */
     75        const char *description;
     76        /** Function implementing the command. */
     77        int (* func)(cmd_arg_t *);
     78        /** Number of arguments. */
     79        count_t argc;
     80        /** Argument vector. */
     81        cmd_arg_t *argv;
     82        /** Function for printing detailed help. */
     83        void (* help)(void);
    7084} cmd_info_t;
    7185
Note: See TracChangeset for help on using the changeset viewer.