Changeset 1916d1f in mainline for uspace/lib/net/tl/tl_skel.c


Ignore:
Timestamp:
2011-07-12T13:41:26Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
50fc490
Parents:
11809eab (diff), 6817eba (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.
Message:

Merge libposix changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/tl/tl_skel.c

    r11809eab r1916d1f  
    3838#include <bool.h>
    3939#include <errno.h>
     40#include <ns.h>
    4041#include <tl_skel.h>
    4142#include <net_interface.h>
    4243#include <net/modules.h>
    4344
    44 // FIXME: remove this header
    45 #include <kernel/ipc/ipc_methods.h>
    46 
    4745/** Default thread for new connections.
    4846 *
    49  * @param[in] iid       The initial message identifier.
    50  * @param[in] icall     The initial message call structure.
    51  * @param[in] arg       Local argument.
     47 * @param[in] iid   The initial message identifier.
     48 * @param[in] icall The initial message call structure.
     49 * @param[in] arg   Local argument.
    5250 *
    5351 */
     
    106104 *
    107105 */
    108 int tl_module_start(int service)
     106int tl_module_start(sysarg_t service)
    109107{
    110108        async_set_client_connection(tl_client_connection);
    111         int net_phone = net_connect_module();
    112         if (net_phone < 0)
    113                 return net_phone;
     109        async_sess_t *sess = net_connect_module();
     110        if (!sess)
     111                return ENOENT;
    114112       
    115113        int rc = pm_init();
     
    117115                return rc;
    118116       
    119         rc = tl_initialize(net_phone);
     117        rc = tl_initialize(sess);
    120118        if (rc != EOK)
    121119                goto out;
    122120       
    123         rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL, NULL);
     121        rc = service_register(service);
    124122        if (rc != EOK)
    125123                goto out;
Note: See TracChangeset for help on using the changeset viewer.