summaryrefslogtreecommitdiffstats
path: root/src/providers/dp_backend.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-11-25 11:08:37 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-12-01 13:50:48 -0500
commit40def28805f9df3ff640209def765723cd8e2de3 (patch)
tree5c86c851d617901206c64c95d99b36de535d710a /src/providers/dp_backend.h
parent09f6d093d38744fc1ba8db5e031ac0f16282210d (diff)
downloadsssd-40def28805f9df3ff640209def765723cd8e2de3.tar.gz
sssd-40def28805f9df3ff640209def765723cd8e2de3.tar.xz
sssd-40def28805f9df3ff640209def765723cd8e2de3.zip
Allow protocol fallback for SRV queries
https://fedorahosted.org/sssd/ticket/691
Diffstat (limited to 'src/providers/dp_backend.h')
-rw-r--r--src/providers/dp_backend.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/providers/dp_backend.h b/src/providers/dp_backend.h
index a31e458f7..e11b3b6c7 100644
--- a/src/providers/dp_backend.h
+++ b/src/providers/dp_backend.h
@@ -157,6 +157,12 @@ int be_add_offline_cb(TALLOC_CTX *mem_ctx,
void be_run_offline_cb(struct be_ctx *be);
/* from data_provider_fo.c */
+enum be_fo_protocol {
+ BE_FO_PROTO_TCP,
+ BE_FO_PROTO_UDP,
+ BE_FO_PROTO_SENTINEL
+};
+
typedef void (be_svc_callback_fn_t)(void *, struct fo_server *);
int be_init_failover(struct be_ctx *ctx);
@@ -167,8 +173,8 @@ int be_fo_service_add_callback(TALLOC_CTX *memctx,
be_svc_callback_fn_t *fn, void *private_data);
int be_fo_get_server_count(struct be_ctx *ctx, const char *service_name);
int be_fo_add_srv_server(struct be_ctx *ctx, const char *service_name,
- const char *query_service, const char *proto,
- void *user_data);
+ const char *query_service, enum be_fo_protocol proto,
+ bool proto_fallback, void *user_data);
int be_fo_add_server(struct be_ctx *ctx, const char *service_name,
const char *server, int port, void *user_data);