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