#include "sysinc.h"
#include "jacommon.h"

#ifndef CFG_H
#define CFG_H

#define TYPE_INT 0
#define TYPE_STRING 1

extern char *CONFIG_FILE;
extern int CONFIG_ALLOW_ROOT;
extern char *CONFIG_JA_EXECUTION_USER;

typedef struct
{
    int32_t log_slow_queries;
    char listen_ip[256];
    char source_ip[256];
    int32_t timeout;
    int32_t debug_level;
    char log_type_str[256];
    char log_file[256];
    char pid_file[256];
    char log_message_file_path[FILE_PATH_LEN];
    char tmp_dir[FILE_PATH_LEN];
    int log_file_size;
    int log_level;
    int allow_root;
} cfg_data;

extern cfg_data config;

#endif