return WERR_NOT_SUPPORTED;
}
- werr = smbconf_open(ctx, &conf_ctx);
+ werr = smbconf_init(ctx, &conf_ctx);
if (!W_ERROR_IS_OK(werr)) {
goto done;
}
if (ctx->token == NULL) {
DEBUG(1, ("Error: token missing from smbconf_ctx. "
- "was smbconf_open() called?\n"));
+ "was smbconf_init() called?\n"));
werr = WERR_INVALID_PARAM;
goto done;
}
* After the work with the configuration is completed, smbconf_close()
* should be called.
*/
-WERROR smbconf_open(TALLOC_CTX *mem_ctx, struct smbconf_ctx **conf_ctx)
+WERROR smbconf_init(TALLOC_CTX *mem_ctx, struct smbconf_ctx **conf_ctx)
{
WERROR werr = WERR_OK;
struct smbconf_ctx *ctx;
* (Backends and possibly remote support being added ...)
*/
-WERROR smbconf_open(TALLOC_CTX *mem_ctx, struct smbconf_ctx **conf_ctx);
+WERROR smbconf_init(TALLOC_CTX *mem_ctx, struct smbconf_ctx **conf_ctx);
void smbconf_close(struct smbconf_ctx *ctx);
bool smbconf_changed(struct smbconf_ctx *ctx, struct smbconf_csn *csn,
const char *service, const char *param);
WERROR werr;
struct smbconf_ctx *ctx;
- werr = smbconf_open(r, &ctx);
+ werr = smbconf_init(r, &ctx);
if (!W_ERROR_IS_OK(werr)) {
goto done;
}
WERROR werr = WERR_OK;
struct smbconf_ctx *ctx;
- werr = smbconf_open(r, &ctx);
+ werr = smbconf_init(r, &ctx);
if (!W_ERROR_IS_OK(werr)) {
goto done;
}
if (conf_ctx == NULL) {
/* first time */
- werr = smbconf_open(NULL, &conf_ctx);
+ werr = smbconf_init(NULL, &conf_ctx);
if (!W_ERROR_IS_OK(werr)) {
goto done;
}
if (lp_config_backend_is_registry()) {
if (conf_ctx == NULL) {
WERROR werr;
- werr = smbconf_open(NULL, &conf_ctx);
+ werr = smbconf_init(NULL, &conf_ctx);
if (!W_ERROR_IS_OK(werr)) {
DEBUG(0, ("error opening configuration: %s\n",
dos_errstr(werr)));
struct smbconf_ctx *conf_ctx;
int ret = -1;
- werr = smbconf_open(mem_ctx, &conf_ctx);
+ werr = smbconf_init(mem_ctx, &conf_ctx);
if (!W_ERROR_IS_OK(werr)) {
return -1;