mirror of
https://github.com/openwrt/routing.git
synced 2025-12-21 19:14:31 +04:00
babeld: adopt to upstream header-style (#640)
babeld: adopt to upstream header-style
Instead of including the headerfiles that define the structs, we add
forward 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:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=babeld
|
PKG_NAME:=babeld
|
||||||
PKG_VERSION:=1.9.2
|
PKG_VERSION:=1.9.2
|
||||||
PKG_RELEASE:=4
|
PKG_RELEASE:=$(AUTORELEASE)
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://www.irif.fr/~jch/software/files/
|
PKG_SOURCE_URL:=https://www.irif.fr/~jch/software/files/
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
|
|
||||||
|
#include <libubus.h>
|
||||||
#include <libubox/blob.h>
|
#include <libubox/blob.h>
|
||||||
#include <libubox/blobmsg.h>
|
#include <libubox/blobmsg.h>
|
||||||
#include <libubox/list.h>
|
#include <libubox/list.h>
|
||||||
|
|||||||
@@ -21,7 +21,12 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <libubus.h>
|
#include <stdbool.h>
|
||||||
|
#include <sys/select.h>
|
||||||
|
|
||||||
|
struct babel_route;
|
||||||
|
struct neighbour;
|
||||||
|
struct xroute;
|
||||||
|
|
||||||
// Whether to enable ubus bindings (boolean option).
|
// Whether to enable ubus bindings (boolean option).
|
||||||
extern int ubus_bindings;
|
extern int ubus_bindings;
|
||||||
|
|||||||
Reference in New Issue
Block a user