diff options
Diffstat (limited to 'src/lib/sifp/sss_sifp.h')
-rw-r--r-- | src/lib/sifp/sss_sifp.h | 16 |
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 |