Changeset 41811af in mainline for uspace/srv/hid/adb_mouse/adb_mouse.c
- Timestamp:
- 2011-06-10T10:14:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab547063
- Parents:
- 9536e6e (diff), 390d80d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/adb_mouse/adb_mouse.c
r9536e6e r41811af 43 43 #include <stdlib.h> 44 44 #include <async.h> 45 #include <async_obsolete.h> 45 46 #include <errno.h> 46 47 #include <devmap.h> 47 48 48 #include "adb_mouse.h" 49 49 #include "adb_dev.h" 50 51 // FIXME: remove this header 52 #include <kernel/ipc/ipc_methods.h> 50 53 51 54 static void client_connection(ipc_callid_t iid, ipc_call_t *icall); … … 101 104 while (1) { 102 105 callid = async_get_call(&call); 103 switch (IPC_GET_IMETHOD(call)) {104 case IPC_M_PHONE_HUNGUP:106 107 if (!IPC_GET_IMETHOD(call)) { 105 108 if (client_phone != -1) { 106 async_ hangup(client_phone);109 async_obsolete_hangup(client_phone); 107 110 client_phone = -1; 108 111 } … … 110 113 async_answer_0(callid, EOK); 111 114 return; 115 } 116 117 switch (IPC_GET_IMETHOD(call)) { 112 118 case IPC_M_CONNECT_TO_ME: 113 119 if (client_phone != -1) { … … 158 164 { 159 165 if (client_phone != -1) { 160 async_ msg_2(client_phone, MEVENT_BUTTON, button, press);166 async_obsolete_msg_2(client_phone, MEVENT_BUTTON, button, press); 161 167 } 162 168 } … … 165 171 { 166 172 if (client_phone != -1) 167 async_ msg_2(client_phone, MEVENT_MOVE, dx, dy);173 async_obsolete_msg_2(client_phone, MEVENT_MOVE, dx, dy); 168 174 } 169 175
Note:
See TracChangeset
for help on using the changeset viewer.