Changeset ab87db5 in mainline for uspace/srv/hid
- 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
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/compositor/compositor.c
rbc417660 rab87db5 634 634 static void comp_window_damage(window_t *win, ipc_call_t *icall) 635 635 { 636 double x = IPC_GET_ARG1(*icall);637 double y = IPC_GET_ARG2(*icall);638 double width = IPC_GET_ARG3(*icall);639 double height = IPC_GET_ARG4(*icall);636 double x = ipc_get_arg1(icall); 637 double y = ipc_get_arg2(icall); 638 double width = ipc_get_arg3(icall); 639 double height = ipc_get_arg4(icall); 640 640 641 641 if ((width == 0) || (height == 0)) { … … 655 655 static void comp_window_grab(window_t *win, ipc_call_t *icall) 656 656 { 657 sysarg_t pos_id = IPC_GET_ARG1(*icall);658 sysarg_t grab_flags = IPC_GET_ARG2(*icall);657 sysarg_t pos_id = ipc_get_arg1(icall); 658 sysarg_t grab_flags = ipc_get_arg2(icall); 659 659 660 660 /* … … 732 732 733 733 /* Create new surface for the resized window. */ 734 surface_t *new_surface = surface_create( IPC_GET_ARG3(*icall),735 IPC_GET_ARG4(*icall), new_cell_storage, SURFACE_FLAG_SHARED);734 surface_t *new_surface = surface_create(ipc_get_arg3(icall), 735 ipc_get_arg4(icall), new_cell_storage, SURFACE_FLAG_SHARED); 736 736 if (!new_surface) { 737 737 as_area_destroy(new_cell_storage); … … 740 740 } 741 741 742 sysarg_t offset_x = IPC_GET_ARG1(*icall);743 sysarg_t offset_y = IPC_GET_ARG2(*icall);742 sysarg_t offset_x = ipc_get_arg1(icall); 743 sysarg_t offset_y = ipc_get_arg2(icall); 744 744 window_placement_flags_t placement_flags = 745 (window_placement_flags_t) IPC_GET_ARG5(*icall);745 (window_placement_flags_t) ipc_get_arg5(icall); 746 746 747 747 comp_update_viewport_bound_rect(); … … 921 921 { 922 922 ipc_call_t call; 923 service_id_t service_id = (service_id_t) IPC_GET_ARG2(*icall);923 service_id_t service_id = (service_id_t) ipc_get_arg2(icall); 924 924 925 925 /* Allocate resources for new window and register it to the location service. */ … … 928 928 929 929 async_get_call(&call); 930 if ( IPC_GET_IMETHOD(call) == WINDOW_REGISTER) {930 if (ipc_get_imethod(&call) == WINDOW_REGISTER) { 931 931 fibril_mutex_lock(&window_list_mtx); 932 932 … … 938 938 } 939 939 940 win->flags = IPC_GET_ARG1(call);940 win->flags = ipc_get_arg1(&call); 941 941 942 942 char name_in[LOC_NAME_MAXLEN + 1]; … … 1014 1014 async_get_call(&call); 1015 1015 1016 if (! IPC_GET_IMETHOD(call)) {1016 if (!ipc_get_imethod(&call)) { 1017 1017 async_answer_0(&call, EOK); 1018 1018 window_destroy(win); … … 1020 1020 } 1021 1021 1022 switch ( IPC_GET_IMETHOD(call)) {1022 switch (ipc_get_imethod(&call)) { 1023 1023 case WINDOW_GET_EVENT: 1024 1024 comp_window_get_event(win, &call); … … 1032 1032 async_get_call(&call); 1033 1033 1034 if (! IPC_GET_IMETHOD(call)) {1034 if (!ipc_get_imethod(&call)) { 1035 1035 comp_window_close(win, &call); 1036 1036 window_destroy(win); … … 1038 1038 } 1039 1039 1040 switch ( IPC_GET_IMETHOD(call)) {1040 switch (ipc_get_imethod(&call)) { 1041 1041 case WINDOW_DAMAGE: 1042 1042 comp_window_damage(win, &call); … … 1067 1067 static void comp_mode_change(viewport_t *vp, ipc_call_t *icall) 1068 1068 { 1069 sysarg_t mode_idx = IPC_GET_ARG2(*icall);1069 sysarg_t mode_idx = ipc_get_arg2(icall); 1070 1070 fibril_mutex_lock(&viewport_list_mtx); 1071 1071 … … 1165 1165 fibril_mutex_lock(&viewport_list_mtx); 1166 1166 list_foreach(viewport_list, link, viewport_t, cur) { 1167 if (cur->dsid == (service_id_t) IPC_GET_ARG1(*icall)) {1167 if (cur->dsid == (service_id_t) ipc_get_arg1(icall)) { 1168 1168 vp = cur; 1169 1169 break; … … 1180 1180 async_get_call(&call); 1181 1181 1182 if (! IPC_GET_IMETHOD(call)) {1182 if (!ipc_get_imethod(&call)) { 1183 1183 async_hangup(vp->sess); 1184 1184 return; 1185 1185 } 1186 1186 1187 switch ( IPC_GET_IMETHOD(call)) {1187 switch (ipc_get_imethod(&call)) { 1188 1188 case VISUALIZER_MODE_CHANGE: 1189 1189 comp_mode_change(vp, &call); -
uspace/srv/hid/console/console.c
rbc417660 rab87db5 513 513 514 514 for (size_t i = 0; i < CONSOLE_COUNT; i++) { 515 if (consoles[i].dsid == (service_id_t) IPC_GET_ARG2(*icall)) {515 if (consoles[i].dsid == (service_id_t) ipc_get_arg2(icall)) { 516 516 cons = &consoles[i]; 517 517 break; -
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; -
uspace/srv/hid/isdv4_tablet/main.c
rbc417660 rab87db5 81 81 async_get_call(&call); 82 82 83 if (! IPC_GET_IMETHOD(call)) {83 if (!ipc_get_imethod(&call)) { 84 84 async_answer_0(&call, EOK); 85 85 break; -
uspace/srv/hid/output/output.c
rbc417660 rab87db5 187 187 static void srv_frontbuf_destroy(ipc_call_t *icall) 188 188 { 189 frontbuf_t *frontbuf = resolve_frontbuf( IPC_GET_ARG1(*icall), icall);189 frontbuf_t *frontbuf = resolve_frontbuf(ipc_get_arg1(icall), icall); 190 190 if (frontbuf == NULL) 191 191 return; … … 200 200 static void srv_cursor_update(ipc_call_t *icall) 201 201 { 202 frontbuf_t *frontbuf = resolve_frontbuf( IPC_GET_ARG1(*icall), icall);202 frontbuf_t *frontbuf = resolve_frontbuf(ipc_get_arg1(icall), icall); 203 203 if (frontbuf == NULL) 204 204 return; … … 235 235 dev->attrs.type = CHAR_ATTR_STYLE; 236 236 dev->attrs.val.style = 237 (console_style_t) IPC_GET_ARG1(*icall);237 (console_style_t) ipc_get_arg1(icall); 238 238 } 239 239 … … 246 246 dev->attrs.type = CHAR_ATTR_INDEX; 247 247 dev->attrs.val.index.bgcolor = 248 (console_color_t) IPC_GET_ARG1(*icall);248 (console_color_t) ipc_get_arg1(icall); 249 249 dev->attrs.val.index.fgcolor = 250 (console_color_t) IPC_GET_ARG2(*icall);250 (console_color_t) ipc_get_arg2(icall); 251 251 dev->attrs.val.index.attr = 252 (console_color_attr_t) IPC_GET_ARG3(*icall);252 (console_color_attr_t) ipc_get_arg3(icall); 253 253 } 254 254 … … 260 260 list_foreach(outdevs, link, outdev_t, dev) { 261 261 dev->attrs.type = CHAR_ATTR_RGB; 262 dev->attrs.val.rgb.bgcolor = IPC_GET_ARG1(*icall);263 dev->attrs.val.rgb.fgcolor = IPC_GET_ARG2(*icall);262 dev->attrs.val.rgb.bgcolor = ipc_get_arg1(icall); 263 dev->attrs.val.rgb.fgcolor = ipc_get_arg2(icall); 264 264 } 265 265 … … 308 308 static void srv_update(ipc_call_t *icall) 309 309 { 310 frontbuf_t *frontbuf = resolve_frontbuf( IPC_GET_ARG1(*icall), icall);310 frontbuf_t *frontbuf = resolve_frontbuf(ipc_get_arg1(icall), icall); 311 311 if (frontbuf == NULL) 312 312 return; … … 357 357 static void srv_damage(ipc_call_t *icall) 358 358 { 359 frontbuf_t *frontbuf = resolve_frontbuf( IPC_GET_ARG1(*icall), icall);359 frontbuf_t *frontbuf = resolve_frontbuf(ipc_get_arg1(icall), icall); 360 360 if (frontbuf == NULL) 361 361 return; … … 369 369 continue; 370 370 371 sysarg_t col = IPC_GET_ARG2(*icall);372 sysarg_t row = IPC_GET_ARG3(*icall);373 374 sysarg_t cols = IPC_GET_ARG4(*icall);375 sysarg_t rows = IPC_GET_ARG5(*icall);371 sysarg_t col = ipc_get_arg2(icall); 372 sysarg_t row = ipc_get_arg3(icall); 373 374 sysarg_t cols = ipc_get_arg4(icall); 375 sysarg_t rows = ipc_get_arg5(icall); 376 376 377 377 for (sysarg_t y = 0; y < rows; y++) { … … 404 404 async_get_call(&call); 405 405 406 if (! IPC_GET_IMETHOD(call)) {406 if (!ipc_get_imethod(&call)) { 407 407 async_answer_0(&call, EOK); 408 408 break; 409 409 } 410 410 411 switch ( IPC_GET_IMETHOD(call)) {411 switch (ipc_get_imethod(&call)) { 412 412 case OUTPUT_YIELD: 413 413 srv_yield(&call); -
uspace/srv/hid/remcons/remcons.c
rbc417660 rab87db5 219 219 { 220 220 /* Find the user. */ 221 telnet_user_t *user = telnet_user_get_for_client_connection( IPC_GET_ARG2(*icall));221 telnet_user_t *user = telnet_user_get_for_client_connection(ipc_get_arg2(icall)); 222 222 if (user == NULL) { 223 223 async_answer_0(icall, ENOENT); -
uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c
rbc417660 rab87db5 378 378 async_get_call(&call); 379 379 380 if (! IPC_GET_IMETHOD(call)) {380 if (!ipc_get_imethod(&call)) { 381 381 if (ts->client_sess != NULL) { 382 382 async_hangup(ts->client_sess);
Note:
See TracChangeset
for help on using the changeset viewer.