denyhosts/conf.h

33 lines
503 B
C
Raw Normal View History

2022-07-07 16:52:24 +08:00
#ifndef CONF_H
#define CONF_H
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
typedef struct CONF {
char *DAEMON;
int TIME;
2022-09-29 14:45:29 +08:00
2022-07-07 16:52:24 +08:00
int REFUSE_NUMBER;
2022-09-29 14:45:29 +08:00
2022-07-07 16:52:24 +08:00
int IS_MAIL;
2022-09-29 14:45:29 +08:00
2022-07-07 16:52:24 +08:00
int IS_DING_WEBHOOK;
char *PHONE;
char *DING_WEBHOOK;
2022-09-29 14:45:29 +08:00
2022-07-07 16:52:24 +08:00
int IS_QQMAIL;
char *SEND_QQ;
char *QQMAIL_KEY;
char *RECV_MAIL;
} conf;
2022-09-29 14:45:29 +08:00
void read_conf(char *filename, conf * configure);
2022-07-07 16:52:24 +08:00
void free_conf(conf * conf);
2022-09-29 14:45:29 +08:00
void ptintf_conf(conf * conf);
2022-07-07 16:52:24 +08:00
2022-09-29 14:45:29 +08:00
#endif