Changeset 6b82009 in mainline for uspace/lib/net/il/il_skel.c


Ignore:
Timestamp:
2011-06-22T20:41:41Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ef09a7a
Parents:
55091847
Message:

networking stack: convert to the new async framework

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/il/il_skel.c

    r55091847 r6b82009  
    3838#include <bool.h>
    3939#include <errno.h>
     40#include <ns.h>
    4041#include <il_skel.h>
    4142#include <net_interface.h>
    4243#include <net/modules.h>
    43 #include <async_obsolete.h>
    44 
    45 // FIXME: remove this header
    46 #include <kernel/ipc/ipc_methods.h>
    4744
    4845/** Default thread for new connections.
     
    10097 * @return Other error codes as defined for the il_initialize()
    10198 *         function.
    102  * @return Other error codes as defined for the REGISTER_ME() macro
    103  *         function.
    10499 *
    105100 */
    106 int il_module_start(int service)
     101int il_module_start(sysarg_t service)
    107102{
    108103        async_set_client_connection(il_client_connection);
    109         int net_phone = net_connect_module();
    110         if (net_phone < 0)
    111                 return net_phone;
     104        async_sess_t *sess = net_connect_module();
     105        if (!sess)
     106                return ENOENT;
    112107       
    113108        int rc = pm_init();
     
    115110                return rc;
    116111       
    117         rc = il_initialize(net_phone);
     112        rc = il_initialize(sess);
    118113        if (rc != EOK)
    119114                goto out;
    120115       
    121         rc = async_obsolete_connect_to_me(PHONE_NS, service, 0, 0, NULL, NULL);
     116        rc = service_register(service);
    122117        if (rc != EOK)
    123118                goto out;
Note: See TracChangeset for help on using the changeset viewer.