Changeset 9b1baac in mainline for uspace/srv/ns/clonable.c
- Timestamp:
- 2018-07-18T08:35:42Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b05082
- Parents:
- edc64c0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/clonable.c
redc64c0 r9b1baac 54 54 static list_t cs_req; 55 55 56 errno_t clonable_init(void)56 errno_t ns_clonable_init(void) 57 57 { 58 58 list_initialize(&cs_req); … … 61 61 62 62 /** Return true if @a service is clonable. */ 63 bool service_clonable(service_t service)63 bool ns_service_is_clonable(service_t service, iface_t iface) 64 64 { 65 return (service == SERVICE_LOADER) ;65 return (service == SERVICE_LOADER) && (iface == INTERFACE_LOADER); 66 66 } 67 67 68 68 /** Register clonable service. 69 69 * 70 * @param service Service to be registered. 71 * @param phone Phone to be used for connections to the service. 72 * @param call Pointer to call structure. 70 * @param call Pointer to call structure. 73 71 * 74 72 */ 75 void register_clonable(service_t service, sysarg_t phone,ipc_call_t *call)73 void ns_clonable_register(ipc_call_t *call) 76 74 { 77 75 link_t *req_link = list_first(&cs_req); … … 87 85 88 86 /* Currently we can only handle a single type of clonable service. */ 89 assert( csr->service == SERVICE_LOADER);87 assert(ns_service_is_clonable(csr->service, csr->iface)); 90 88 91 89 async_answer_0(call, EOK); … … 113 111 * 114 112 */ 115 void connect_to_clonable(service_t service, iface_t iface, ipc_call_t *call)113 void ns_clonable_forward(service_t service, iface_t iface, ipc_call_t *call) 116 114 { 117 assert( service == SERVICE_LOADER);115 assert(ns_service_is_clonable(service, iface)); 118 116 119 117 cs_req_t *csr = malloc(sizeof(cs_req_t));
Note:
See TracChangeset
for help on using the changeset viewer.