diff options
author | Sven Eckelmann <sven@narfation.org> | 2016-05-15 12:07:44 +0300 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2016-06-30 11:29:43 +0300 |
commit | 01d350d14712d1e8dbf2b00c82d2fc7c48d34e04 (patch) | |
tree | 0d96722cd01fd8a955d378d8f0464ee12253f957 /net/batman-adv/bat_algo.h | |
parent | 1f8dce4992d03fc15cfbaf67cd09f0d1648c4606 (diff) | |
download | linux-01d350d14712d1e8dbf2b00c82d2fc7c48d34e04.tar.xz |
batman-adv: move bat_algo functions into a separate file
The bat_algo functionality in main.c is mostly unrelated to the rest of the
content. It still takes up a large portion of this source file (~15%, 103
lines). Moving it to a separate file makes it better visible as a main
component of the batman-adv implementation and hides it less in the other
helper functions in main.c.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/bat_algo.h')
-rw-r--r-- | net/batman-adv/bat_algo.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/batman-adv/bat_algo.h b/net/batman-adv/bat_algo.h index 36542962de7d..8c7e761ff23b 100644 --- a/net/batman-adv/bat_algo.h +++ b/net/batman-adv/bat_algo.h @@ -20,8 +20,20 @@ #include "main.h" +#include <linux/types.h> + +struct seq_file; + int batadv_iv_init(void); +extern char batadv_routing_algo[]; +extern struct list_head batadv_hardif_list; + +void batadv_algo_init(void); +int batadv_algo_register(struct batadv_algo_ops *bat_algo_ops); +int batadv_algo_select(struct batadv_priv *bat_priv, char *name); +int batadv_algo_seq_print_text(struct seq_file *seq, void *offset); + #ifdef CONFIG_BATMAN_ADV_BATMAN_V int batadv_v_init(void); |