Changeset ab87db5 in mainline for uspace/srv/hid/input
- Timestamp:
- 2019-02-23T17:16:01Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8c193d83, ca0e838
- Parents:
- bc417660 (diff), 95a47b0 (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. - git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-23 17:16:01)
- git-committer:
- GitHub <noreply@…> (2019-02-23 17:16:01)
- Location:
- uspace/srv/hid/input
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/ctl/kbdev.c
rbc417660 rab87db5 160 160 async_get_call(&call); 161 161 162 if (! IPC_GET_IMETHOD(call)) {162 if (!ipc_get_imethod(&call)) { 163 163 async_answer_0(&call, EOK); 164 164 kbdev_destroy(kbdev); … … 166 166 } 167 167 168 switch ( IPC_GET_IMETHOD(call)) {168 switch (ipc_get_imethod(&call)) { 169 169 case KBDEV_EVENT: 170 170 /* Got event from keyboard device */ 171 171 retval = 0; 172 type = IPC_GET_ARG1(call);173 key = IPC_GET_ARG2(call);172 type = ipc_get_arg1(&call); 173 key = ipc_get_arg2(&call); 174 174 kbd_push_event(kbdev->kbd_dev, type, key); 175 175 break; -
uspace/srv/hid/input/input.c
rbc417660 rab87db5 334 334 async_get_call(&call); 335 335 336 if (! IPC_GET_IMETHOD(call)) {336 if (!ipc_get_imethod(&call)) { 337 337 if (client->sess != NULL) { 338 338 async_hangup(client->sess); … … 353 353 async_answer_0(&call, ELIMIT); 354 354 } else { 355 switch ( IPC_GET_IMETHOD(call)) {355 switch (ipc_get_imethod(&call)) { 356 356 case INPUT_ACTIVATE: 357 357 active_client = client; … … 368 368 static void kconsole_event_handler(ipc_call_t *call, void *arg) 369 369 { 370 if ( IPC_GET_ARG1(*call)) {370 if (ipc_get_arg1(call)) { 371 371 /* Kernel console activated */ 372 372 active = false; -
uspace/srv/hid/input/proto/mousedev.c
rbc417660 rab87db5 79 79 async_get_call(&call); 80 80 81 if (! IPC_GET_IMETHOD(call)) {81 if (!ipc_get_imethod(&call)) { 82 82 async_answer_0(&call, EOK); 83 83 mousedev_destroy(mousedev); … … 87 87 errno_t retval; 88 88 89 switch ( IPC_GET_IMETHOD(call)) {89 switch (ipc_get_imethod(&call)) { 90 90 case MOUSEEV_MOVE_EVENT: 91 91 mouse_push_event_move(mousedev->mouse_dev, 92 IPC_GET_ARG1(call), IPC_GET_ARG2(call),93 IPC_GET_ARG3(call));92 ipc_get_arg1(&call), ipc_get_arg2(&call), 93 ipc_get_arg3(&call)); 94 94 retval = EOK; 95 95 break; 96 96 case MOUSEEV_ABS_MOVE_EVENT: 97 97 mouse_push_event_abs_move(mousedev->mouse_dev, 98 IPC_GET_ARG1(call), IPC_GET_ARG2(call),99 IPC_GET_ARG3(call), IPC_GET_ARG4(call));98 ipc_get_arg1(&call), ipc_get_arg2(&call), 99 ipc_get_arg3(&call), ipc_get_arg4(&call)); 100 100 retval = EOK; 101 101 break; 102 102 case MOUSEEV_BUTTON_EVENT: 103 103 mouse_push_event_button(mousedev->mouse_dev, 104 IPC_GET_ARG1(call), IPC_GET_ARG2(call));104 ipc_get_arg1(&call), ipc_get_arg2(&call)); 105 105 retval = EOK; 106 106 break;
Note:
See TracChangeset
for help on using the changeset viewer.