diff options
author | Pavel Březina <pbrezina@redhat.com> | 2014-05-05 13:28:34 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-05-28 16:41:02 +0200 |
commit | d81f46fb294a6f6f64d3237ab0e0ab01f2c5ea20 (patch) | |
tree | 07389c18eeaf91add01a7dffdf7d30cada2f1ac8 /src/confdb/confdb.h | |
parent | d387c4608dbd3ca056e18e85313ef51aac146fd2 (diff) | |
download | sssd-d81f46fb294a6f6f64d3237ab0e0ab01f2c5ea20.tar.gz sssd-d81f46fb294a6f6f64d3237ab0e0ab01f2c5ea20.tar.xz sssd-d81f46fb294a6f6f64d3237ab0e0ab01f2c5ea20.zip |
confdb: add confdb_list_all_domain_names()
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/confdb/confdb.h')
-rw-r--r-- | src/confdb/confdb.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/confdb/confdb.h b/src/confdb/confdb.h index 7994a6757..2cebf2426 100644 --- a/src/confdb/confdb.h +++ b/src/confdb/confdb.h @@ -297,6 +297,22 @@ int confdb_get_domain(struct confdb_ctx *cdb, int confdb_get_domains(struct confdb_ctx *cdb, struct sss_domain_info **domains); +/** + * Get a null-terminated linked-list of all domain names + * @param[in] mem_ctx The parent memory context for the value list + * @param[in] cdb The connection object to the confdb + * @param[out] _names Output list + * + * @return 0 - Lookup succeeded and all domain names are in the list + * @return ENOMEM - There was insufficient memory to complete the operation + * @return ENOENT - No active domains are configured + * @return EIO - There was an I/O error communicating with the ConfDB file + * @return EINVAL - Corrupted confdb object + */ +int confdb_list_all_domain_names(TALLOC_CTX *mem_ctx, + struct confdb_ctx *cdb, + char ***_names); + /** * @brief Add an arbitrary parameter to the confdb. |