- struct ucwlib_context *uc = ucwlib_thread_context();
- if (unlikely(!uc->cf_context))
- {
- struct cf_context *cc = cf_new_context();
- uc->cf_context = cc;
- cc->def_file = CONFIG_UCW_DEFAULT_CONFIG;
- cc->env_file = CONFIG_UCW_ENV_VAR_CONFIG;
- cc->is_active = 1;
- }
- return uc->cf_context;
-}
-
-void
-cf_set_default_file(char *name)
-{
- struct cf_context *cc = cf_obtain_context();
- cc->def_file = name;
+ cf_init_context(&cf_default_context);
+ ucwlib_thread_context()->cf_context = &cf_default_context;
+ cf_default_context.is_active = 1;