Changes in uspace/lib/net/tl/tl_skel.c [6b82009:ffa2c8ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/tl/tl_skel.c
r6b82009 rffa2c8ef 38 38 #include <bool.h> 39 39 #include <errno.h> 40 #include <ns.h>41 40 #include <tl_skel.h> 42 41 #include <net_interface.h> … … 47 46 * @param[in] iid The initial message identifier. 48 47 * @param[in] icall The initial message call structure. 49 * @param[in] arg Local argument.50 48 * 51 49 */ 52 static void tl_client_connection(ipc_callid_t iid, ipc_call_t *icall, 53 void *arg) 50 static void tl_client_connection(ipc_callid_t iid, ipc_call_t *icall) 54 51 { 55 52 /* … … 80 77 * result. 81 78 */ 82 if ((!IPC_GET_IMETHOD(call)) || (res == EHANGUP)) 79 if ((IPC_GET_IMETHOD(call) == IPC_M_PHONE_HUNGUP) || 80 (res == EHANGUP)) 83 81 return; 84 82 … … 104 102 * 105 103 */ 106 int tl_module_start( sysarg_t service)104 int tl_module_start(int service) 107 105 { 108 106 async_set_client_connection(tl_client_connection); 109 async_sess_t *sess= net_connect_module();110 if ( !sess)111 return ENOENT;107 int net_phone = net_connect_module(); 108 if (net_phone < 0) 109 return net_phone; 112 110 113 111 int rc = pm_init(); … … 115 113 return rc; 116 114 117 rc = tl_initialize( sess);115 rc = tl_initialize(net_phone); 118 116 if (rc != EOK) 119 117 goto out; 120 118 121 rc = service_register(service);119 rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL); 122 120 if (rc != EOK) 123 121 goto out;
Note:
See TracChangeset
for help on using the changeset viewer.