Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 7ee8c5b in mainline


Ignore:
Timestamp:
2009-03-12T19:37:20Z (13 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial
Children:
c640876
Parents:
29295cd
Message:

Add more comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/kbd/include/gsp.h

    r29295cd r7ee8c5b  
    4141
    4242enum {
    43         GSP_END         = -1,
    44         GSP_DEFAULT     = -2
     43        GSP_END         = -1,   /**< Terminates a sequence. */
     44        GSP_DEFAULT     = -2    /**< Wildcard, catches unhandled cases. */
    4545};
    4646
     47/** Scancode parser description */
    4748typedef struct {
    48         /** Transition table, (state, input) -> (state, output). */
     49        /** Transition table, (state, input) -> (state, output) */
    4950        hash_table_t trans;
    5051
    51         /** Current number of states. */
     52        /** Number of states */
    5253        int states;
    5354} gsp_t;
    5455
     56/** Scancode parser transition. */
    5557typedef struct {
    56         link_t link;
     58        link_t link;            /**< Link to hash table in @c gsp_t */
    5759
    58         int old_state;
    59         int input;
     60        /* Preconditions */
    6061
    61         int new_state;
     62        int old_state;          /**< State before transition */
     63        int input;              /**< Input symbol (scancode) */
    6264
    63         unsigned out_mods;
    64         unsigned out_key;
     65        /* Effects */
     66
     67        int new_state;          /**< State after transition */
     68
     69        /* Output emitted during transition */
     70
     71        unsigned out_mods;      /**< Modifier to emit */
     72        unsigned out_key;       /**< Keycode to emit */
    6573} gsp_trans_t;
    6674
     
    7078extern int gsp_step(gsp_t *, int, int, unsigned *, unsigned *);
    7179
    72 
    7380#endif
    7481
     
    7683 * @}
    7784 */
    78 
Note: See TracChangeset for help on using the changeset viewer.