porting/dpl_os/src/config_file.c
/*
 * Register a file to be a source of configuration.
 */
Register a file to be a source of configuration.
Register a file to be a source of configuration .
int
conf_file_src(struct conf_file *cf)
{
    if (!cf->cf_name) {
        return EINVAL;
    }
    cf->cf_store.cs_itf = &conf_file_itf;
    conf_src_register(&cf->cf_store);
    return 0;
}
int conf_file_src ( struct conf_file * cf ) { if ( ! cf -> cf_name ) { return EINVAL ; } cf -> cf_store . cs_itf = & conf_file_itf ; conf_src_register ( & cf -> cf_store ) ; return 0 ; }
Register a file to be a source of configuration.
Register a file to be a source of configuration .