Changes in uspace/lib/c/generic/io/input.c [f9b2cb4c:6af521c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/input.c
rf9b2cb4c r6af521c 58 58 async_exch_t *exch = async_exchange_begin(sess); 59 59 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 60 int rc = async_connect_to_me(exch, 0, 0, 0, input_cb_conn, input); 64 61 async_exchange_end(exch); 65 62 … … 83 80 } 84 81 85 int input_ activate(input_t *input)82 int input_yield(input_t *input) 86 83 { 87 84 async_exch_t *exch = async_exchange_begin(input->sess); 88 int rc = async_req_0_0(exch, INPUT_ACTIVATE); 85 86 int rc = async_req_0_0(exch, INPUT_YIELD); 89 87 async_exchange_end(exch); 90 88 91 89 return rc; 92 90 } 93 91 94 static void input_ev_active(input_t *input, ipc_callid_t callid, 95 ipc_call_t *call) 92 int input_reclaim(input_t *input) 96 93 { 97 int rc = input->ev_ops->active(input); 98 async_answer_0(callid, rc); 99 } 94 async_exch_t *exch = async_exchange_begin(input->sess); 100 95 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); 96 int rc = async_req_0_0(exch, INPUT_RECLAIM); 97 async_exchange_end(exch); 98 99 return rc; 106 100 } 107 101 … … 184 178 185 179 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;192 180 case INPUT_EVENT_KEY: 193 181 input_ev_key(input, callid, &call);
Note:
See TracChangeset
for help on using the changeset viewer.