Changes in uspace/srv/ns/ns.c [9cfbf2f:a47f522] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/ns.c
r9cfbf2f ra47f522 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> … … 68 66 while (true) { 69 67 process_pending_conn(); 68 process_pending_wait(); 70 69 71 70 ipc_call_t call; … … 75 74 sysarg_t retval; 76 75 77 iface_t iface;78 service_t service;79 sysarg_t phone;80 81 76 switch (IPC_GET_IMETHOD(call)) { 82 77 case IPC_M_PHONE_HUNGUP: … … 84 79 break; 85 80 case IPC_M_CONNECT_TO_ME: 86 service = IPC_GET_ARG2(call);87 phone = IPC_GET_ARG5(call);88 89 81 /* 90 82 * Server requests service registration. 91 83 */ 92 if (service_clonable(service)) { 93 register_clonable(service, phone, &call, callid); 84 if (service_clonable(IPC_GET_ARG1(call))) { 85 register_clonable(IPC_GET_ARG1(call), 86 IPC_GET_ARG5(call), &call, callid); 94 87 continue; 95 } else 96 retval = register_service(service, phone, &call); 97 88 } else { 89 retval = register_service(IPC_GET_ARG1(call), 90 IPC_GET_ARG5(call), &call); 91 } 98 92 break; 99 93 case IPC_M_CONNECT_ME_TO: 100 iface = IPC_GET_ARG1(call);101 service = IPC_GET_ARG2(call);102 103 94 /* 104 95 * Client requests to be connected to a service. 105 96 */ 106 if (service_clonable(service)) { 107 connect_to_clonable(service, iface, &call, callid); 97 if (service_clonable(IPC_GET_ARG1(call))) { 98 connect_to_clonable(IPC_GET_ARG1(call), 99 &call, callid); 108 100 continue; 109 101 } else { 110 connect_to_service(service, iface, &call, callid); 102 connect_to_service(IPC_GET_ARG1(call), &call, 103 callid); 111 104 continue; 112 105 }
Note:
See TracChangeset
for help on using the changeset viewer.