Changeset 41811af in mainline for uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.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/s3c24xx_ts/s3c24xx_ts.c
r9536e6e r41811af 44 44 #include <ipc/mouse.h> 45 45 #include <async.h> 46 #include <async_obsolete.h> 46 47 #include <unistd.h> 47 48 #include <stdio.h> … … 50 51 #include <errno.h> 51 52 #include <inttypes.h> 52 53 53 #include "s3c24xx_ts.h" 54 55 // FIXME: remove this header 56 #include <kernel/ipc/ipc_methods.h> 54 57 55 58 #define NAME "s3c24ser" … … 280 283 button = 1; 281 284 press = 0; 282 async_ msg_2(ts->client_phone, MEVENT_BUTTON, button, press);285 async_obsolete_msg_2(ts->client_phone, MEVENT_BUTTON, button, press); 283 286 284 287 s3c24xx_ts_wait_for_int_mode(ts, updn_down); … … 321 324 322 325 /* Send notifications to client. */ 323 async_ msg_2(ts->client_phone, MEVENT_MOVE, dx, dy);324 async_ msg_2(ts->client_phone, MEVENT_BUTTON, button, press);326 async_obsolete_msg_2(ts->client_phone, MEVENT_MOVE, dx, dy); 327 async_obsolete_msg_2(ts->client_phone, MEVENT_BUTTON, button, press); 325 328 326 329 ts->last_x = x_pos; … … 380 383 while (1) { 381 384 callid = async_get_call(&call); 382 switch (IPC_GET_IMETHOD(call)) {383 case IPC_M_PHONE_HUNGUP:385 386 if (!IPC_GET_IMETHOD(call)) { 384 387 if (ts->client_phone != -1) { 385 async_ hangup(ts->client_phone);388 async_obsolete_hangup(ts->client_phone); 386 389 ts->client_phone = -1; 387 390 } … … 389 392 async_answer_0(callid, EOK); 390 393 return; 394 } 395 396 switch (IPC_GET_IMETHOD(call)) { 391 397 case IPC_M_CONNECT_TO_ME: 392 398 if (ts->client_phone != -1) {
Note:
See TracChangeset
for help on using the changeset viewer.