Changeset 5a6cc679 in mainline for uspace/lib/c/generic/io/input.c
- Timestamp:
- 2018-01-31T02:21:24Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a0a9cc2
- Parents:
- 132ab5d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/input.c
r132ab5d1 r5a6cc679 45 45 static void input_cb_conn(ipc_callid_t iid, ipc_call_t *icall, void *arg); 46 46 47 int input_open(async_sess_t *sess, input_ev_ops_t *ev_ops,47 errno_t input_open(async_sess_t *sess, input_ev_ops_t *ev_ops, 48 48 void *arg, input_t **rinput) 49 49 { … … 59 59 60 60 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, 62 62 input_cb_conn, input, &port); 63 63 … … 83 83 } 84 84 85 int input_activate(input_t *input)85 errno_t input_activate(input_t *input) 86 86 { 87 87 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); 89 89 async_exchange_end(exch); 90 90 … … 95 95 ipc_call_t *call) 96 96 { 97 int rc = input->ev_ops->active(input);97 errno_t rc = input->ev_ops->active(input); 98 98 async_answer_0(callid, rc); 99 99 } … … 102 102 ipc_call_t *call) 103 103 { 104 int rc = input->ev_ops->deactive(input);104 errno_t rc = input->ev_ops->deactive(input); 105 105 async_answer_0(callid, rc); 106 106 } … … 113 113 keymod_t mods; 114 114 wchar_t c; 115 int rc;115 errno_t rc; 116 116 117 117 type = IPC_GET_ARG1(*call); … … 129 129 int dx; 130 130 int dy; 131 int rc;131 errno_t rc; 132 132 133 133 dx = IPC_GET_ARG1(*call); … … 145 145 unsigned max_x; 146 146 unsigned max_y; 147 int rc;147 errno_t rc; 148 148 149 149 x = IPC_GET_ARG1(*call); … … 161 161 int bnum; 162 162 int press; 163 int rc;163 errno_t rc; 164 164 165 165 bnum = IPC_GET_ARG1(*call);
Note:
See TracChangeset
for help on using the changeset viewer.