Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/kbd/port/adb.c

    r4f14e1f8 ra000878c  
    3535 */
    3636
     37#include <ipc/ipc.h>
    3738#include <ipc/adb.h>
    3839#include <async.h>
     
    7071
    7172        /* NB: The callback connection is slotted for removal */
    72         if (async_connect_to_me(dev_phone, 0, 0, 0, kbd_port_events) != 0) {
     73        ipcarg_t phonehash;
     74        if (ipc_connect_to_me(dev_phone, 0, 0, 0, &phonehash) != 0) {
    7375                printf(NAME ": Failed to create callback from device\n");
    7476                return false;
    7577        }
     78
     79        async_new_connection(phonehash, 0, NULL, kbd_port_events);
    7680
    7781        return 0;
     
    101105                int retval;
    102106
    103                 switch (IPC_GET_IMETHOD(call)) {
     107                switch (IPC_GET_METHOD(call)) {
    104108                case IPC_M_PHONE_HUNGUP:
    105109                        /* TODO: Handle hangup */
     
    111115                        retval = ENOENT;
    112116                }
    113                 async_answer_0(callid, retval);
     117                ipc_answer_0(callid, retval);
    114118        }
    115119}
Note: See TracChangeset for help on using the changeset viewer.