This source file includes following definitions.
- batadv_v_init
- batadv_v_hardif_init
- batadv_v_mesh_init
- batadv_v_mesh_free
1
2
3
4
5
6
7 #ifndef _NET_BATMAN_ADV_BAT_V_H_
8 #define _NET_BATMAN_ADV_BAT_V_H_
9
10 #include "main.h"
11
12 #ifdef CONFIG_BATMAN_ADV_BATMAN_V
13
14 int batadv_v_init(void);
15 void batadv_v_hardif_init(struct batadv_hard_iface *hardif);
16 int batadv_v_mesh_init(struct batadv_priv *bat_priv);
17 void batadv_v_mesh_free(struct batadv_priv *bat_priv);
18
19 #else
20
21 static inline int batadv_v_init(void)
22 {
23 return 0;
24 }
25
26 static inline void batadv_v_hardif_init(struct batadv_hard_iface *hardif)
27 {
28 }
29
30 static inline int batadv_v_mesh_init(struct batadv_priv *bat_priv)
31 {
32 return 0;
33 }
34
35 static inline void batadv_v_mesh_free(struct batadv_priv *bat_priv)
36 {
37 }
38
39 #endif
40
41 #endif