diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2007-12-17 17:07:08 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2007-12-17 17:07:08 +0100 |
commit | dba084f3d6a65ff8299c79b3867e28b57e50f1be (patch) | |
tree | 4b930f11254cc22148d7bd1b75eab83edcb1f063 /src/plugins/logger/logger-tail.h | |
parent | e62ec5204c7061a83860fa6c6c8204414a2dd057 (diff) | |
download | weechat-dba084f3d6a65ff8299c79b3867e28b57e50f1be.zip |
New backlog option in logger plugin, added variable names in .h files, replaced "void *" pointers by structures
Diffstat (limited to 'src/plugins/logger/logger-tail.h')
-rw-r--r-- | src/plugins/logger/logger-tail.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/plugins/logger/logger-tail.h b/src/plugins/logger/logger-tail.h new file mode 100644 index 000000000..55feb2d1c --- /dev/null +++ b/src/plugins/logger/logger-tail.h @@ -0,0 +1,32 @@ +/* + * 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_TAIL_H +#define __WEECHAT_LOGGER_TAIL_H 1 + +struct t_logger_line +{ + char *data; /* line content */ + struct t_logger_line *next_line; /* link to next line */ +}; + +extern struct t_logger_line *logger_tail_file (char *filename, int n_lines); +extern void logger_tail_free (struct t_logger_line *lines); + +#endif /* logger-tail.h */ |