You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
345 B

  1. #ifndef _JCONF_H
  2. #define _JCONF_H
  3. #define MAX_REMOTE_NUM 10
  4. #define MAX_CONF_SIZE 512 * 1024
  5. typedef struct {
  6. int remote_num;
  7. char *remote_host[MAX_REMOTE_NUM];
  8. char *remote_port;
  9. char *local_port;
  10. char *password;
  11. char *method;
  12. char *timeout;
  13. } jconf_t;
  14. jconf_t *read_jconf(const char* file);
  15. #endif // _JCONF_H