config.h 317 B

12345678910111213141516171819
  1. #ifndef WOE_CONFIG_H
  2. #define WOE_CONFIG_H
  3. struct woe_config {
  4. int port;
  5. char * data_dir;
  6. char * log_file;
  7. };
  8. int woe_config_init_args(struct woe_config * config, int argc, char * argv[]);
  9. struct woe_config woe_config_get();
  10. struct woe_config woe_config_put(struct woe_config * config);
  11. #endif