From f9961e5f82e0ef474d6492371bfdf9e74e208a99 Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Tue, 19 Mar 2013 15:53:44 +0100 Subject: DNS sites support - SRV lookup plugin interface https://fedorahosted.org/sssd/ticket/1032 Introduces two new error codes: - ERR_SRV_NOT_FOUND - ERR_SRV_LOOKUP_ERROR Since id_provider is authoritative in case of SRV plugin choise, ability to override the selected pluging during runtime is not desirable. We rely on the fact that id_provider is initialized before all other providers, thus the plugin is set correctly. --- src/providers/dp_backend.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/providers/dp_backend.h') diff --git a/src/providers/dp_backend.h b/src/providers/dp_backend.h index 01d1e43be..1b8a59e60 100644 --- a/src/providers/dp_backend.h +++ b/src/providers/dp_backend.h @@ -211,6 +211,13 @@ int be_fo_service_add_callback(TALLOC_CTX *memctx, struct be_ctx *ctx, const char *service_name, be_svc_callback_fn_t *fn, void *private_data); int be_fo_get_server_count(struct be_ctx *ctx, const char *service_name); + +void be_fo_set_srv_lookup_plugin(struct be_ctx *ctx, + fo_srv_lookup_plugin_send_t send_fn, + fo_srv_lookup_plugin_recv_t recv_fn, + void *pvt, + const char *plugin_name); + int be_fo_add_srv_server(struct be_ctx *ctx, const char *service_name, const char *query_service, -- cgit