31,6 → 31,8 |
*/ |
|
/** @file |
* Network interface layer modules common skeleton. |
* All network interface layer modules have to implement this interface. |
*/ |
|
#ifndef __NET_ETH_MODULE_H__ |
38,7 → 40,25 |
|
#include <ipc/ipc.h> |
|
int nil_initialize( int networking_phone ); |
/** Module initialization. |
* Is called by the module_start() function. |
* @param net_phone The networking moduel phone. Input parameter. |
* @returns EOK on success. |
* @returns Other error codes as defined for each specific module initialize function. |
*/ |
int nil_initialize( int net_phone ); |
|
/** Message processing 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. |
* @see nil_interface.h |
* @see IS_NET_NIL_MESSAGE() |
*/ |
int nil_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ); |
|
#endif |