Changes in uspace/srv/ns/clonable.c [566992e1:3e6a98c5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/clonable.c
r566992e1 r3e6a98c5 46 46 typedef struct { 47 47 link_t link; 48 s ervice_t service;49 i face_t iface;48 sysarg_t service; 49 ipc_call_t call; 50 50 ipc_callid_t callid; 51 sysarg_t arg3;52 51 } cs_req_t; 53 52 … … 62 61 63 62 /** Return true if @a service is clonable. */ 64 bool service_clonable( service_t service)63 bool service_clonable(int service) 65 64 { 66 return (service == SERVICE_LOAD ER);65 return (service == SERVICE_LOAD); 67 66 } 68 67 … … 74 73 * 75 74 */ 76 void register_clonable(s ervice_t service, sysarg_t phone, ipc_call_t *call,75 void register_clonable(sysarg_t service, sysarg_t phone, ipc_call_t *call, 77 76 ipc_callid_t callid) 78 77 { 79 link_t *req_link = list_first(&cs_req); 78 link_t *req_link; 79 80 req_link = list_first(&cs_req); 80 81 if (req_link == NULL) { 81 82 /* There was no pending connection request. */ … … 89 90 90 91 /* Currently we can only handle a single type of clonable service. */ 91 assert(csr->service == SERVICE_LOAD ER);92 assert(csr->service == SERVICE_LOAD); 92 93 93 94 ipc_answer_0(callid, EOK); 94 95 95 ipc_forward_fast(csr->callid, phone, csr->iface, csr->arg3, 0,96 IPC_ FF_NONE);96 ipc_forward_fast(csr->callid, phone, IPC_GET_ARG2(csr->call), 97 IPC_GET_ARG3(csr->call), 0, IPC_FF_NONE); 97 98 98 99 free(csr); … … 103 104 * 104 105 * @param service Service to be connected to. 105 * @param iface Interface to be connected to.106 106 * @param call Pointer to call structure. 107 107 * @param callid Call ID of the request. … … 110 110 * 111 111 */ 112 void connect_to_clonable(s ervice_t service, iface_t iface, ipc_call_t *call,112 void connect_to_clonable(sysarg_t service, ipc_call_t *call, 113 113 ipc_callid_t callid) 114 114 { 115 assert(service == SERVICE_LOAD ER);115 assert(service == SERVICE_LOAD); 116 116 117 117 cs_req_t *csr = malloc(sizeof(cs_req_t)); … … 132 132 link_initialize(&csr->link); 133 133 csr->service = service; 134 csr-> iface = iface;134 csr->call = *call; 135 135 csr->callid = callid; 136 csr->arg3 = IPC_GET_ARG3(*call);137 136 138 137 /*
Note:
See TracChangeset
for help on using the changeset viewer.