Changes in uspace/lib/c/generic/io/input.c [593e023:6af521c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/input.c
r593e023 r6af521c 80 80 } 81 81 82 int input_ activate(input_t *input)82 int input_yield(input_t *input) 83 83 { 84 84 async_exch_t *exch = async_exchange_begin(input->sess); 85 int rc = async_req_0_0(exch, INPUT_ACTIVATE); 85 86 int rc = async_req_0_0(exch, INPUT_YIELD); 86 87 async_exchange_end(exch); 87 88 88 89 return rc; 89 90 } 90 91 91 static void input_ev_active(input_t *input, ipc_callid_t callid, 92 ipc_call_t *call) 92 int input_reclaim(input_t *input) 93 93 { 94 int rc = input->ev_ops->active(input); 95 async_answer_0(callid, rc); 96 } 94 async_exch_t *exch = async_exchange_begin(input->sess); 97 95 98 static void input_ev_deactive(input_t *input, ipc_callid_t callid, 99 ipc_call_t *call) 100 { 101 int rc = input->ev_ops->deactive(input); 102 async_answer_0(callid, rc); 96 int rc = async_req_0_0(exch, INPUT_RECLAIM); 97 async_exchange_end(exch); 98 99 return rc; 103 100 } 104 101 … … 181 178 182 179 switch (IPC_GET_IMETHOD(call)) { 183 case INPUT_EVENT_ACTIVE:184 input_ev_active(input, callid, &call);185 break;186 case INPUT_EVENT_DEACTIVE:187 input_ev_deactive(input, callid, &call);188 break;189 180 case INPUT_EVENT_KEY: 190 181 input_ev_key(input, callid, &call);
Note:
See TracChangeset
for help on using the changeset viewer.