diff options
Diffstat (limited to 'src/providers/fail_over.h')
-rw-r--r-- | src/providers/fail_over.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/providers/fail_over.h b/src/providers/fail_over.h index 1ad081e7..3a0bd9b1 100644 --- a/src/providers/fail_over.h +++ b/src/providers/fail_over.h @@ -29,6 +29,7 @@ #include <talloc.h> #include "resolv/async_resolv.h" +#include "providers/fail_over_srv.h" #define FO_PROTO_TCP "tcp" #define FO_PROTO_UDP "udp" @@ -198,4 +199,12 @@ void fo_reset_services(struct fo_ctx *fo_ctx); bool fo_svc_has_server(struct fo_service *service, struct fo_server *server); +/* + * pvt will be talloc_stealed to ctx + */ +bool fo_set_srv_lookup_plugin(struct fo_ctx *ctx, + fo_srv_lookup_plugin_send_t send_fn, + fo_srv_lookup_plugin_recv_t recv_fn, + void *pvt); + #endif /* !__FAIL_OVER_H__ */ |