d98fdd80331e93cd698281341360a3ce3e30afbePavel Březina Pavel Březina <pbrezina@redhat.com>
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina Copyright (C) 2013 Red Hat
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina This program is free software; you can redistribute it and/or modify
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina it under the terms of the GNU General Public License as published by
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina the Free Software Foundation; either version 3 of the License, or
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina (at your option) any later version.
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina This program is distributed in the hope that it will be useful,
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina but WITHOUT ANY WARRANTY; without even the implied warranty of
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina GNU General Public License for more details.
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina You should have received a copy of the GNU General Public License
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina along with this program. If not, see <http://www.gnu.org/licenses/>.
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina/* SRV lookup plugin interface */
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina * If discovery_domain is NULL, it should be detected automatically.
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březinatypedef struct tevent_req *
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina(*fo_srv_lookup_plugin_send_t)(TALLOC_CTX *mem_ctx,
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina * EOK - at least one primary or backup server was found
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina * ERR_SRV_NOT_FOUND - no primary nor backup server found
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina * ERR_SRV_LOOKUP_ERROR - error communicating with SRV database
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina * other code - depends on plugin
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina * If EOK is returned:
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina * - and no primary server is found:
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina * *_primary_servers = NULL
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina * *_num_primary_servers = 0
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina * - and no backup server is found:
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina * *_backup_servers = NULL
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina * *_num_backup_servers = 0
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina * - *_dns_domain = DNS domain name where the servers were found
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina(*fo_srv_lookup_plugin_recv_t)(TALLOC_CTX *mem_ctx,
77d165f0629966db65753a3aee84a8b4971673afPavel Březinastruct tevent_req *fo_discover_srv_send(TALLOC_CTX *mem_ctx,
77d165f0629966db65753a3aee84a8b4971673afPavel Březinaerrno_t fo_discover_srv_recv(TALLOC_CTX *mem_ctx,
1099620d87afcee7e239cbb75fd364643c8c1124Pavel Březinastruct tevent_req *fo_discover_servers_send(TALLOC_CTX *mem_ctx,
1099620d87afcee7e239cbb75fd364643c8c1124Pavel Březinaerrno_t fo_discover_servers_recv(TALLOC_CTX *mem_ctx,
77d165f0629966db65753a3aee84a8b4971673afPavel Březina/* Simple SRV lookup plugin */
77d165f0629966db65753a3aee84a8b4971673afPavel Březinafo_resolve_srv_dns_ctx_init(TALLOC_CTX *mem_ctx,
77d165f0629966db65753a3aee84a8b4971673afPavel Březinastruct tevent_req *fo_resolve_srv_dns_send(TALLOC_CTX *mem_ctx,
77d165f0629966db65753a3aee84a8b4971673afPavel Březinaerrno_t fo_resolve_srv_dns_recv(TALLOC_CTX *mem_ctx,
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina#endif /* __FAIL_OVER_SRV_H__ */