⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mconfig.h

📁 一百个病毒的源代码 包括熊猫烧香等 极其具有研究价值
💻 H
字号:
/*** Modular Logfile Analyzer** Copyright 2000 Jan Kneschke <jan@kneschke.de>**** Homepage: http://www.kneschke.de/projekte/modlogan**    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version, and provided that the above    copyright and permission notice is included with all distributed    copies of this or derived software.    This program is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    GNU General Public License for more details.    You should have received a copy of the GNU General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA**** $Id: mconfig.h,v 1.23 2001/01/11 22:21:58 jk Exp $*/#ifndef _M_CONFIG_H_#define _M_CONFIG_H_#include "config.h"#ifdef WITH_DMALLOC#include <dmalloc.h>#endif#ifdef HAVE_LIBADNS#include <adns.h>#endif#include "mhash.h"#define M_CONFIG_TYPE_STRING		0#define M_CONFIG_TYPE_INT		1#define M_CONFIG_TYPE_SUBSTITUTE	2#define M_CONFIG_TYPE_MATCH		3#define M_CONFIG_TYPE_COLTRIPPL		4#define M_CONFIG_TYPE_CHAR		5#define M_CONFIG_TYPE_STRING_LIST	6#define M_CONFIG_VALUE_IGNORE		1#define M_CONFIG_VALUE_OVERWRITE	2#define M_CONFIG_VALUE_APPEND		3typedef struct {	char *string;	/* name of the entry */	int type;	/* type of the value (M_CONFIG_TYPE...)*/	int value_def;	/* how to handle an field with the same key (append, overwrite, ignore) */	void *dest;	/* where to put the result into */} mconfig_values;typedef struct {	char *inputplugin;	char *outputplugin;	char *processorplugin;		char *outputdir;	char *language;	char *default_configfile;	int incremental;	int debug_level;		int gen_report_threshold;	int disable_resolver;	#ifdef HAVE_LIBADNS	adns_state *adns;	mhash	**query_hash;#endif		void *output;	void *input;	void *processor;} mconfig;mconfig* mconfig_init(const char *fn);int mconfig_free(mconfig *);int mconfig_insert_value(void *dest, int type, char *value, int value_def);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -