Changeset a35b458 in mainline for uspace/srv/hid/isdv4_tablet/main.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/isdv4_tablet/main.c
r3061bc1 ra35b458 66 66 { 67 67 async_answer_0(iid, EOK); 68 68 69 69 async_sess_t *sess = 70 70 async_callback_receive(EXCHANGE_SERIALIZE); 71 71 72 72 fibril_mutex_lock(&client_mutex); 73 73 74 74 if (client_sess == NULL) 75 75 client_sess = sess; 76 76 77 77 fibril_mutex_unlock(&client_mutex); 78 78 … … 80 80 ipc_call_t call; 81 81 ipc_callid_t callid = async_get_call(&call); 82 82 83 83 if (!IPC_GET_IMETHOD(call)) 84 84 break; 85 85 86 86 async_answer_0(callid, ENOTSUP); 87 87 } … … 93 93 async_sess_t *sess = client_sess; 94 94 fibril_mutex_unlock(&client_mutex); 95 95 96 96 if (!sess) return; 97 97 98 98 async_exch_t *exch = async_exchange_begin(sess); 99 99 if (exch) { … … 153 153 printf("%s %s %u %u %u %u\n", type, source, event->x, event->y, 154 154 event->pressure, event->button); 155 155 156 156 emit_event(event); 157 157 } … … 307 307 printf(" Touch: %ux%u type: %s\n", state.touch_max_x, state.touch_max_y, 308 308 touch_type(state.touch_type)); 309 309 310 310 fid_t fibril = fibril_create(read_fibril, NULL); 311 311 /* From this on, state is to be used only by read_fibril */
Note:
See TracChangeset
for help on using the changeset viewer.