batman-adv: split routing API data structure in subobjects
authorAntonio Quartulli <a@unstable.cc>
Wed, 25 May 2016 15:27:31 +0000 (23:27 +0800)
committerSimon Wunderlich <sw@simonwunderlich.de>
Mon, 4 Jul 2016 10:37:19 +0000 (12:37 +0200)
commit29824a55c07cd79a530d4bc1020a529c402515b6
treec1838a6a39f690cdc23e14ffbeb416f4f9ff93ce
parent33a3bb4a3345bb511f9c69c913da95d4693e2a4e
batman-adv: split routing API data structure in subobjects

The routing API data structure contains several function
pointers that can easily be grouped together based on the
component they work with.

Split the API in subobjects in order to improve definition readability.

At the same time, remove the "bat_" prefix from the API object and
its fields names. These are batman-adv private structs and there is no
need to always prepend such prefix, which only makes function invocations
much much longer.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Reviewed-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
12 files changed:
net/batman-adv/bat_algo.c
net/batman-adv/bat_iv_ogm.c
net/batman-adv/bat_v.c
net/batman-adv/bat_v_elp.c
net/batman-adv/bat_v_ogm.c
net/batman-adv/hard-interface.c
net/batman-adv/netlink.c
net/batman-adv/originator.c
net/batman-adv/routing.c
net/batman-adv/sysfs.c
net/batman-adv/translation-table.c
net/batman-adv/types.h