]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: remove bgpd.h from bgp script header
authorMark Stapp <mjs@cisco.com>
Tue, 17 Sep 2024 12:26:04 +0000 (08:26 -0400)
committerMark Stapp <mjs@cisco.com>
Tue, 17 Sep 2024 12:26:04 +0000 (08:26 -0400)
Use forward references instead of including the main bgpd.h
header in the bgp scripting header to reduce external impact
of changes.

Signed-off-by: Mark Stapp <mjs@cisco.com>
bgpd/bgp_script.h

index f2f47e940d2b478f284120f9d62aa041c221aa02..9feb55013552158f32f6b5a06d6b92dab89f782a 100644 (file)
@@ -7,7 +7,6 @@
 #define __BGP_SCRIPT__
 
 #include <zebra.h>
-#include "bgpd.h"
 
 #ifdef HAVE_SCRIPTING
 
  */
 void bgp_script_init(void);
 
+/* Forward references */
+struct peer;
+struct attr;
+
 void lua_pushpeer(lua_State *L, const struct peer *peer);
 
 void lua_pushattr(lua_State *L, const struct attr *attr);