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

Changeset 6a1652e in mainline


Ignore:
Timestamp:
2020-06-27T19:33:19Z (9 days ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
d3b6f753
Parents:
38ef1b9
git-author:
Matthieu Riolo <matthieu.riolo@…> (2020-06-27 11:48:20)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2020-06-27 19:33:19)
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

    r38ef1b9 r6a1652e  
    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

    r38ef1b9 r6a1652e  
    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

    r38ef1b9 r6a1652e  
    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

    r38ef1b9 r6a1652e  
    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;
     
    411411                                async_answer_0(&call, EOK);
    412412                                break;
    413                         case INPUT_CHANGE_LAYOUT:
    414                                 client_change_layout_handler(&call);
     413                        case INPUT_SET_LAYOUT:
     414                                client_set_layout_srv(&call);
    415415                                break;
    416416                        case INPUT_GET_LAYOUT:
    417                                 client_get_layout_handler(&call);
     417                                client_get_layout_srv(&call);
    418418                                break;
    419419                        default:
Note: See TracChangeset for help on using the changeset viewer.