diff options
author | paul <paul> | 2003-03-17 01:16:55 +0000 |
---|---|---|
committer | paul <paul> | 2003-03-17 01:16:55 +0000 |
commit | 283ae334e83d0801b7de0067fc8a34b8a43f7fd5 (patch) | |
tree | 1a4e8d54edf6241854eb755fae426e6e6f4479bc | |
parent | 2d33f157898e50c2855cd014a9f50696dca8a77b (diff) |
Addition of OSPF-API - Amir Guindehi <amir@datacore.ch>
-rw-r--r-- | ospfd/ospf_opaque.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ospfd/ospf_opaque.c b/ospfd/ospf_opaque.c index 5d5b30c9..fa9c4dba 100644 --- a/ospfd/ospf_opaque.c +++ b/ospfd/ospf_opaque.c @@ -66,6 +66,11 @@ #include "ospfd/ospf_te.h" #endif /* HAVE_OSPF_TE */ +#ifdef SUPPORT_OSPF_API +int ospf_apiserver_init (void); +void ospf_apiserver_term (void); +#endif /* SUPPORT_OSPF_API */ + static void ospf_opaque_register_vty (void); static void ospf_opaque_funclist_init (void); static void ospf_opaque_funclist_term (void); @@ -85,6 +90,11 @@ ospf_opaque_init (void) exit (1); #endif /* HAVE_OSPF_TE */ +#ifdef SUPPORT_OSPF_API + if (ospf_apiserver_init () != 0) + exit (1); +#endif /* SUPPORT_OSPF_API */ + return; } @@ -95,6 +105,10 @@ ospf_opaque_term (void) ospf_mpls_te_term (); #endif /* HAVE_OSPF_TE */ +#ifdef SUPPORT_OSPF_API + ospf_apiserver_term (); +#endif /* SUPPORT_OSPF_API */ + ospf_opaque_funclist_term (); return; } |