]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Expose failover_state enum.
authorTed Lemon <source@isc.org>
Wed, 5 Jan 2000 18:40:43 +0000 (18:40 +0000)
committerTed Lemon <source@isc.org>
Wed, 5 Jan 2000 18:40:43 +0000 (18:40 +0000)
includes/failover.h

index b4c0b55c8343690be80d94f0d77ea6eb0094230c..00db01575258edde1b5972227224b446877e68ef 100644 (file)
@@ -20,6 +20,7 @@
  * http://www.isc.org for more information.
  */
 
+#if defined (FAILOVER_PROTOCOL)
 struct failover_option_info {
        int code;
        const char *name;
@@ -171,6 +172,7 @@ typedef struct {
        OMAPI_OBJECT_PREAMBLE;
        unsigned local_port;
 } dhcp_failover_listener_t;
+#endif /* FAILOVER_PROTOCOL */
 
 /* A failover peer. */
 enum failover_state {
@@ -182,6 +184,7 @@ enum failover_state {
        recover
 };
 
+#if defined (FAILOVER_PROTOCOL)
 typedef struct _dhcp_failover_state {
        OMAPI_OBJECT_PREAMBLE;
        struct _dhcp_failover_state *next;
@@ -229,3 +232,4 @@ typedef struct _dhcp_failover_state {
 } dhcp_failover_state_t;
 
 #define DHCP_FAILOVER_VERSION          1
+#endif /* FAILOVER_PROTOCOL */