mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 17:53:13 +02:00
Added logger plugin
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2003-2007 by FlashCode <flashcode@flashtux.org>
|
||||
* See README for License detail, AUTHORS for developers list.
|
||||
*
|
||||
* 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 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __WEECHAT_LOGGER_BUFFER_H
|
||||
#define __WEECHAT_LOGGER_BUFFER_H 1
|
||||
|
||||
struct t_logger_buffer
|
||||
{
|
||||
struct t_gui_buffer *buffer; /* pointer to buffer */
|
||||
char *log_filename; /* log filename */
|
||||
FILE *log_file; /* log file */
|
||||
struct t_logger_buffer *prev_buffer; /* link to previous buffer */
|
||||
struct t_logger_buffer *next_buffer; /* link to next buffer */
|
||||
};
|
||||
|
||||
extern struct t_logger_buffer *logger_buffers;
|
||||
extern struct t_logger_buffer *last_logger_buffer;
|
||||
|
||||
extern struct t_logger_buffer *logger_buffer_add (void *, char *);
|
||||
extern struct t_logger_buffer *logger_buffer_search (void *);
|
||||
extern void logger_buffer_remove (void *);
|
||||
extern void logger_buffer_remove_all ();
|
||||
|
||||
#endif /* logger-buffer.h */
|
||||
Reference in New Issue
Block a user