From faace4bdd6b84f60d2f707c00d31a84c0e84d375 Mon Sep 17 00:00:00 2001 From: eindenbom Date: Thu, 17 Jun 2010 16:09:36 +0400 Subject: Added an interface to query number of configured (and currently resolved through SRV records) failover servers. --- src/providers/fail_over.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/providers/fail_over.h') diff --git a/src/providers/fail_over.h b/src/providers/fail_over.h index a31ace21..24b2c1f5 100644 --- a/src/providers/fail_over.h +++ b/src/providers/fail_over.h @@ -99,6 +99,11 @@ int fo_get_service(struct fo_ctx *ctx, const char *name, struct fo_service **_service); +/* + * Get number of servers registered for the 'service'. + */ +int fo_get_server_count(struct fo_service *service); + /* * Adds a server 'name' to the 'service'. Port 'port' will be used for * connection. If 'name' is NULL, no server resolution will be done. -- cgit