diff options
author | David Lamparter <equinox@diac24.net> | 2020-04-30 21:33:11 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2021-02-01 17:18:51 +0100 |
commit | b2fa8c0fa30eaa72943c07786312923614ef355a (patch) | |
tree | b73ed193a3c2151cc9d614ce45da58b96bc3a80f /ospfclient | |
parent | lib: "xref" identifier infrastructure (diff) | |
download | frr-b2fa8c0fa30eaa72943c07786312923614ef355a.tar.xz frr-b2fa8c0fa30eaa72943c07786312923614ef355a.zip |
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>
Diffstat (limited to 'ospfclient')
-rw-r--r-- | ospfclient/ospf_apiclient.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ospfclient/ospf_apiclient.c b/ospfclient/ospf_apiclient.c index d4f0dc953..1b9b66d74 100644 --- a/ospfclient/ospf_apiclient.c +++ b/ospfclient/ospf_apiclient.c @@ -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") |