diff --git a/src/client/libdistren_config.c b/src/client/libdistren_config.c --- a/src/client/libdistren_config.c +++ b/src/client/libdistren_config.c @@ -22,11 +22,39 @@ */ #include +#include "options.h" /** @todo Stub */ int _distren_getoptions(distren_t handle) { + cfg_t *cfg; + + cfg_opt_t cfg_opts[] = + { + CFG_STR_LIST("render_types", NULL, 0), + CFG_STR("username", NULL, 0), + CFG_STR("name", NULL, 0), + CFG_STR("email", NULL, 0), + CFG_END() + }; + + if(options_init(0, NULL, &cfg, cfg_opts, "client", &handle->options)) + { + fprintf(stderr, "error getting configuration\n"); + return 1; + } + return 1; } + +/** +@todo stubish + */ +int _distren_loseoptions(distren_t handle) +{ + options_free(handle->options); + + return 0; +}