blob: 5e0be10bc84e96c07fb9ba392085fa7126d4c646 [file] [log] [blame]
Sven Eckelmann7db7d9f2017-11-19 15:05:11 +01001/* SPDX-License-Identifier: GPL-2.0 */
Sven Eckelmann68e039f2020-01-01 00:00:01 +01002/* Copyright (C) 2011-2020 B.A.T.M.A.N. contributors:
Sven Eckelmanna2d08162016-05-15 11:07:46 +02003 *
4 * Marek Lindner, Linus Lüssing
Sven Eckelmanna2d08162016-05-15 11:07:46 +02005 */
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
14int batadv_v_init(void);
15void batadv_v_hardif_init(struct batadv_hard_iface *hardif);
16int batadv_v_mesh_init(struct batadv_priv *bat_priv);
17void batadv_v_mesh_free(struct batadv_priv *bat_priv);
18
19#else
20
21static inline int batadv_v_init(void)
22{
23 return 0;
24}
25
26static inline void batadv_v_hardif_init(struct batadv_hard_iface *hardif)
27{
28}
29
30static inline int batadv_v_mesh_init(struct batadv_priv *bat_priv)
31{
32 return 0;
33}
34
35static inline void batadv_v_mesh_free(struct batadv_priv *bat_priv)
36{
37}
38
39#endif /* CONFIG_BATMAN_ADV_BATMAN_V */
40
41#endif /* _NET_BATMAN_ADV_BAT_V_H_ */