2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 22:35:25 +00:00

Fix some weird errors in failover external declarations.

This commit is contained in:
Ted Lemon
2000-05-09 03:11:11 +00:00
parent 6c25ecec2e
commit 76d5bd36c8

View File

@@ -738,11 +738,15 @@ struct hardware_link {
struct hardware address; struct hardware address;
}; };
typedef void (*tvref_t)(void *, void *, const char *, int);
typedef void (*tvunref_t)(void *, const char *, int);
struct timeout { struct timeout {
struct timeout *next; struct timeout *next;
TIME when; TIME when;
void (*func) PROTO ((void *)); void (*func) PROTO ((void *));
void *what; void *what;
tvref_t ref;
tvunref_t unref;
}; };
struct protocol { struct protocol {
@@ -1483,7 +1487,8 @@ isc_result_t interface_stuff_values (omapi_object_t *,
omapi_object_t *, omapi_object_t *,
omapi_object_t *); omapi_object_t *);
void add_timeout PROTO ((TIME, void (*) PROTO ((void *)), void *)); void add_timeout PROTO ((TIME, void (*) PROTO ((void *)), void *,
tvref_t, tvunref_t));
void cancel_timeout PROTO ((void (*) PROTO ((void *)), void *)); void cancel_timeout PROTO ((void (*) PROTO ((void *)), void *));
struct protocol *add_protocol PROTO ((const char *, int, struct protocol *add_protocol PROTO ((const char *, int,
void (*) PROTO ((struct protocol *)), void (*) PROTO ((struct protocol *)),
@@ -1516,12 +1521,12 @@ struct universe *config_universe;
/* stables.c */ /* stables.c */
#if defined (FAILOVER_PROTOCOL) #if defined (FAILOVER_PROTOCOL)
failover_option_t null_failover_option; extern failover_option_t null_failover_option;
failover_option_t skip_failover_option; extern failover_option_t skip_failover_option;
struct failover_option_info ft_options [0]; extern struct failover_option_info ft_options [];
u_int32_t fto_allowed [0]; extern u_int32_t fto_allowed [];
int ft_sizes [0]; extern int ft_sizes [];
const char *dhcp_flink_state_names [0]; extern const char *dhcp_flink_state_names [];
#endif #endif
extern struct universe agent_universe; extern struct universe agent_universe;
extern struct option agent_options [256]; extern struct option agent_options [256];