Ignore:
Timestamp:
2011-06-10T10:14:26Z (14 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
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.
Message:

Merge mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c

    r9536e6e r41811af  
    4444#include <ipc/mouse.h>
    4545#include <async.h>
     46#include <async_obsolete.h>
    4647#include <unistd.h>
    4748#include <stdio.h>
     
    5051#include <errno.h>
    5152#include <inttypes.h>
    52 
    5353#include "s3c24xx_ts.h"
     54
     55// FIXME: remove this header
     56#include <kernel/ipc/ipc_methods.h>
    5457
    5558#define NAME "s3c24ser"
     
    280283        button = 1;
    281284        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);
    283286
    284287        s3c24xx_ts_wait_for_int_mode(ts, updn_down);
     
    321324
    322325        /* 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);
    325328
    326329        ts->last_x = x_pos;
     
    380383        while (1) {
    381384                callid = async_get_call(&call);
    382                 switch (IPC_GET_IMETHOD(call)) {
    383                 case IPC_M_PHONE_HUNGUP:
     385               
     386                if (!IPC_GET_IMETHOD(call)) {
    384387                        if (ts->client_phone != -1) {
    385                                 async_hangup(ts->client_phone);
     388                                async_obsolete_hangup(ts->client_phone);
    386389                                ts->client_phone = -1;
    387390                        }
     
    389392                        async_answer_0(callid, EOK);
    390393                        return;
     394                }
     395               
     396                switch (IPC_GET_IMETHOD(call)) {
    391397                case IPC_M_CONNECT_TO_ME:
    392398                        if (ts->client_phone != -1) {
Note: See TracChangeset for help on using the changeset viewer.