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/char_mouse/char_mouse.c

    r9536e6e r41811af  
    4343#include <stdlib.h>
    4444#include <async.h>
     45#include <async_obsolete.h>
    4546#include <errno.h>
    4647#include <devmap.h>
    47 
    4848#include <char_mouse.h>
    4949#include <mouse_port.h>
    5050#include <mouse_proto.h>
     51
     52// FIXME: remove this header
     53#include <kernel/ipc/ipc_methods.h>
    5154
    5255#define NAME       "mouse"
     
    6568/*      printf("ev_btn: button %d, press %d\n", button, press);*/
    6669        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);
    6871        }
    6972}
     
    7376/*      printf("ev_move: dx %d, dy %d\n", dx, dy);*/
    7477        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);
    7679}
    7780
     
    8689        while (1) {
    8790                callid = async_get_call(&call);
    88                 switch (IPC_GET_IMETHOD(call)) {
    89                 case IPC_M_PHONE_HUNGUP:
     91               
     92                if (!IPC_GET_IMETHOD(call)) {
    9093                        if (client_phone != -1) {
    91                                 async_hangup(client_phone);
     94                                async_obsolete_hangup(client_phone);
    9295                                client_phone = -1;
    9396                        }
     
    9598                        async_answer_0(callid, EOK);
    9699                        return;
     100                }
     101               
     102                switch (IPC_GET_IMETHOD(call)) {
    97103                case IPC_M_CONNECT_TO_ME:
    98104                        if (client_phone != -1) {
Note: See TracChangeset for help on using the changeset viewer.