Changeset 5a6cc679 in mainline for uspace/lib/c/generic/io/input.c


Ignore:
Timestamp:
2018-01-31T02:21:24Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0a9cc2
Parents:
132ab5d1
Message:

Merge commit '50f19b7ee8e94570b5c63896736c4eb49cfa18db' into forwardport

Not all ints are converted to errno_t in xhci tree yet, however it compiles and works :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/input.c

    r132ab5d1 r5a6cc679  
    4545static void input_cb_conn(ipc_callid_t iid, ipc_call_t *icall, void *arg);
    4646
    47 int input_open(async_sess_t *sess, input_ev_ops_t *ev_ops,
     47errno_t input_open(async_sess_t *sess, input_ev_ops_t *ev_ops,
    4848    void *arg, input_t **rinput)
    4949{
     
    5959
    6060        port_id_t port;
    61         int rc = async_create_callback_port(exch, INTERFACE_INPUT_CB, 0, 0,
     61        errno_t rc = async_create_callback_port(exch, INTERFACE_INPUT_CB, 0, 0,
    6262            input_cb_conn, input, &port);
    6363       
     
    8383}
    8484
    85 int input_activate(input_t *input)
     85errno_t input_activate(input_t *input)
    8686{
    8787        async_exch_t *exch = async_exchange_begin(input->sess);
    88         int rc = async_req_0_0(exch, INPUT_ACTIVATE);
     88        errno_t rc = async_req_0_0(exch, INPUT_ACTIVATE);
    8989        async_exchange_end(exch);
    9090       
     
    9595    ipc_call_t *call)
    9696{
    97         int rc = input->ev_ops->active(input);
     97        errno_t rc = input->ev_ops->active(input);
    9898        async_answer_0(callid, rc);
    9999}
     
    102102    ipc_call_t *call)
    103103{
    104         int rc = input->ev_ops->deactive(input);
     104        errno_t rc = input->ev_ops->deactive(input);
    105105        async_answer_0(callid, rc);
    106106}
     
    113113        keymod_t mods;
    114114        wchar_t c;
    115         int rc;
     115        errno_t rc;
    116116
    117117        type = IPC_GET_ARG1(*call);
     
    129129        int dx;
    130130        int dy;
    131         int rc;
     131        errno_t rc;
    132132
    133133        dx = IPC_GET_ARG1(*call);
     
    145145        unsigned max_x;
    146146        unsigned max_y;
    147         int rc;
     147        errno_t rc;
    148148
    149149        x = IPC_GET_ARG1(*call);
     
    161161        int bnum;
    162162        int press;
    163         int rc;
     163        errno_t rc;
    164164
    165165        bnum = IPC_GET_ARG1(*call);
Note: See TracChangeset for help on using the changeset viewer.