Sven Eckelmann | 7db7d9f | 2017-11-19 15:05:11 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Sven Eckelmann | 68e039f | 2020-01-01 00:00:01 +0100 | [diff] [blame] | 2 | /* Copyright (C) 2011-2020 B.A.T.M.A.N. contributors: |
Marek Lindner | 1c28047 | 2011-11-28 17:40:17 +0800 | [diff] [blame] | 3 | * |
Linus Luessing | d6f94d9 | 2016-01-16 16:40:09 +0800 | [diff] [blame] | 4 | * Marek Lindner, Linus Lüssing |
Marek Lindner | 1c28047 | 2011-11-28 17:40:17 +0800 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _NET_BATMAN_ADV_BAT_ALGO_H_ |
| 8 | #define _NET_BATMAN_ADV_BAT_ALGO_H_ |
| 9 | |
Marek Lindner | 7db682d | 2016-05-10 22:31:59 +0800 | [diff] [blame] | 10 | #include "main.h" |
Antonio Quartulli | 0da0035 | 2016-01-16 16:40:12 +0800 | [diff] [blame] | 11 | |
Sven Eckelmann | 68a600d | 2019-05-24 20:11:17 +0200 | [diff] [blame] | 12 | #include <linux/netlink.h> |
Sven Eckelmann | 68a600d | 2019-05-24 20:11:17 +0200 | [diff] [blame] | 13 | #include <linux/skbuff.h> |
Sven Eckelmann | 01d350d | 2016-05-15 11:07:44 +0200 | [diff] [blame] | 14 | #include <linux/types.h> |
| 15 | |
Sven Eckelmann | 01d350d | 2016-05-15 11:07:44 +0200 | [diff] [blame] | 16 | extern char batadv_routing_algo[]; |
| 17 | extern struct list_head batadv_hardif_list; |
| 18 | |
| 19 | void batadv_algo_init(void); |
Sven Eckelmann | a5ad457 | 2020-10-11 12:25:24 +0200 | [diff] [blame] | 20 | struct batadv_algo_ops *batadv_algo_get(const char *name); |
Sven Eckelmann | 01d350d | 2016-05-15 11:07:44 +0200 | [diff] [blame] | 21 | int batadv_algo_register(struct batadv_algo_ops *bat_algo_ops); |
Sven Eckelmann | a5ad457 | 2020-10-11 12:25:24 +0200 | [diff] [blame] | 22 | int batadv_algo_select(struct batadv_priv *bat_priv, const char *name); |
Matthias Schiffer | 07a3061 | 2016-07-03 13:31:35 +0200 | [diff] [blame] | 23 | int batadv_algo_dump(struct sk_buff *msg, struct netlink_callback *cb); |
Sven Eckelmann | 01d350d | 2016-05-15 11:07:44 +0200 | [diff] [blame] | 24 | |
Marek Lindner | 1c28047 | 2011-11-28 17:40:17 +0800 | [diff] [blame] | 25 | #endif /* _NET_BATMAN_ADV_BAT_ALGO_H_ */ |