Changeset 6a8ce16 in mainline for uspace/srv/ns/ns.c
- Timestamp:
- 2015-08-18T18:00:22Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 84dc30c
- Parents:
- abf2dfd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/ns.c
rabf2dfd r6a8ce16 38 38 #include <ipc/ipc.h> 39 39 #include <ipc/ns.h> 40 #include <ipc/services.h> 40 41 #include <stdio.h> 41 42 #include <errno.h> … … 73 74 sysarg_t retval; 74 75 76 service_t service; 77 sysarg_t phone; 78 75 79 switch (IPC_GET_IMETHOD(call)) { 76 80 case IPC_M_PHONE_HUNGUP: … … 78 82 break; 79 83 case IPC_M_CONNECT_TO_ME: 84 service = IPC_GET_ARG1(call); 85 phone = IPC_GET_ARG5(call); 86 80 87 /* 81 88 * Server requests service registration. 82 89 */ 83 if (service_clonable(IPC_GET_ARG1(call))) { 84 register_clonable(IPC_GET_ARG1(call), 85 IPC_GET_ARG5(call), &call, callid); 90 if (service_clonable(service)) { 91 register_clonable(service, phone, &call, callid); 86 92 continue; 87 } else { 88 retval = register_service(IPC_GET_ARG1(call), 89 IPC_GET_ARG5(call), &call); 90 } 93 } else 94 retval = register_service(service, phone, &call); 95 91 96 break; 92 97 case IPC_M_CONNECT_ME_TO: 98 service = IPC_GET_ARG1(call); 99 93 100 /* 94 101 * Client requests to be connected to a service. 95 102 */ 96 if (service_clonable(IPC_GET_ARG1(call))) { 97 connect_to_clonable(IPC_GET_ARG1(call), 98 &call, callid); 103 if (service_clonable(service)) { 104 connect_to_clonable(service, &call, callid); 99 105 continue; 100 106 } else { 101 connect_to_service(IPC_GET_ARG1(call), &call, 102 callid); 107 connect_to_service(service, &call, callid); 103 108 continue; 104 109 }
Note:
See TracChangeset
for help on using the changeset viewer.