/*
Authors:
Fabiano FidĂȘncio <fidencio@redhat.com>
Copyright (C) 2017 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _CACHE_REQ_DOMAIN_H_
#define _CACHE_REQ_DOMAIN_H_
#include "responder/common/responder.h"
struct cache_req_domain {
bool fqnames;
bool locate_domain;
};
struct cache_req_domain *
const char *name);
/*
* This function may have a side effect of setting the output_fqnames' domain
* property when it's called.
*
* It happens as the output_fqnames' domain property must only be set depending
* on whether a domain resolution order is set or not, and the saner place to
* set it to all domains is when flattening those (thus, in this function).
*/
struct sss_domain_info *domains,
const char *domain_resolution_order,
struct cache_req_domain **_cr_domains);
struct cache_req_domain *src,
struct cache_req_domain **_dest);
#endif /* _CACHE_REQ_DOMAIN_H_ */