Changes in uspace/srv/ns/service.c [a35b458:eed4139] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/service.c
ra35b458 reed4139 87 87 typedef struct { 88 88 link_t link; 89 service_t service; /**< Service ID */90 iface_t iface; /**< Interface ID */91 ipc_callid_t callid; /**< Call IDwaiting for the connection */92 sysarg_t arg3; /**< Third argument */89 service_t service; /**< Service ID */ 90 iface_t iface; /**< Interface ID */ 91 cap_call_handle_t chandle; /**< Call handle waiting for the connection */ 92 sysarg_t arg3; /**< Third argument */ 93 93 } pending_conn_t; 94 94 … … 119 119 hashed_service_t *hashed_service = hash_table_get_inst(link, hashed_service_t, link); 120 120 async_exch_t *exch = async_exchange_begin(hashed_service->sess); 121 async_forward_fast(pending->c allid, exch, pending->iface,121 async_forward_fast(pending->chandle, exch, pending->iface, 122 122 pending->arg3, 0, IPC_FF_NONE); 123 123 async_exchange_end(exch); … … 160 160 /** Connect client to service. 161 161 * 162 * @param service Service to be connected to.163 * @param iface Interface to be connected to.164 * @param call Pointer to call structure.165 * @param c allid Call IDof the request.162 * @param service Service to be connected to. 163 * @param iface Interface to be connected to. 164 * @param call Pointer to call structure. 165 * @param chandle Call handle of the request. 166 166 * 167 167 * @return Zero on success or a value from @ref errno.h. … … 169 169 */ 170 170 void connect_to_service(service_t service, iface_t iface, ipc_call_t *call, 171 ipc_callid_t callid)171 cap_call_handle_t chandle) 172 172 { 173 173 sysarg_t arg3 = IPC_GET_ARG3(*call); … … 189 189 pending->service = service; 190 190 pending->iface = iface; 191 pending->c allid = callid;191 pending->chandle = chandle; 192 192 pending->arg3 = arg3; 193 193 … … 202 202 hashed_service_t *hashed_service = hash_table_get_inst(link, hashed_service_t, link); 203 203 async_exch_t *exch = async_exchange_begin(hashed_service->sess); 204 async_forward_fast(c allid, exch, iface, arg3, 0, IPC_FF_NONE);204 async_forward_fast(chandle, exch, iface, arg3, 0, IPC_FF_NONE); 205 205 async_exchange_end(exch); 206 206 return; 207 207 208 208 out: 209 async_answer_0(c allid, retval);209 async_answer_0(chandle, retval); 210 210 } 211 211
Note:
See TracChangeset
for help on using the changeset viewer.