Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/ctl/kbdev.c

    r1875a0c r854eddd6  
    5353
    5454static int kbdev_ctl_init(kbd_dev_t *);
    55 static void kbdev_ctl_set_ind(kbd_dev_t *, unsigned int);
     55static void kbdev_ctl_set_ind(kbd_dev_t *, unsigned);
    5656
    5757static void kbdev_callback_conn(ipc_callid_t, ipc_call_t *, void *arg);
    5858
    5959kbd_ctl_ops_t kbdev_ctl = {
    60         .parse = NULL,
     60        .parse_scancode = NULL,
    6161        .init = kbdev_ctl_init,
    6262        .set_ind = kbdev_ctl_set_ind
     
    116116        sess = fd_session(EXCHANGE_SERIALIZE, fd);
    117117        if (sess == NULL) {
    118                 printf("%s: Failed starting session with '%s'\n", NAME, pathname);
     118                printf(NAME ": Failed starting session with '%s'\n", pathname);
    119119                close(fd);
    120120                return -1;
     
    123123        kbdev = kbdev_new(kdev);
    124124        if (kbdev == NULL) {
    125                 printf("%s: Failed allocating device structure for '%s'.\n",
    126                     NAME, pathname);
     125                printf(NAME ": Failed allocating device structure for '%s'.\n",
     126                    pathname);
    127127                return -1;
    128128        }
     
    133133        exch = async_exchange_begin(sess);
    134134        if (exch == NULL) {
    135                 printf("%s: Failed starting exchange with '%s'.\n", NAME, pathname);
     135                printf(NAME ": Failed starting exchange with '%s'.\n", pathname);
    136136                kbdev_destroy(kbdev);
    137137                return -1;
     
    140140        rc = async_connect_to_me(exch, 0, 0, 0, kbdev_callback_conn, kbdev);
    141141        if (rc != EOK) {
    142                 printf("%s: Failed creating callback connection from '%s'.\n",
    143                     NAME, pathname);
     142                printf(NAME ": Failed creating callback connection from '%s'.\n",
     143                    pathname);
    144144                async_exchange_end(exch);
    145145                kbdev_destroy(kbdev);
     
    193193                        type = IPC_GET_ARG1(call);
    194194                        key = IPC_GET_ARG2(call);
    195                         kbd_push_event(kbdev->kbd_dev, type, key);
     195                        kbd_push_ev(kbdev->kbd_dev, type, key);
    196196                        break;
    197197                default:
Note: See TracChangeset for help on using the changeset viewer.