/** * initialize the smbconf text backend * the only function that is exported from this module */ WERROR smbconf_init_txt(TALLOC_CTX *mem_ctx, struct smbconf_ctx **conf_ctx, const char *path) { WERROR werr; werr = smbconf_init_internal(mem_ctx, conf_ctx, path, &smbconf_ops_txt); if (!W_ERROR_IS_OK(werr)) { return werr; } return smbconf_txt_load_file(*conf_ctx); }
/** * initialize the smbconf registry backend * the only function that is exported from this module */ sbcErr smbconf_init_reg(TALLOC_CTX *mem_ctx, struct smbconf_ctx **conf_ctx, const char *path) { return smbconf_init_internal(mem_ctx, conf_ctx, path, &smbconf_ops_reg); }