summaryrefslogtreecommitdiffstats
path: root/src/util/util.h
diff options
context:
space:
mode:
authorMichal Židek <mzidek@redhat.com>2015-09-09 14:37:48 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-10-23 10:32:23 +0200
commit877b92e80bde510d5cd9f03dbf01e2bcf73ab072 (patch)
treed865b106f7d1cf9296650b4e4e4f677d56a26f89 /src/util/util.h
parent10c07e188323a2f9824b5e34379f3b1a9b37759e (diff)
downloadsssd-877b92e80bde510d5cd9f03dbf01e2bcf73ab072.tar.gz
sssd-877b92e80bde510d5cd9f03dbf01e2bcf73ab072.tar.xz
sssd-877b92e80bde510d5cd9f03dbf01e2bcf73ab072.zip
util: Update get_next_domain's interface
Update get next domain to be able to include disbled domains and change the interface to accept flags instead of multiple booleans. Ticket: https://fedorahosted.org/sssd/ticket/2673 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/util/util.h')
-rw-r--r--src/util/util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/util.h b/src/util/util.h
index 063a97a63..3693a5e9f 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -565,8 +565,11 @@ void to_sized_string(struct sized_string *out, const char *in);
/* from domain_info.c */
struct sss_domain_info *get_domains_head(struct sss_domain_info *domain);
+#define SSS_GND_DESCEND 0x01
+#define SSS_GND_INCLUDE_DISABLED 0x02
+#define SSS_GND_ALL_DOMAINS (SSS_GND_DESCEND | SSS_GND_INCLUDE_DISABLED)
struct sss_domain_info *get_next_domain(struct sss_domain_info *domain,
- bool descend);
+ uint32_t gnd_flags);
struct sss_domain_info *find_domain_by_name(struct sss_domain_info *domain,
const char *name,
bool match_any);