WERROR registry_init_basic(void) { WERROR werr; DEBUG(10, ("registry_init_basic called\n")); werr = registry_init_common(); regdb_close(); return werr; }
WERROR registry_init_full(void) { int i; WERROR werr; werr = registry_init_common(); if (!W_ERROR_IS_OK(werr)) { goto fail; } /* setup the necessary keys and values */ werr = init_registry_data(); if (!W_ERROR_IS_OK(werr)) { DEBUG(0, ("Failed to initialize data in registry!\n")); goto fail; } /* build the cache tree of registry hooks */ for ( i=0; reg_hooks[i].keyname; i++ ) { werr = reghook_cache_add(reg_hooks[i].keyname, reg_hooks[i].ops); if (!W_ERROR_IS_OK(werr)) { goto fail; } } if ( DEBUGLEVEL >= 20 ) reghook_dump_cache(20); /* add any keys for other services */ svcctl_init_keys(); eventlog_init_keys(); perfcount_init_keys(); fail: /* close and let each smbd open up as necessary */ regdb_close(); return werr; }