summaryrefslogtreecommitdiffstats
path: root/src/lib/sifp/sss_sifp.h
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2014-04-28 10:54:12 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-05-29 09:08:38 +0200
commitefa6c1f75c4c18bcc148d6e7efd429c2d56499ad (patch)
treee029f971cc0121605338be6df8cdab46c19017b7 /src/lib/sifp/sss_sifp.h
parentf43c6a9ae2aea13b7a83fd932139f9352efbfcad (diff)
downloadsssd-efa6c1f75c4c18bcc148d6e7efd429c2d56499ad.tar.gz
sssd-efa6c1f75c4c18bcc148d6e7efd429c2d56499ad.tar.xz
sssd-efa6c1f75c4c18bcc148d6e7efd429c2d56499ad.zip
sss_sifp: add support for string dictionary
https://fedorahosted.org/sssd/ticket/2254 Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/lib/sifp/sss_sifp.h')
-rw-r--r--src/lib/sifp/sss_sifp.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/sifp/sss_sifp.h b/src/lib/sifp/sss_sifp.h
index 4c6712f5f..6f897135c 100644
--- a/src/lib/sifp/sss_sifp.h
+++ b/src/lib/sifp/sss_sifp.h
@@ -24,6 +24,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <unistd.h>
+#include <dhash.h>
/**
* @defgroup sss_simpleifp Simple interface to SSSD InfoPipe responder.
@@ -303,6 +304,21 @@ sss_sifp_find_attr_as_string(sss_sifp_attr **attrs,
const char **_value);
/**
+ * @brief Find attribute in list and return its value.
+ *
+ * The dictionary is stored in dhash table, the values
+ * are pointers to NULL-terminated string array.
+ *
+ * @param[in] attrs Attributes
+ * @param[in] name Name of the attribute to find
+ * @param[out] _value Output value
+ */
+sss_sifp_error
+sss_sifp_find_attr_as_string_dict(sss_sifp_attr **attrs,
+ const char *name,
+ hash_table_t **_value);
+
+/**
* @brief Find attribute in list and return its values.
*
* @param[in] attrs Attributes