Changes in uspace/lib/c/generic/io/input.c [6af521c:f9b2cb4c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/input.c
r6af521c rf9b2cb4c 58 58 async_exch_t *exch = async_exchange_begin(sess); 59 59 60 int rc = async_connect_to_me(exch, 0, 0, 0, input_cb_conn, input); 60 port_id_t port; 61 int rc = async_create_callback_port(exch, INTERFACE_INPUT_CB, 0, 0, 62 input_cb_conn, input, &port); 63 61 64 async_exchange_end(exch); 62 65 … … 80 83 } 81 84 82 int input_ yield(input_t *input)85 int input_activate(input_t *input) 83 86 { 84 87 async_exch_t *exch = async_exchange_begin(input->sess); 85 86 int rc = async_req_0_0(exch, INPUT_YIELD); 88 int rc = async_req_0_0(exch, INPUT_ACTIVATE); 87 89 async_exchange_end(exch); 88 90 89 91 return rc; 90 92 } 91 93 92 int input_reclaim(input_t *input) 93 { 94 async_exch_t *exch = async_exchange_begin(input->sess); 95 96 int rc = async_req_0_0(exch, INPUT_RECLAIM); 97 async_exchange_end(exch); 98 99 return rc; 94 static void input_ev_active(input_t *input, ipc_callid_t callid, 95 ipc_call_t *call) 96 { 97 int rc = input->ev_ops->active(input); 98 async_answer_0(callid, rc); 99 } 100 101 static void input_ev_deactive(input_t *input, ipc_callid_t callid, 102 ipc_call_t *call) 103 { 104 int rc = input->ev_ops->deactive(input); 105 async_answer_0(callid, rc); 100 106 } 101 107 … … 178 184 179 185 switch (IPC_GET_IMETHOD(call)) { 186 case INPUT_EVENT_ACTIVE: 187 input_ev_active(input, callid, &call); 188 break; 189 case INPUT_EVENT_DEACTIVE: 190 input_ev_deactive(input, callid, &call); 191 break; 180 192 case INPUT_EVENT_KEY: 181 193 input_ev_key(input, callid, &call);
Note:
See TracChangeset
for help on using the changeset viewer.