Changeset ab87db5 in mainline for uspace/lib/c/generic/io/con_srv.c


Ignore:
Timestamp:
2019-02-23T17:16:01Z (6 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/c/generic/io/con_srv.c

    rbc417660 rab87db5  
    4444static errno_t console_ev_encode(cons_event_t *event, ipc_call_t *icall)
    4545{
    46         IPC_SET_ARG1(*icall, event->type);
     46        ipc_set_arg1(icall, event->type);
    4747
    4848        switch (event->type) {
    4949        case CEV_KEY:
    50                 IPC_SET_ARG2(*icall, event->ev.key.type);
    51                 IPC_SET_ARG3(*icall, event->ev.key.key);
    52                 IPC_SET_ARG4(*icall, event->ev.key.mods);
    53                 IPC_SET_ARG5(*icall, event->ev.key.c);
     50                ipc_set_arg2(icall, event->ev.key.type);
     51                ipc_set_arg3(icall, event->ev.key.key);
     52                ipc_set_arg4(icall, event->ev.key.mods);
     53                ipc_set_arg5(icall, event->ev.key.c);
    5454                break;
    5555        case CEV_POS:
    56                 IPC_SET_ARG2(*icall, (event->ev.pos.pos_id << 16) | (event->ev.pos.type & 0xffff));
    57                 IPC_SET_ARG3(*icall, event->ev.pos.btn_num);
    58                 IPC_SET_ARG4(*icall, event->ev.pos.hpos);
    59                 IPC_SET_ARG5(*icall, event->ev.pos.vpos);
     56                ipc_set_arg2(icall, (event->ev.pos.pos_id << 16) | (event->ev.pos.type & 0xffff));
     57                ipc_set_arg3(icall, event->ev.pos.btn_num);
     58                ipc_set_arg4(icall, event->ev.pos.hpos);
     59                ipc_set_arg5(icall, event->ev.pos.vpos);
    6060                break;
    6161        default:
     
    158158        sysarg_t row;
    159159
    160         col = IPC_GET_ARG1(*icall);
    161         row = IPC_GET_ARG2(*icall);
     160        col = ipc_get_arg1(icall);
     161        row = ipc_get_arg2(icall);
    162162
    163163        if (srv->srvs->ops->set_pos == NULL) {
     
    218218        console_style_t style;
    219219
    220         style = IPC_GET_ARG1(*icall);
     220        style = ipc_get_arg1(icall);
    221221
    222222        if (srv->srvs->ops->set_style == NULL) {
     
    235235        console_color_attr_t flags;
    236236
    237         bgcolor = IPC_GET_ARG1(*icall);
    238         fgcolor = IPC_GET_ARG2(*icall);
    239         flags = IPC_GET_ARG3(*icall);
     237        bgcolor = ipc_get_arg1(icall);
     238        fgcolor = ipc_get_arg2(icall);
     239        flags = ipc_get_arg3(icall);
    240240
    241241        if (srv->srvs->ops->set_color == NULL) {
     
    253253        pixel_t fgcolor;
    254254
    255         bgcolor = IPC_GET_ARG1(*icall);
    256         fgcolor = IPC_GET_ARG2(*icall);
     255        bgcolor = ipc_get_arg1(icall);
     256        fgcolor = ipc_get_arg2(icall);
    257257
    258258        if (srv->srvs->ops->set_rgb_color == NULL) {
     
    269269        bool show;
    270270
    271         show = IPC_GET_ARG1(*icall);
     271        show = ipc_get_arg1(icall);
    272272
    273273        if (srv->srvs->ops->set_cursor_visibility == NULL) {
     
    303303        }
    304304
    305         async_answer_5(icall, rc, IPC_GET_ARG1(result), IPC_GET_ARG2(result),
    306             IPC_GET_ARG3(result), IPC_GET_ARG4(result), IPC_GET_ARG5(result));
     305        async_answer_5(icall, rc, ipc_get_arg1(&result), ipc_get_arg2(&result),
     306            ipc_get_arg3(&result), ipc_get_arg4(&result), ipc_get_arg5(&result));
    307307}
    308308
     
    364364                        break;
    365365
    366                 sysarg_t method = IPC_GET_IMETHOD(call);
     366                sysarg_t method = ipc_get_imethod(&call);
    367367
    368368                if (!method) {
Note: See TracChangeset for help on using the changeset viewer.