Changeset cac458f in mainline for uspace/srv/hid/input/ctl/kbdev.c
- Timestamp:
- 2011-06-22T01:59:39Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 41e2118
- Parents:
- 79506d6 (diff), f1fae414 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/ctl/kbdev.c
r79506d6 rcac458f 53 53 54 54 static int kbdev_ctl_init(kbd_dev_t *); 55 static void kbdev_ctl_set_ind(kbd_dev_t *, unsigned );55 static void kbdev_ctl_set_ind(kbd_dev_t *, unsigned int); 56 56 57 57 static void kbdev_callback_conn(ipc_callid_t, ipc_call_t *, void *arg); 58 58 59 59 kbd_ctl_ops_t kbdev_ctl = { 60 .parse _scancode= NULL,60 .parse = NULL, 61 61 .init = kbdev_ctl_init, 62 62 .set_ind = kbdev_ctl_set_ind … … 116 116 sess = fd_session(EXCHANGE_SERIALIZE, fd); 117 117 if (sess == NULL) { 118 printf( NAME ": Failed starting session with '%s'\n", pathname);118 printf("%s: Failed starting session with '%s'\n", NAME, pathname); 119 119 close(fd); 120 120 return -1; … … 123 123 kbdev = kbdev_new(kdev); 124 124 if (kbdev == NULL) { 125 printf( NAME ": Failed allocating device structure for '%s'.\n",126 pathname);125 printf("%s: Failed allocating device structure for '%s'.\n", 126 NAME, pathname); 127 127 return -1; 128 128 } … … 133 133 exch = async_exchange_begin(sess); 134 134 if (exch == NULL) { 135 printf( NAME ": Failed starting exchange with '%s'.\n", pathname);135 printf("%s: Failed starting exchange with '%s'.\n", NAME, pathname); 136 136 kbdev_destroy(kbdev); 137 137 return -1; … … 140 140 rc = async_connect_to_me(exch, 0, 0, 0, kbdev_callback_conn, kbdev); 141 141 if (rc != EOK) { 142 printf( NAME ": Failed creating callback connection from '%s'.\n",143 pathname);142 printf("%s: Failed creating callback connection from '%s'.\n", 143 NAME, pathname); 144 144 async_exchange_end(exch); 145 145 kbdev_destroy(kbdev); … … 193 193 type = IPC_GET_ARG1(call); 194 194 key = IPC_GET_ARG2(call); 195 kbd_push_ev (kbdev->kbd_dev, type, key);195 kbd_push_event(kbdev->kbd_dev, type, key); 196 196 break; 197 197 default:
Note:
See TracChangeset
for help on using the changeset viewer.