static int init_epd_config(struct epd_config *pepd_conf, struct conf_data *pconf_data){ if(pepd_conf == NULL){ WARNING_LOG("init epd config error"); return -1; } get_conf_int(pconf_data, "max_work_num", &(pepd_conf->max_work_num)); get_conf_nstr(pconf_data, "doc_root", pepd_conf->doc_root, 1024); get_conf_nstr(pconf_data, "server_port", pepd_conf->server_port, 8); get_conf_nstr(pconf_data, "server_name", pepd_conf->server_name, 1024); return 0; }
int find_sync(void) { return(get_conf_int(FS_SYNC_ENTRY, FS_SYNC_KEY)); }
int is_roaming_not_allowed(void) { return(get_conf_int(NETWORK_ENTRY, NO_ROAMING_KEY)); }
int find_cdrom_timeout(void) { return(get_conf_int(CDROM_ENTRY, CDROM_TIMEOUT_KEY)); }