From fc84e55acd28bb7da2d104c0cd9a7487f261b7b5 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Sat, 1 Jan 2011 17:38:55 +0000 Subject: module_test: The tiny beginnings of an irssi loadable-module (not script) for educational and internals poking purposes. Hopefully one day it might grow up to be a real binary! See README for details on the code I "borrowed" from ahf. I hope I attributed it all ok :) --- modules/test/test_core.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 modules/test/test_core.c (limited to 'modules/test/test_core.c') diff --git a/modules/test/test_core.c b/modules/test/test_core.c new file mode 100644 index 0000000..1b5d8c8 --- /dev/null +++ b/modules/test/test_core.c @@ -0,0 +1,33 @@ + +/* Originally this code was part of the irssi-lua module + * and copyright as below: + * + * Copyright (c) 2009 Alexander Færøy + * + * 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. + * + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + */ + +#include +#include +#include + +void test_init() { + module_register(MODULE_NAME, "core"); + print_load_message(); +} + +void test_deinit() { +} -- cgit v1.2.3