Changes in uspace/srv/hid/kbd/port/adb.c [4f14e1f8:a000878c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/kbd/port/adb.c
r4f14e1f8 ra000878c 35 35 */ 36 36 37 #include <ipc/ipc.h> 37 38 #include <ipc/adb.h> 38 39 #include <async.h> … … 70 71 71 72 /* 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) { 73 75 printf(NAME ": Failed to create callback from device\n"); 74 76 return false; 75 77 } 78 79 async_new_connection(phonehash, 0, NULL, kbd_port_events); 76 80 77 81 return 0; … … 101 105 int retval; 102 106 103 switch (IPC_GET_ IMETHOD(call)) {107 switch (IPC_GET_METHOD(call)) { 104 108 case IPC_M_PHONE_HUNGUP: 105 109 /* TODO: Handle hangup */ … … 111 115 retval = ENOENT; 112 116 } 113 async_answer_0(callid, retval);117 ipc_answer_0(callid, retval); 114 118 } 115 119 }
Note:
See TracChangeset
for help on using the changeset viewer.