Changeset 41811af in mainline for uspace/srv/hid/adb_mouse/adb_mouse.c


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/adb_mouse/adb_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 "adb_mouse.h"
    4949#include "adb_dev.h"
     50
     51// FIXME: remove this header
     52#include <kernel/ipc/ipc_methods.h>
    5053
    5154static void client_connection(ipc_callid_t iid, ipc_call_t *icall);
     
    101104        while (1) {
    102105                callid = async_get_call(&call);
    103                 switch (IPC_GET_IMETHOD(call)) {
    104                 case IPC_M_PHONE_HUNGUP:
     106               
     107                if (!IPC_GET_IMETHOD(call)) {
    105108                        if (client_phone != -1) {
    106                                 async_hangup(client_phone);
     109                                async_obsolete_hangup(client_phone);
    107110                                client_phone = -1;
    108111                        }
     
    110113                        async_answer_0(callid, EOK);
    111114                        return;
     115                }
     116               
     117                switch (IPC_GET_IMETHOD(call)) {
    112118                case IPC_M_CONNECT_TO_ME:
    113119                        if (client_phone != -1) {
     
    158164{
    159165        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);
    161167        }
    162168}
     
    165171{
    166172        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);
    168174}
    169175
Note: See TracChangeset for help on using the changeset viewer.