7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos Ondrej Kos <okos@redhat.com>
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos Copyright (C) 2013 Red Hat
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos This program is free software; you can redistribute it and/or modify
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos it under the terms of the GNU General Public License as published by
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos the Free Software Foundation; either version 3 of the License, or
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos (at your option) any later version.
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos This program is distributed in the hope that it will be useful,
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos but WITHOUT ANY WARRANTY; without even the implied warranty of
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos GNU General Public License for more details.
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos You should have received a copy of the GNU General Public License
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos along with this program. If not, see <http://www.gnu.org/licenses/>.
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos/* Structure declarations */
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos/* INI data structure */
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos/* Function declarations */
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos/* Initialize data structure */
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kosstruct sss_ini_initdata* sss_ini_initdata_init(TALLOC_CTX *tmp_ctx);
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos/* Close file descriptor */
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kosvoid sss_ini_close_file(struct sss_ini_initdata *init_data);
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos/* Open config file */
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kosint sss_ini_config_file_open(struct sss_ini_initdata *init_data,
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos/* Check file permissions */
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kosint sss_ini_config_access_check(struct sss_ini_initdata *init_data);
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kosint sss_ini_get_stat(struct sss_ini_initdata *init_data);
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos/* Get mtime */
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kosint sss_ini_get_mtime(struct sss_ini_initdata *init_data,
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos/* Load configuration */
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kosint sss_ini_get_config(struct sss_ini_initdata *init_data,
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos/* Get configuration object */
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kosint sss_ini_get_cfgobj(struct sss_ini_initdata *init_data,
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos/* Check configuration object */
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kosint sss_ini_check_config_obj(struct sss_ini_initdata *init_data);
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos/* Get int value */
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kosint sss_ini_get_int_config_value(struct sss_ini_initdata *init_data,
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos/* Destroy ini config */
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kosvoid sss_ini_config_destroy(struct sss_ini_initdata *init_data);
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos/* Create LDIF */
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos const char **config_ldif);
8b2a31634764168183506925a4b9f461afdba6f3Michal Židek/* Validate sssd.conf if libini_config support it */
8b2a31634764168183506925a4b9f461afdba6f3Michal Židekint sss_ini_call_validators(struct sss_ini_initdata *data,
199984c7972272f8162a356cda139c22f6f08556Michal Židek/* Get errors from validators in array of strings */
199984c7972272f8162a356cda139c22f6f08556Michal Židekint sss_ini_call_validators_strs(TALLOC_CTX *mem_ctx,
199984c7972272f8162a356cda139c22f6f08556Michal Židek/* Get pointer to list of snippet parsing errors */
199984c7972272f8162a356cda139c22f6f08556Michal Žideksss_ini_get_ra_error_list(struct sss_ini_initdata *init_data);
a02a5ed51178b2cbede0396d66aed716b8898096René Genz/* Get pointer to list of successfully merged snippet files */
199984c7972272f8162a356cda139c22f6f08556Michal Žideksss_ini_get_ra_success_list(struct sss_ini_initdata *init_data);
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos#endif /* __SSS_INI_H__ */