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

45 lines
897 B
C

/* Copyright (c) 2009 Open Information Security Foundation */
/**
* \author Endace Technology Limited
*/
#ifndef __CONF_H__
#define __CONF_H__
#include "queue.h"
/**
* Structure of a configuration parameter.
*/
typedef struct ConfNode_ {
char *name;
char *val;
int allow_override;
TAILQ_HEAD(, ConfNode_) head;
TAILQ_ENTRY(ConfNode_) next;
} ConfNode;
/**
* The default log directory.
*/
#define DEFAULT_LOG_DIR "/var/log/eidps"
void ConfInit(void);
int ConfGet(char *name, char **vptr);
int ConfGetInt(char *name, intmax_t *val);
int ConfGetBool(char *name, int *val);
int ConfSet(char *name, char *val, int allow_override);
void ConfDump(void);
void ConfNodeDump(ConfNode *node);
ConfNode *ConfNodeNew(void);
void ConfNodeFree(ConfNode *);
int ConfSetNode(ConfNode *node);
ConfNode *ConfGetNode(char *key);
void ConfRegisterTests();
#endif /* ! __CONF_H__ */