Changeset ab87db5 in mainline for uspace/lib/graph/graph.c


Ignore:
Timestamp:
2019-02-23T17:16:01Z (5 years ago)
Author:
GitHub <noreply@…>
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)
Message:

Merge pull request #157

Turn some function-like macros into functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/graph/graph.c

    rbc417660 rab87db5  
    243243static void vs_claim(visualizer_t *vs, ipc_call_t *icall)
    244244{
    245         vs->client_side_handle = IPC_GET_ARG1(*icall);
     245        vs->client_side_handle = ipc_get_arg1(icall);
    246246        errno_t rc = vs->ops.claim(vs);
    247247        async_answer_0(icall, rc);
     
    283283
    284284        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));
    286286
    287287        if (link != NULL) {
     
    360360        }
    361361
    362         sysarg_t mode_idx = IPC_GET_ARG1(*icall);
     362        sysarg_t mode_idx = ipc_get_arg1(icall);
    363363
    364364        fibril_mutex_lock(&vs->mode_mtx);
     
    397397
    398398        /* 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);
    401401
    402402        /* Find mode in the list. */
     
    470470static void vs_update_damaged_region(visualizer_t *vs, ipc_call_t *icall)
    471471{
    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);
    474474
    475475        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),
    478478            x_offset, y_offset);
    479479        async_answer_0(icall, rc);
     
    516516                async_get_call(&call);
    517517
    518                 if (!IPC_GET_IMETHOD(call)) {
     518                if (!ipc_get_imethod(&call)) {
    519519                        async_answer_0(&call, EOK);
    520520                        break;
    521521                }
    522522
    523                 switch (IPC_GET_IMETHOD(call)) {
     523                switch (ipc_get_imethod(&call)) {
    524524                case VISUALIZER_CLAIM:
    525525                        vs_claim(vs, &call);
     
    576576                async_get_call(&call);
    577577
    578                 if (!IPC_GET_IMETHOD(call)) {
     578                if (!ipc_get_imethod(&call)) {
    579579                        async_answer_0(&call, EOK);
    580580                        break;
    581581                }
    582582
    583                 switch (IPC_GET_IMETHOD(call)) {
     583                switch (ipc_get_imethod(&call)) {
    584584                default:
    585585                        async_answer_0(&call, EINVAL);
     
    595595{
    596596        /* 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));
    599599
    600600        if (vs != NULL)
Note: See TracChangeset for help on using the changeset viewer.