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


Ignore:
Timestamp:
2011-07-20T15:26:21Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
efcebe1
Parents:
25bef0ff (diff), a701812 (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 mainline changes.

File:
1 edited

Legend:

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

    r25bef0ff r6a44ee4  
    3838#include <bool.h>
    3939#include <errno.h>
     40#include <ns.h>
    4041#include <nil_skel.h>
    4142#include <net_interface.h>
     
    4849 *
    4950 */
    50 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)
    5153{
    5254        /*
     
    7577                 * result.
    7678                 */
    77                 if ((IPC_GET_IMETHOD(call) == IPC_M_PHONE_HUNGUP) ||
    78                     (res == EHANGUP))
     79                if ((!IPC_GET_IMETHOD(call)) || (res == EHANGUP))
    7980                        return;
    8081               
     
    9697 * @return Other error codes as defined for the nil_initialize()
    9798 *         function.
    98  * @return Other error codes as defined for the REGISTER_ME() macro
    99  *         function.
    10099 *
    101100 */
    102 int nil_module_start(int service)
     101int nil_module_start(sysarg_t service)
    103102{
    104103        async_set_client_connection(nil_client_connection);
    105         int net_phone = net_connect_module();
    106         if (net_phone < 0)
    107                 return net_phone;
     104        async_sess_t *sess = net_connect_module();
     105        if (!sess)
     106                return ENOENT;
    108107       
    109108        int rc = pm_init();
     
    111110                return rc;
    112111       
    113         rc = nil_initialize(net_phone);
     112        rc = nil_initialize(sess);
    114113        if (rc != EOK)
    115114                goto out;
    116115       
    117         rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL);
     116        rc = service_register(service);
    118117        if (rc != EOK)
    119118                goto out;
Note: See TracChangeset for help on using the changeset viewer.