Changes in uspace/srv/ns/ns.c [9cfbf2f:1c635d6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/ns.c
r9cfbf2f r1c635d6 38 38 #include <ipc/ipc.h> 39 39 #include <ipc/ns.h> 40 #include <ipc/services.h>41 #include <abi/ipc/interfaces.h>42 40 #include <stdio.h> 43 41 #include <errno.h> … … 75 73 sysarg_t retval; 76 74 77 iface_t iface;78 service_t service;79 sysarg_t phone;80 81 75 switch (IPC_GET_IMETHOD(call)) { 82 76 case IPC_M_PHONE_HUNGUP: … … 84 78 break; 85 79 case IPC_M_CONNECT_TO_ME: 86 service = IPC_GET_ARG2(call);87 phone = IPC_GET_ARG5(call);88 89 80 /* 90 81 * Server requests service registration. 91 82 */ 92 if (service_clonable(service)) { 93 register_clonable(service, phone, &call, callid); 83 if (service_clonable(IPC_GET_ARG1(call))) { 84 register_clonable(IPC_GET_ARG1(call), 85 IPC_GET_ARG5(call), &call, callid); 94 86 continue; 95 } else 96 retval = register_service(service, phone, &call); 97 87 } else { 88 retval = register_service(IPC_GET_ARG1(call), 89 IPC_GET_ARG5(call), &call); 90 } 98 91 break; 99 92 case IPC_M_CONNECT_ME_TO: 100 iface = IPC_GET_ARG1(call);101 service = IPC_GET_ARG2(call);102 103 93 /* 104 94 * Client requests to be connected to a service. 105 95 */ 106 if (service_clonable(service)) { 107 connect_to_clonable(service, iface, &call, callid); 96 if (service_clonable(IPC_GET_ARG1(call))) { 97 connect_to_clonable(IPC_GET_ARG1(call), 98 &call, callid); 108 99 continue; 109 100 } else { 110 connect_to_service(service, iface, &call, callid); 101 connect_to_service(IPC_GET_ARG1(call), &call, 102 callid); 111 103 continue; 112 104 }
Note:
See TracChangeset
for help on using the changeset viewer.