summaryrefslogtreecommitdiffstats
path: root/src/util/sss_ini.h
diff options
context:
space:
mode:
authorMichal Židek <mzidek@redhat.com>2016-07-01 15:10:30 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2016-07-07 14:53:58 +0200
commit199984c7972272f8162a356cda139c22f6f08556 (patch)
treefabf1eb63cb94b2b0bd9ae595eddc2b740d965e8 /src/util/sss_ini.h
parent740bfe1a5bf519de8e13bdce5c4143b0f24d7433 (diff)
downloadsssd-199984c7972272f8162a356cda139c22f6f08556.tar.gz
sssd-199984c7972272f8162a356cda139c22f6f08556.tar.xz
sssd-199984c7972272f8162a356cda139c22f6f08556.zip
sss_ini: Small refacoring of sss_ini_call_validators
Separate logic to fill errobj so that the errors can be printed by the caller. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/util/sss_ini.h')
-rw-r--r--src/util/sss_ini.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/util/sss_ini.h b/src/util/sss_ini.h
index 7734bab3c..77fbddc3a 100644
--- a/src/util/sss_ini.h
+++ b/src/util/sss_ini.h
@@ -83,4 +83,19 @@ int sss_confdb_create_ldif(TALLOC_CTX *mem_ctx,
int sss_ini_call_validators(struct sss_ini_initdata *data,
const char *rules_path);
+/* Get errors from validators in array of strings */
+int sss_ini_call_validators_strs(TALLOC_CTX *mem_ctx,
+ struct sss_ini_initdata *data,
+ const char *rules_path,
+ char ***_strs,
+ size_t *_num_errors);
+
+/* Get pointer to list of snippet parsing errors */
+struct ref_array *
+sss_ini_get_ra_error_list(struct sss_ini_initdata *init_data);
+
+/* Get pointer to list of successfuly merged snippet files */
+struct ref_array *
+sss_ini_get_ra_success_list(struct sss_ini_initdata *init_data);
+
#endif /* __SSS_INI_H__ */