logread.h
来自「linux防火墙源代码 需要用的人自己下载看看 程序比较简单啊」· C头文件 代码 · 共 42 行
H
42 行
/*---[ logread.h ]---------------------------------------------------- * Copyright (C) 2000 Tomas Junnonen (majix@sci.fi) * * 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. * * Functions for reading from the syslog file *--------------------------------------------------------------------*/#ifndef _FIRESTARTER_LOGREAD#define _FIRESTARTER_LOGREAD#include <config.h>#include <gnome.h>#include <libgnomevfs/gnome-vfs.h>#include "firestarter.h"#define FILE_BUF 4096void open_logfile (char *logpath);void logread_async_read_callback (GnomeVFSAsyncHandle *handle, GnomeVFSResult result, gpointer buffer, GnomeVFSFileSize bytes_requested, GnomeVFSFileSize bytes_read, gpointer data);Hit *parse_log_line (gchar *line);typedef struct _Parse Parse;struct _Parse{ gchar *buffer; GPatternSpec *pattern; int half_line; GnomeVFSFileSize size; GnomeVFSFileSize bytes_read; GnomeVFSAsyncHandle *handle; gboolean continuous;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?