Changeset e4f8c77 in mainline for uspace/lib/net/nil/nil_skel.c


Ignore:
Timestamp:
2011-07-13T22:39:18Z (13 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
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.
Message:

Merge libposix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/nil/nil_skel.c

    r5974661 re4f8c77  
    3838#include <bool.h>
    3939#include <errno.h>
     40#include <ns.h>
    4041#include <nil_skel.h>
    4142#include <net_interface.h>
    4243#include <net/modules.h>
    43 
    44 // FIXME: remove this header
    45 #include <kernel/ipc/ipc_methods.h>
    4644
    4745/** Default thread for new connections.
     
    5149 *
    5250 */
    53 static void nil_client_connection(ipc_callid_t iid, ipc_call_t *icall)
     51static void nil_client_connection(ipc_callid_t iid, ipc_call_t *icall,
     52    void *arg)
    5453{
    5554        /*
     
    9897 * @return Other error codes as defined for the nil_initialize()
    9998 *         function.
    100  * @return Other error codes as defined for the REGISTER_ME() macro
    101  *         function.
    10299 *
    103100 */
    104 int nil_module_start(int service)
     101int nil_module_start(sysarg_t service)
    105102{
    106103        async_set_client_connection(nil_client_connection);
    107         int net_phone = net_connect_module();
    108         if (net_phone < 0)
    109                 return net_phone;
     104        async_sess_t *sess = net_connect_module();
     105        if (!sess)
     106                return ENOENT;
    110107       
    111108        int rc = pm_init();
     
    113110                return rc;
    114111       
    115         rc = nil_initialize(net_phone);
     112        rc = nil_initialize(sess);
    116113        if (rc != EOK)
    117114                goto out;
    118115       
    119         rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL);
     116        rc = service_register(service);
    120117        if (rc != EOK)
    121118                goto out;
Note: See TracChangeset for help on using the changeset viewer.