Changeset c028b22 in mainline for uspace/lib/net/tl/tl_skel.c
- Timestamp:
- 2011-07-08T17:01:01Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc1a727
- Parents:
- 4e36219 (diff), 026793d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/tl/tl_skel.c
r4e36219 rc028b22 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;
Note:
See TracChangeset
for help on using the changeset viewer.