mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
lib/xref: put setup calls in libraries
Our "true" libraries (i.e. not modules) don't invoke neither FRR_DAEMON_INFO nor FRR_MODULE_SETUP, hence XREF_SETUP isn't invoked either. Invoke it directly to get things working. Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
8e427c2938
commit
b2fa8c0fa3
|
@ -32,6 +32,9 @@
|
|||
#include "linklist.h"
|
||||
#include "version.h"
|
||||
#include "lib_errors.h"
|
||||
#include "xref.h"
|
||||
|
||||
XREF_SETUP()
|
||||
|
||||
static int agentx_enabled = 0;
|
||||
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
#include "lib_errors.h"
|
||||
#include "resolver.h"
|
||||
#include "command.h"
|
||||
#include "xref.h"
|
||||
|
||||
XREF_SETUP()
|
||||
|
||||
struct resolver_state {
|
||||
ares_channel channel;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include "stream.h"
|
||||
#include "log.h"
|
||||
#include "memory.h"
|
||||
#include "xref.h"
|
||||
|
||||
/* work around gcc bug 69981, disable MTYPEs in libospf */
|
||||
#define _QUAGGA_OSPF_MEMORY_H
|
||||
|
@ -57,6 +58,8 @@
|
|||
#include "ospfd/ospf_dump_api.c"
|
||||
#include "ospfd/ospf_api.c"
|
||||
|
||||
XREF_SETUP()
|
||||
|
||||
DEFINE_MGROUP(OSPFCLIENT, "libospfapiclient")
|
||||
DEFINE_MTYPE_STATIC(OSPFCLIENT, OSPF_APICLIENT, "OSPF-API client")
|
||||
|
||||
|
|
Loading…
Reference in a new issue