Changeset e4f8c77 in mainline for uspace/lib/net/tl/tl_skel.c
- Timestamp:
- 2011-07-13T22:39:18Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e6910c8
- Parents:
- 5974661 (diff), 8ecef91 (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
r5974661 re4f8c77 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> 42 43 #include <net/modules.h> 43 44 // FIXME: remove this header45 #include <kernel/ipc/ipc_methods.h>46 44 47 45 /** Default thread for new connections. … … 49 47 * @param[in] iid The initial message identifier. 50 48 * @param[in] icall The initial message call structure. 49 * @param[in] arg Local argument. 51 50 * 52 51 */ 53 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) 54 54 { 55 55 /* … … 104 104 * 105 105 */ 106 int tl_module_start( int service)106 int tl_module_start(sysarg_t service) 107 107 { 108 108 async_set_client_connection(tl_client_connection); 109 int net_phone= net_connect_module();110 if ( net_phone < 0)111 return net_phone;109 async_sess_t *sess = net_connect_module(); 110 if (!sess) 111 return ENOENT; 112 112 113 113 int rc = pm_init(); … … 115 115 return rc; 116 116 117 rc = tl_initialize( net_phone);117 rc = tl_initialize(sess); 118 118 if (rc != EOK) 119 119 goto out; 120 120 121 rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL);121 rc = service_register(service); 122 122 if (rc != EOK) 123 123 goto out;
Note:
See TracChangeset
for help on using the changeset viewer.