2
ctrlproxy: A modular IRC proxy
3
(c) 2002-2003 Jelmer Vernooij <jelmer@nl.linux.org>
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
#include "ctrlproxy.h"
24
gboolean memory_init(struct linestack_context *c, char *args)
29
gboolean memory_clear(struct linestack_context *c)
31
GSList *gl = (GSList *)c->data;
33
struct line *l = (struct line *)c->data;
35
gl = g_slist_next(gl);
37
g_slist_free(c->data); c->data = NULL;
40
GSList *memory_get_linked_list(struct linestack_context *c)
42
return (GSList *)c->data;
45
gboolean memory_add_line(struct linestack_context *b, struct line *l)
47
GSList *gl = (GSList *)b->data;
48
gl = g_slist_append(gl, l);
53
struct linestack memory = {
58
memory_get_linked_list,
63
gboolean fini_plugin(struct plugin *p) {
64
unregister_linestack(&memory);
68
gboolean init_plugin(struct plugin *p) {
69
register_linestack(&memory);