Changes in uspace/lib/c/generic/net/modules.c [64d2b10:774e6d1a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/net/modules.c
r64d2b10 r774e6d1a 43 43 #include <errno.h> 44 44 #include <sys/time.h> 45 46 #include <ipc/ipc.h> 45 47 #include <ipc/services.h> 48 46 49 #include <net/modules.h> 47 50 … … 64 67 switch (count) { 65 68 case 0: 66 async_answer_0(callid, (sysarg_t) result);69 ipc_answer_0(callid, (sysarg_t) result); 67 70 break; 68 71 case 1: 69 async_answer_1(callid, (sysarg_t) result,72 ipc_answer_1(callid, (sysarg_t) result, 70 73 IPC_GET_ARG1(*answer)); 71 74 break; 72 75 case 2: 73 async_answer_2(callid, (sysarg_t) result,76 ipc_answer_2(callid, (sysarg_t) result, 74 77 IPC_GET_ARG1(*answer), IPC_GET_ARG2(*answer)); 75 78 break; 76 79 case 3: 77 async_answer_3(callid, (sysarg_t) result,80 ipc_answer_3(callid, (sysarg_t) result, 78 81 IPC_GET_ARG1(*answer), IPC_GET_ARG2(*answer), 79 82 IPC_GET_ARG3(*answer)); 80 83 break; 81 84 case 4: 82 async_answer_4(callid, (sysarg_t) result,85 ipc_answer_4(callid, (sysarg_t) result, 83 86 IPC_GET_ARG1(*answer), IPC_GET_ARG2(*answer), 84 87 IPC_GET_ARG3(*answer), IPC_GET_ARG4(*answer)); … … 86 89 case 5: 87 90 default: 88 async_answer_5(callid, (sysarg_t) result,91 ipc_answer_5(callid, (sysarg_t) result, 89 92 IPC_GET_ARG1(*answer), IPC_GET_ARG2(*answer), 90 93 IPC_GET_ARG3(*answer), IPC_GET_ARG4(*answer), … … 134 137 sysarg_t arg3, async_client_conn_t client_receiver, suseconds_t timeout) 135 138 { 139 int rc; 140 136 141 /* Connect to the needed service */ 137 142 int phone = connect_to_service_timeout(need, timeout); 138 143 if (phone >= 0) { 139 144 /* Request the bidirectional connection */ 140 int rc = async_connect_to_me(phone, arg1, arg2, arg3, client_receiver); 145 sysarg_t phonehash; 146 147 rc = ipc_connect_to_me(phone, arg1, arg2, arg3, &phonehash); 141 148 if (rc != EOK) { 142 async_hangup(phone);149 ipc_hangup(phone); 143 150 return rc; 144 151 } 152 async_new_connection(phonehash, 0, NULL, client_receiver); 145 153 } 146 154
Note:
See TracChangeset
for help on using the changeset viewer.