46 lines
1.0 KiB
C
46 lines
1.0 KiB
C
/*
|
|
**********************************************************************************************
|
|
* File: maat_common.h
|
|
* Description: maat common entry
|
|
* Authors: Liu WenTan <liuwentan@geedgenetworks.com>
|
|
* Date: 2022-10-31
|
|
* Copyright: (c) 2018-2022 Geedge Networks, Inc. All rights reserved.
|
|
***********************************************************************************************
|
|
*/
|
|
|
|
#ifndef _MAAT_COMMON_H_
|
|
#define _MAAT_COMMON_H_
|
|
|
|
#ifdef __cpluscplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "log/log.h"
|
|
#include "maat_rule.h"
|
|
|
|
struct maat_options {
|
|
char instance_name[NAME_MAX];
|
|
char compile_tablename[NAME_MAX];
|
|
size_t nr_worker_threads;
|
|
int rule_effect_interval_ms;
|
|
int rule_update_checking_interval_ms;
|
|
int gc_timeout_ms;
|
|
int deferred_load_on;
|
|
int log_level;
|
|
struct log_handle *logger;
|
|
enum data_source input_mode;
|
|
union {
|
|
struct source_iris_ctx iris_ctx;
|
|
struct source_json_ctx json_ctx;
|
|
struct source_redis_ctx redis_ctx;
|
|
};
|
|
};
|
|
|
|
#ifdef __cpluscplus
|
|
}
|
|
#endif
|
|
|
|
#endif |