Changeset 1affcdf3 in mainline for uspace/srv/hid/char_mouse/char_mouse.c
- Timestamp:
- 2011-06-10T19:33:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1878386
- Parents:
- 13ecdac9 (diff), 79a141a (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/char_mouse/char_mouse.c
r13ecdac9 r1affcdf3 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 <char_mouse.h> 49 49 #include <mouse_port.h> 50 50 #include <mouse_proto.h> 51 52 // FIXME: remove this header 53 #include <kernel/ipc/ipc_methods.h> 51 54 52 55 #define NAME "mouse" … … 65 68 /* printf("ev_btn: button %d, press %d\n", button, press);*/ 66 69 if (client_phone != -1) { 67 async_ msg_2(client_phone, MEVENT_BUTTON, button, press);70 async_obsolete_msg_2(client_phone, MEVENT_BUTTON, button, press); 68 71 } 69 72 } … … 73 76 /* printf("ev_move: dx %d, dy %d\n", dx, dy);*/ 74 77 if (client_phone != -1) 75 async_ msg_2(client_phone, MEVENT_MOVE, dx, dy);78 async_obsolete_msg_2(client_phone, MEVENT_MOVE, dx, dy); 76 79 } 77 80 … … 86 89 while (1) { 87 90 callid = async_get_call(&call); 88 switch (IPC_GET_IMETHOD(call)) {89 case IPC_M_PHONE_HUNGUP:91 92 if (!IPC_GET_IMETHOD(call)) { 90 93 if (client_phone != -1) { 91 async_ hangup(client_phone);94 async_obsolete_hangup(client_phone); 92 95 client_phone = -1; 93 96 } … … 95 98 async_answer_0(callid, EOK); 96 99 return; 100 } 101 102 switch (IPC_GET_IMETHOD(call)) { 97 103 case IPC_M_CONNECT_TO_ME: 98 104 if (client_phone != -1) {
Note:
See TracChangeset
for help on using the changeset viewer.