]> git.puffer.fish Git - matthieu/frr.git/commitdiff
*: add XREF_SETUP() to libraries and utilites
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 2 May 2024 08:55:11 +0000 (10:55 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 2 May 2024 21:03:08 +0000 (23:03 +0200)
This is theoretically not needed if neither DEFUNs nor zlog_* calls are
used, except I'm about to turn it into a build error to catch the cases
where it _is_ necessary.  Which is libmgmt_be_nb.la in this case, where
it causes build failures on hppa.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
fpm/fpm_pb.c
mgmtd/mgmt_be_nb.c [new file with mode: 0644]
mgmtd/subdir.am
qpb/qpb.c
zebra/fpm_listener.c

index e4c9395a84a6e0665c8a82e8de47dfc5d91f4513..0e8f618c4d3ce7ab23ef55e243353142d367b0d1 100644 (file)
@@ -10,3 +10,8 @@
 /*
  * Main file for the fpm_pb library.
  */
+
+#include "config.h"
+#include "xref.h"
+
+XREF_SETUP();
diff --git a/mgmtd/mgmt_be_nb.c b/mgmtd/mgmt_be_nb.c
new file mode 100644 (file)
index 0000000..613272d
--- /dev/null
@@ -0,0 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "config.h"
+#include "xref.h"
+
+XREF_SETUP();
index 5182c4a47d370213e95c0952329abaf3ae410468..14544c4f050733c822fa3ceb3eae751b495836f0 100644 (file)
@@ -16,6 +16,7 @@ clippy_scan += \
 
 lib_LTLIBRARIES += mgmtd/libmgmt_be_nb.la
 mgmtd_libmgmt_be_nb_la_SOURCES = \
+       mgmtd/mgmt_be_nb.c \
        zebra/zebra_cli.c \
        # end
 nodist_mgmtd_libmgmt_be_nb_la_SOURCES = \
index 63454f115666dd432d452cb91b5daf3fe35ba5fe..625817857819fc47e19c96e1d183bbcde49ce39a 100644 (file)
--- a/qpb/qpb.c
+++ b/qpb/qpb.c
@@ -10,3 +10,8 @@
 /*
  * Main file for the qpb library.
  */
+
+#include "config.h"
+#include "xref.h"
+
+XREF_SETUP();
index b31c5f7ac66a2c86babf3de265ab4ca14e33449d..5533fa7f8be4c88140402730e6805c29a2b82b46 100644 (file)
@@ -36,6 +36,8 @@
 #include "fpm/fpm.h"
 #include "lib/libfrr.h"
 
+XREF_SETUP();
+
 struct glob {
        int server_sock;
        int sock;