Changeset fafb8e5 in mainline for uspace/srv/hid/input


Ignore:
Timestamp:
2019-02-06T13:25:12Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
95a47b0
Parents:
eb13ef8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-02 14:10:59)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-06 13:25:12)
Message:

Mechanically lowercase IPC_SET_*/IPC_GET_*

Location:
uspace/srv/hid/input
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/ctl/kbdev.c

    reb13ef8 rfafb8e5  
    160160                async_get_call(&call);
    161161
    162                 if (!IPC_GET_IMETHOD(&call)) {
     162                if (!ipc_get_imethod(&call)) {
    163163                        async_answer_0(&call, EOK);
    164164                        kbdev_destroy(kbdev);
     
    166166                }
    167167
    168                 switch (IPC_GET_IMETHOD(&call)) {
     168                switch (ipc_get_imethod(&call)) {
    169169                case KBDEV_EVENT:
    170170                        /* Got event from keyboard device */
    171171                        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);
    174174                        kbd_push_event(kbdev->kbd_dev, type, key);
    175175                        break;
  • uspace/srv/hid/input/input.c

    reb13ef8 rfafb8e5  
    334334                async_get_call(&call);
    335335
    336                 if (!IPC_GET_IMETHOD(&call)) {
     336                if (!ipc_get_imethod(&call)) {
    337337                        if (client->sess != NULL) {
    338338                                async_hangup(client->sess);
     
    353353                                async_answer_0(&call, ELIMIT);
    354354                } else {
    355                         switch (IPC_GET_IMETHOD(&call)) {
     355                        switch (ipc_get_imethod(&call)) {
    356356                        case INPUT_ACTIVATE:
    357357                                active_client = client;
     
    368368static void kconsole_event_handler(ipc_call_t *call, void *arg)
    369369{
    370         if (IPC_GET_ARG1(call)) {
     370        if (ipc_get_arg1(call)) {
    371371                /* Kernel console activated */
    372372                active = false;
  • uspace/srv/hid/input/proto/mousedev.c

    reb13ef8 rfafb8e5  
    7979                async_get_call(&call);
    8080
    81                 if (!IPC_GET_IMETHOD(&call)) {
     81                if (!ipc_get_imethod(&call)) {
    8282                        async_answer_0(&call, EOK);
    8383                        mousedev_destroy(mousedev);
     
    8787                errno_t retval;
    8888
    89                 switch (IPC_GET_IMETHOD(&call)) {
     89                switch (ipc_get_imethod(&call)) {
    9090                case MOUSEEV_MOVE_EVENT:
    9191                        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));
    9494                        retval = EOK;
    9595                        break;
    9696                case MOUSEEV_ABS_MOVE_EVENT:
    9797                        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));
    100100                        retval = EOK;
    101101                        break;
    102102                case MOUSEEV_BUTTON_EVENT:
    103103                        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));
    105105                        retval = EOK;
    106106                        break;
Note: See TracChangeset for help on using the changeset viewer.