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.
 
 

16 lines
492 B

#include <stdbool.h>
#define HOST_TOKEN "<HOST>"
typedef struct _config cfg_t;
extern cfg_t *create(const char *id);
extern bool config(cfg_t *c, const char *key, const char *value);
extern bool ready(cfg_t *c);
extern bool start(cfg_t *c);
extern bool stop(cfg_t *c);
extern bool ping(cfg_t *c);
extern bool ban(cfg_t *c, const char *ip);
extern bool unban(cfg_t *c, const char *ip);
extern bool exists(cfg_t *c, const char *ip);
extern void destroy(cfg_t *c);