Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4307 → Rev 4350

/branches/network/uspace/srv/net/netif/netif_nil_bundle.c
30,6 → 30,11
* @{
*/
 
/** @file
* Wrapper for the bundled network interface and network interface layer module.
* Distributes messages and initializes both module parts.
*/
 
#include <async.h>
 
#include <ipc/ipc.h>
42,9 → 47,27
 
#include "netif.h"
 
/** Network interface module global data.
*/
extern netif_globals_t netif_globals;
 
/** Distributes the messages between the module parts.
* @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 );
 
/** Starts the bundle network interface module.
* Initializes the client connection serving function, initializes both module parts, 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 ){