ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny/*
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny SSSD
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny Authors:
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny Jan Zeleny <jzeleny@redhat.com>
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny Copyright (C) 2012 Red Hat
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny This program is free software; you can redistribute it and/or modify
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny it under the terms of the GNU General Public License as published by
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny the Free Software Foundation; either version 3 of the License, or
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny (at your option) any later version.
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny This program is distributed in the hope that it will be useful,
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny but WITHOUT ANY WARRANTY; without even the implied warranty of
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny GNU General Public License for more details.
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny You should have received a copy of the GNU General Public License
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny along with this program. If not, see <http://www.gnu.org/licenses/>.
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny*/
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny#ifndef IPA_HOSTS_H_
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny#define IPA_HOSTS_H_
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zelenystruct tevent_req *
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zelenyipa_host_info_send(TALLOC_CTX *mem_ctx,
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny struct tevent_context *ev,
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny struct sdap_handle *sh,
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny struct sdap_options *opts,
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny const char *hostname,
fdab7bbf8933351f6254438c30ff361cd748b15aJan Zeleny struct sdap_attr_map *host_map,
fdab7bbf8933351f6254438c30ff361cd748b15aJan Zeleny struct sdap_attr_map *hostgroup_map,
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny struct sdap_search_base **search_bases);
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zelenyerrno_t
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zelenyipa_host_info_recv(struct tevent_req *req,
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny TALLOC_CTX *mem_ctx,
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny size_t *host_count,
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny struct sysdb_attrs ***hosts,
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny size_t *hostgroup_count,
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny struct sysdb_attrs ***hostgroups);
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny
ad07ed37b6b51ef134d4524edaf2259e19ac984fJan Zeleny#endif /* IPA_HOSTS_H_ */