Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 6a208fc in mainline


Ignore:
Timestamp:
2020-12-31T21:27:13Z (3 weeks ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
8fb674b
Parents:
a76ba5f3
git-author:
Matthieu Riolo <matthieu.riolo@…> (2020-06-27 11:48:20)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2020-12-31 21:27:13)
Message:

Renaming some functions and constants according to feedback from view

Location:
uspace
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/layout/layout.c

    ra76ba5f3 r6a208fc  
    4747
    4848/* Dispays help for layout in various levels */
    49 static void print_help()
     49static void print_help(void)
    5050{
    5151        printf("Changes, lists or displays the current keyboard layout.\n");
  • uspace/lib/c/generic/io/input.c

    ra76ba5f3 r6a208fc  
    254254        async_exch_t *exch = async_exchange_begin(sess);
    255255
    256         aid_t mid = async_send_0(exch, INPUT_CHANGE_LAYOUT, &call);
     256        aid_t mid = async_send_0(exch, INPUT_SET_LAYOUT, &call);
    257257        rc = async_data_write_start(exch, layout, str_size(layout));
    258258
  • uspace/lib/c/include/ipc/input.h

    ra76ba5f3 r6a208fc  
    4040typedef enum {
    4141        INPUT_ACTIVATE = IPC_FIRST_USER_METHOD,
    42         INPUT_CHANGE_LAYOUT,
     42        INPUT_SET_LAYOUT,
    4343        INPUT_GET_LAYOUT
    4444} input_request_t;
  • uspace/srv/hid/input/input.c

    ra76ba5f3 r6a208fc  
    137137}
    138138
    139 /* Handler for IPC call INPUT_CHANGE_LAYOUT */
    140 static void client_change_layout_handler(ipc_call_t *call)
     139/* Handler for IPC call INPUT_SET_LAYOUT */
     140static void client_set_layout_srv(ipc_call_t *call)
    141141{
    142142        void *layout_name;
     
    153153
    154154/* Handler for IPC call INPUT_GET_LAYOUT */
    155 static void client_get_layout_handler(ipc_call_t *call)
     155static void client_get_layout_srv(ipc_call_t *call)
    156156{
    157157        const char *layout_name = layout_active->name;
     
    419419                                async_answer_0(&call, EOK);
    420420                                break;
    421                         case INPUT_CHANGE_LAYOUT:
    422                                 client_change_layout_handler(&call);
     421                        case INPUT_SET_LAYOUT:
     422                                client_set_layout_srv(&call);
    423423                                break;
    424424                        case INPUT_GET_LAYOUT:
    425                                 client_get_layout_handler(&call);
     425                                client_get_layout_srv(&call);
    426426                                break;
    427427                        default:
Note: See TracChangeset for help on using the changeset viewer.