Changes in uspace/lib/graph/graph.c [fafb8e5:beb83c1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/graph/graph.c
rfafb8e5 rbeb83c1 243 243 static void vs_claim(visualizer_t *vs, ipc_call_t *icall) 244 244 { 245 vs->client_side_handle = ipc_get_arg1(icall);245 vs->client_side_handle = IPC_GET_ARG1(*icall); 246 246 errno_t rc = vs->ops.claim(vs); 247 247 async_answer_0(icall, rc); … … 283 283 284 284 fibril_mutex_lock(&vs->mode_mtx); 285 link_t *link = list_nth(&vs->modes, ipc_get_arg1(icall));285 link_t *link = list_nth(&vs->modes, IPC_GET_ARG1(*icall)); 286 286 287 287 if (link != NULL) { … … 360 360 } 361 361 362 sysarg_t mode_idx = ipc_get_arg1(icall);362 sysarg_t mode_idx = IPC_GET_ARG1(*icall); 363 363 364 364 fibril_mutex_lock(&vs->mode_mtx); … … 397 397 398 398 /* Retrieve mode index and version. */ 399 sysarg_t mode_idx = ipc_get_arg1(icall);400 sysarg_t mode_version = ipc_get_arg2(icall);399 sysarg_t mode_idx = IPC_GET_ARG1(*icall); 400 sysarg_t mode_version = IPC_GET_ARG2(*icall); 401 401 402 402 /* Find mode in the list. */ … … 470 470 static void vs_update_damaged_region(visualizer_t *vs, ipc_call_t *icall) 471 471 { 472 sysarg_t x_offset = ( ipc_get_arg5(icall) >> 16);473 sysarg_t y_offset = ( ipc_get_arg5(icall) & 0x0000ffff);472 sysarg_t x_offset = (IPC_GET_ARG5(*icall) >> 16); 473 sysarg_t y_offset = (IPC_GET_ARG5(*icall) & 0x0000ffff); 474 474 475 475 errno_t rc = vs->ops.handle_damage(vs, 476 ipc_get_arg1(icall), ipc_get_arg2(icall),477 ipc_get_arg3(icall), ipc_get_arg4(icall),476 IPC_GET_ARG1(*icall), IPC_GET_ARG2(*icall), 477 IPC_GET_ARG3(*icall), IPC_GET_ARG4(*icall), 478 478 x_offset, y_offset); 479 479 async_answer_0(icall, rc); … … 516 516 async_get_call(&call); 517 517 518 if (! ipc_get_imethod(&call)) {518 if (!IPC_GET_IMETHOD(call)) { 519 519 async_answer_0(&call, EOK); 520 520 break; 521 521 } 522 522 523 switch ( ipc_get_imethod(&call)) {523 switch (IPC_GET_IMETHOD(call)) { 524 524 case VISUALIZER_CLAIM: 525 525 vs_claim(vs, &call); … … 576 576 async_get_call(&call); 577 577 578 if (! ipc_get_imethod(&call)) {578 if (!IPC_GET_IMETHOD(call)) { 579 579 async_answer_0(&call, EOK); 580 580 break; 581 581 } 582 582 583 switch ( ipc_get_imethod(&call)) {583 switch (IPC_GET_IMETHOD(call)) { 584 584 default: 585 585 async_answer_0(&call, EINVAL); … … 595 595 { 596 596 /* Find the visualizer or renderer with the given service ID. */ 597 visualizer_t *vs = graph_get_visualizer( ipc_get_arg2(icall));598 renderer_t *rnd = graph_get_renderer( ipc_get_arg2(icall));597 visualizer_t *vs = graph_get_visualizer(IPC_GET_ARG2(*icall)); 598 renderer_t *rnd = graph_get_renderer(IPC_GET_ARG2(*icall)); 599 599 600 600 if (vs != NULL)
Note:
See TracChangeset
for help on using the changeset viewer.