Changeset 56ad818 in mainline for uspace/srv/hid/kbd/include/kbd_ctl.h


Ignore:
Timestamp:
2011-06-11T20:29:41Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9be360ee
Parents:
b1bdc7a4
Message:

Control keyboard ctl modules through ops structures. Always compile in
all ctl modules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/kbd/include/kbd_ctl.h

    rb1bdc7a4 r56ad818  
    11/*
    2  * Copyright (c) 2009 Jiri Svoboda
     2 * Copyright (c) 2011 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4040#include <kbd_port.h>
    4141
    42 extern void kbd_ctl_parse_scancode(int);
    43 extern int kbd_ctl_init(kbd_port_ops_t *);
    44 extern void kbd_ctl_set_ind(unsigned);
     42typedef struct {
     43        void (*parse_scancode)(int);
     44        int (*init)(kbd_port_ops_t *);
     45        void (*set_ind)(unsigned);
     46} kbd_ctl_ops_t;
     47
     48extern kbd_ctl_ops_t apple_ctl;
     49extern kbd_ctl_ops_t gxe_fb_ctl;
     50extern kbd_ctl_ops_t pc_ctl;
     51extern kbd_ctl_ops_t stty_ctl;
     52extern kbd_ctl_ops_t sun_ctl;
    4553
    4654#endif
Note: See TracChangeset for help on using the changeset viewer.