Changes in uspace/lib/net/nil/nil_skel.c [6b82009:ffa2c8ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/nil/nil_skel.c
r6b82009 rffa2c8ef 38 38 #include <bool.h> 39 39 #include <errno.h> 40 #include <ns.h>41 40 #include <nil_skel.h> 42 41 #include <net_interface.h> … … 49 48 * 50 49 */ 51 static void nil_client_connection(ipc_callid_t iid, ipc_call_t *icall, 52 void *arg) 50 static void nil_client_connection(ipc_callid_t iid, ipc_call_t *icall) 53 51 { 54 52 /* … … 77 75 * result. 78 76 */ 79 if ((!IPC_GET_IMETHOD(call)) || (res == EHANGUP)) 77 if ((IPC_GET_IMETHOD(call) == IPC_M_PHONE_HUNGUP) || 78 (res == EHANGUP)) 80 79 return; 81 80 … … 97 96 * @return Other error codes as defined for the nil_initialize() 98 97 * function. 98 * @return Other error codes as defined for the REGISTER_ME() macro 99 * function. 99 100 * 100 101 */ 101 int nil_module_start( sysarg_t service)102 int nil_module_start(int service) 102 103 { 103 104 async_set_client_connection(nil_client_connection); 104 async_sess_t *sess= net_connect_module();105 if ( !sess)106 return ENOENT;105 int net_phone = net_connect_module(); 106 if (net_phone < 0) 107 return net_phone; 107 108 108 109 int rc = pm_init(); … … 110 111 return rc; 111 112 112 rc = nil_initialize( sess);113 rc = nil_initialize(net_phone); 113 114 if (rc != EOK) 114 115 goto out; 115 116 116 rc = service_register(service);117 rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL); 117 118 if (rc != EOK) 118 119 goto out;
Note:
See TracChangeset
for help on using the changeset viewer.