📄 mdatat~1.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: mdatatypes.h,v 1.16 2001/01/11 22:25:09 jk Exp $*/#ifndef _M_DATATYPES_H_#define _M_DATATYPES_H_#include <pcre.h>#include "config.h"#ifdef HAVE_LIBZ#include <zlib.h>#else #include "zlibwrapper.h"#endif#include "mstate.h"#define M_DATA_APPENDED 0#define M_DATA_NOT_APPENDED 1#define COMMON_DATA \ char *string; \ int count; \ int type; \ int (*destructor)(void *); \ int (*write)(gzFile *, void *); \ int (*read)(void *, gzFile *);\ void* (*copy)(void *); \ int (*append)(void *, void*);typedef struct { COMMON_DATA} data_StrInt;typedef struct { COMMON_DATA int vcount;} data_Str3Int;typedef struct { COMMON_DATA time_t timestamp; char *referrer;} data_BrokenLink;#define M_PLAIN 0#define M_GROUP 1#define MVISIT_USER 0#define MVISIT_ROBOT 1typedef struct { COMMON_DATA int timediff; time_t timestamp; char *lasturl; char *useragent;} data_Visit;typedef struct { COMMON_DATA unsigned long hits; unsigned long files; unsigned long pages; unsigned long visits; unsigned long hosts; double xfersize; unsigned int year; unsigned int month;} data_History;typedef struct { COMMON_DATA char *string2;} data_2Str;typedef struct { COMMON_DATA mstate *state; mlist *history;} data_State;typedef struct { COMMON_DATA pcre *match;} data_Match;#ifdef HAVE_LIBADNStypedef struct { COMMON_DATA adns_query *query; char *resolved_ip;} data_Query;#endifdata_StrInt *StrInt_init();data_StrInt *Str2Int_init();data_Str3Int *Str3Int_init();data_Visit *Visit_init();data_History *History_init();data_BrokenLink *BrokenLink_init();data_State *State_init();data_Match *Match_init();#ifdef HAVE_LIBADNSdata_Query *Query_init();#endifdata_StrInt *createStrInt(char *str, int count);data_StrInt *createStr2Int(char *str, int count, int type);data_Str3Int *createStr3Int(char *str, int count, int type, int vcount);data_Visit *createVisit(char *str, char *lasturl, char *useragent, int count, long timediff, time_t timestamp, int type);data_History *createHistory(mstate *state);data_2Str *create2Str(char *str, char *str2);data_BrokenLink *createBrokenLink(char *str, int count, int type, time_t timestamp, char *referrer);data_State *createState(char* str, mstate *state, mlist *hist);data_Match *createMatch(char *match, char *grouping);#ifdef HAVE_LIBADNSdata_Query *createQuery(char *match, adns_query *query);#endif#undef COMMON_DATA#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -