30,6 → 30,10 |
* @{ |
*/ |
|
/** @file |
* Wrapper for the standalone network interface module. |
*/ |
|
#include <async.h> |
|
#include <ipc/ipc.h> |
36,9 → 40,23 |
|
#include "netif.h" |
|
extern netif_globals_t netif_globals; |
/** Delegates the messages to the netif_message() function. |
* @param callid The message identifier. Input parameter. |
* @param call The message parameters. Input parameter. |
* @param answer The message answer parameters. Output parameter. |
* @param answer_count The last parameter for the actual answer in the answer parameter. Output parameter. |
* @returns EOK on success. |
* @returns ENOTSUP if the message is not known. |
* @returns Other error codes as defined for each specific module message function. |
*/ |
int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ); |
|
int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ); |
/** Starts the network interface module. |
* Initializes the client connection serving function, initializes the module, registers the module service and starts the async manager, processing IPC messages in an infinite loop. |
* @param client_connection The client connection processing function. The module skeleton propagates its own one. Input parameter. |
* @returns EOK on success. |
* @returns Other error codes as defined for each specific module message function. |
*/ |
int module_start( async_client_conn_t client_connection ); |
|
int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){ |