Changeset 6b82009 in mainline for uspace/lib/net/tl/tl_skel.c
- Timestamp:
- 2011-06-22T20:41:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ef09a7a
- Parents:
- 55091847
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/tl/tl_skel.c
r55091847 r6b82009 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 #include <async_obsolete.h>44 45 // FIXME: remove this header46 #include <kernel/ipc/ipc_methods.h>47 44 48 45 /** Default thread for new connections. 49 46 * 50 * @param[in] iid 51 * @param[in] icall 52 * @param[in] arg 47 * @param[in] iid The initial message identifier. 48 * @param[in] icall The initial message call structure. 49 * @param[in] arg Local argument. 53 50 * 54 51 */ … … 107 104 * 108 105 */ 109 int tl_module_start( int service)106 int tl_module_start(sysarg_t service) 110 107 { 111 108 async_set_client_connection(tl_client_connection); 112 int net_phone= net_connect_module();113 if ( net_phone < 0)114 return net_phone;109 async_sess_t *sess = net_connect_module(); 110 if (!sess) 111 return ENOENT; 115 112 116 113 int rc = pm_init(); … … 118 115 return rc; 119 116 120 rc = tl_initialize( net_phone);117 rc = tl_initialize(sess); 121 118 if (rc != EOK) 122 119 goto out; 123 120 124 rc = async_obsolete_connect_to_me(PHONE_NS, service, 0, 0, NULL, NULL);121 rc = service_register(service); 125 122 if (rc != EOK) 126 123 goto out;
Note:
See TracChangeset
for help on using the changeset viewer.