babeld: adopt to upstream header-style

Instead of including the headerfiles that define the structs, we add
the struct definitions to our headerfile.

Fixes warning:

ubus.h:67:32: warning: 'struct xroute' declared inside parameter list will not be visible outside of this definition or declaration
 void ubus_notify_xroute(struct xroute *xroute, int kind);
                                ^~~~~~
Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
Nick Hainke 2021-02-01 21:17:51 +01:00
parent 72408a9cf8
commit 2e87bb658d
3 changed files with 8 additions and 2 deletions

View file

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=babeld
PKG_VERSION:=1.9.2
PKG_RELEASE:=4
PKG_RELEASE:=5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://www.irif.fr/~jch/software/files/

View file

@ -2,6 +2,7 @@
#include <stdlib.h>
#include <sys/select.h>
#include <libubus.h>
#include <libubox/blob.h>
#include <libubox/blobmsg.h>
#include <libubox/list.h>

View file

@ -21,7 +21,12 @@
*/
#include <libubus.h>
#include <stdbool.h>
struct fd_set;
struct neighbour;
struct babel_route;
struct xroute;
// Whether to enable ubus bindings (boolean option).
extern int ubus_bindings;