Changeset 24ab58b3 in mainline for uspace/srv/net/nil/eth/eth_module.c


Ignore:
Timestamp:
2010-04-06T11:41:48Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
14f1db0
Parents:
4dd8529
Message:

more compact network startup messages (usually one line instead of multiple lines)
pass module name as an argument to nil_message() and friends
deeper cstyle changes (replace forward prototypes with proper extern declarations and static functions, change doxygen comments, stick more closely to the 80-column rule, no argument names in header files, spacing, comments, etc.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/nil/eth/eth_module.c

    r4dd8529 r24ab58b3  
    4646#include <net_interface.h>
    4747#include <packet/packet.h>
     48#include <nil_module.h>
    4849#include <nil_standalone.h>
    4950
     
    7980}
    8081
    81 /** Passes the parameters to the module specific nil_message() function.
    82  *  @param[in] callid The message identifier.
    83  *  @param[in] call The message parameters.
    84  *  @param[out] answer The message answer parameters.
    85  *  @param[out] answer_count The last parameter for the actual answer in the answer parameter.
    86  *  @returns EOK on success.
    87  *  @returns ENOTSUP if the message is not known.
    88  *  @returns Other error codes as defined for each specific module message function.
     82/** Pass the parameters to the module specific nil_message() function.
     83 *
     84 * @param[in]  name         Module name.
     85 * @param[in]  callid       The message identifier.
     86 * @param[in]  call         The message parameters.
     87 * @param[out] answer       The message answer parameters.
     88 * @param[out] answer_count The last parameter for the actual answer
     89 *                          in the answer parameter.
     90 *
     91 * @return EOK on success.
     92 * @return ENOTSUP if the message is not known.
     93 * @return Other error codes as defined for each
     94 *         specific module message function.
     95 *
    8996 */
    90 int nil_module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){
    91         return nil_message(callid, call, answer, answer_count);
     97int nil_module_message(const char *name, ipc_callid_t callid, ipc_call_t *call,
     98    ipc_call_t *answer, int *answer_count)
     99{
     100        return nil_message(name, callid, call, answer, answer_count);
    92101}
    93102
Note: See TracChangeset for help on using the changeset viewer.