From 00d252cb5ff21ecc537ab40385316b41622a95e2 Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 23 May 2005 14:19:54 +0000 Subject: 2005-05-23 Paul Jakma * bgp_fsm.h: Add extern qualifier to exported functions * bgp_nexthop.c: add static to nexthop specific globals * *.h: Add guard defines --- bgpd/bgp_fsm.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'bgpd/bgp_fsm.h') diff --git a/bgpd/bgp_fsm.h b/bgpd/bgp_fsm.h index 20fc2d70..db4a915a 100644 --- a/bgpd/bgp_fsm.h +++ b/bgpd/bgp_fsm.h @@ -19,6 +19,9 @@ along with GNU Zebra; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef _QUAGGA_BGP_FSM_H +#define _QUAGGA_BGP_FSM_H + /* Macro for BGP read, write and timer thread. */ #define BGP_READ_ON(T,F,V) THREAD_READ_ON(master,T,F,peer,V) #define BGP_READ_OFF(X) THREAD_READ_OFF(X) @@ -36,8 +39,10 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA thread_cancel_event (master, (P)) /* Prototypes. */ -int bgp_event (struct thread *); -int bgp_stop (struct peer *peer); -void bgp_timer_set (struct peer *); -void bgp_fsm_change_status (struct peer *peer, int status); +extern int bgp_event (struct thread *); +extern int bgp_stop (struct peer *peer); +extern void bgp_timer_set (struct peer *); +extern void bgp_fsm_change_status (struct peer *peer, int status); extern const char *peer_down_str[]; + +#endif /* _QUAGGA_BGP_FSM_H */ -- cgit v1.2.1