Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/adb_mouse/adb_dev.c

    rffa2c8ef r3c22f70  
    3434 */
    3535
     36#include <ipc/ipc.h>
    3637#include <ipc/adb.h>
    3738#include <async.h>
     
    6768
    6869        /* NB: The callback connection is slotted for removal */
    69         if (async_connect_to_me(dev_phone, 0, 0, 0, adb_dev_events) != 0) {
     70        sysarg_t taskhash;
     71        sysarg_t phonehash;
     72        if (ipc_connect_to_me(dev_phone, 0, 0, 0, &taskhash, &phonehash) != 0) {
    7073                printf(NAME ": Failed to create callback from device\n");
    7174                return false;
    7275        }
    73        
     76
     77        async_new_connection(taskhash, phonehash, 0, NULL, adb_dev_events);
     78
    7479        return 0;
    7580}
     
    95100                        retval = ENOENT;
    96101                }
    97                 async_answer_0(callid, retval);
     102                ipc_answer_0(callid, retval);
    98103        }
    99104}
Note: See TracChangeset for help on using the changeset viewer.