~jakub/helenos/ia64-revival

« back to all changes in this revision

Viewing changes to uspace/lib/net/include/il_skel.h

  • Committer: Jakub Jermar
  • Date: 2011-04-13 14:45:41 UTC
  • mfrom: (527.1.397 main-clone)
  • Revision ID: jakub@jermar.eu-20110413144541-x0j3r1zxqhsljx1o
MergeĀ mainlineĀ changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
27
 */
28
28
 
29
 
/** @addtogroup il_local
30
 
 *  @{
31
 
 */
32
 
 
33
 
#ifndef __IL_LOCAL_H__
34
 
#define __IL_LOCAL_H__
35
 
 
36
 
#include <ipc/ipc.h>
 
29
/** @addtogroup libnet
 
30
 * @{
 
31
 */
 
32
 
 
33
#ifndef LIBNET_IL_SKEL_H_
 
34
#define LIBNET_IL_SKEL_H_
 
35
 
 
36
/** @file
 
37
 * Internetwork layer module skeleton.
 
38
 * The skeleton has to be part of each internetwork layer module.
 
39
 */
 
40
 
37
41
#include <async.h>
38
 
 
39
 
extern int il_module_message_standalone(ipc_callid_t callid, ipc_call_t *call,
40
 
    ipc_call_t *answer, int *answer_count);
41
 
extern int il_module_start_standalone(async_client_conn_t client_connection);
 
42
#include <fibril_synch.h>
 
43
#include <ipc/services.h>
 
44
 
 
45
#include <adt/measured_strings.h>
 
46
#include <net/device.h>
 
47
#include <net/packet.h>
 
48
 
 
49
/** Module initialization.
 
50
 *
 
51
 * This has to be implemented in user code.
 
52
 *
 
53
 * @param[in] net_phone Networking module phone.
 
54
 *
 
55
 * @return EOK on success.
 
56
 * @return Other error codes as defined for each specific module
 
57
 *         initialize function.
 
58
 *
 
59
 */
 
60
extern int il_initialize(int net_phone);
 
61
 
 
62
/** Process the internetwork layer module message.
 
63
 *
 
64
 * This has to be implemented in user code.
 
65
 *
 
66
 * @param[in]  callid Message identifier.
 
67
 * @param[in]  call   Message parameters.
 
68
 * @param[out] answer Answer.
 
69
 * @param[out] count  Number of arguments of the answer.
 
70
 *
 
71
 * @return EOK on success.
 
72
 * @return Other error codes as defined for each specific module.
 
73
 *
 
74
 */
 
75
extern int il_module_message(ipc_callid_t callid, ipc_call_t *call,
 
76
    ipc_call_t *answer, size_t *answer_count);
 
77
 
 
78
extern int il_module_start(int);
42
79
 
43
80
#endif
44
81