Ignore:
Timestamp:
2010-11-02T22:38:46Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
af894a21
Parents:
aab02fb (diff), e06ef614 (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/srv/net/nil/nildummy/nildummy_module.c

    raab02fb refedee77  
    3838#include <async.h>
    3939#include <stdio.h>
     40#include <err.h>
    4041
    4142#include <ipc/ipc.h>
    4243#include <ipc/services.h>
    4344
    44 #include <net_err.h>
    45 #include <net_modules.h>
     45#include <net/modules.h>
    4646#include <net_interface.h>
    47 #include <packet/packet.h>
     47#include <net/packet.h>
    4848#include <nil_local.h>
    4949
    5050#include "nildummy.h"
    5151
    52 /** Start the dummy nil module.
    53  *
    54  * Initialize the client connection serving function, initialize
    55  * the module, register the module service and start the async
    56  * manager, processing IPC messages in an infinite loop.
    57  *
    58  * @param[in] client_connection The client connection processing
    59  *                              function. The module skeleton propagates
    60  *                              its own one.
    61  *
    62  * @return EOK on success.
    63  * @return Other error codes as defined for the pm_init() function.
    64  * @return Other error codes as defined for the nil_initialize() function.
    65  * @return Other error codes as defined for the REGISTER_ME() macro function.
    66  *
    67  */
    6852int nil_module_start_standalone(async_client_conn_t client_connection)
    6953{
     
    7155       
    7256        async_set_client_connection(client_connection);
    73         int net_phone = net_connect_module(SERVICE_NETWORKING);
     57        int net_phone = net_connect_module();
    7458        ERROR_PROPAGATE(pm_init());
    7559       
    7660        ipcarg_t phonehash;
    77         if (ERROR_OCCURRED(nil_initialize(net_phone))
    78             || ERROR_OCCURRED(REGISTER_ME(SERVICE_NILDUMMY, &phonehash))){
     61        if (ERROR_OCCURRED(nil_initialize(net_phone)) ||
     62            ERROR_OCCURRED(REGISTER_ME(SERVICE_NILDUMMY, &phonehash))) {
    7963                pm_destroy();
    8064                return ERROR_CODE;
     
    8771}
    8872
    89 /** Pass the parameters to the module specific nil_message() function.
    90  *
    91  * @param[in]  name         Module name.
    92  * @param[in]  callid       The message identifier.
    93  * @param[in]  call         The message parameters.
    94  * @param[out] answer       The message answer parameters.
    95  * @param[out] answer_count The last parameter for the actual answer
    96  *                          in the answer parameter.
    97  *
    98  * @return EOK on success.
    99  * @return ENOTSUP if the message is not known.
    100  * @return Other error codes as defined for each specific
    101  *          module message function.
    102  *
    103  */
    104 int nil_module_message_standalone(const char *name, ipc_callid_t callid,
     73int
     74nil_module_message_standalone(const char *name, ipc_callid_t callid,
    10575    ipc_call_t *call, ipc_call_t *answer, int *answer_count)
    10676{
Note: See TracChangeset for help on using the changeset viewer.