aboutsummaryrefslogtreecommitdiffstats
path: root/modules/test/test_core.c
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2011-01-01 17:38:55 +0000
committerTom Feist <shabble@metavore.org>2011-01-01 17:38:55 +0000
commitfc84e55acd28bb7da2d104c0cd9a7487f261b7b5 (patch)
tree3609741634da3db93d7889ea30d29054af852e18 /modules/test/test_core.c
parentMerge branch 'dev' of github.com:shabble/irssi-scripts into dev (diff)
downloadirssi-scripts-fc84e55acd28bb7da2d104c0cd9a7487f261b7b5.tar.gz
irssi-scripts-fc84e55acd28bb7da2d104c0cd9a7487f261b7b5.zip
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 :)
Diffstat (limited to 'modules/test/test_core.c')
-rw-r--r--modules/test/test_core.c33
1 files changed, 33 insertions, 0 deletions
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
+ * <https://github.com/ahf/irssi-lua> and copyright as below:
+ *
+ * Copyright (c) 2009 Alexander Færøy <ahf@irssi.org>
+ *
+ * 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 <test_core.h>
+#include <test_irssi.h>
+#include <test_impl.h>
+
+void test_init() {
+ module_register(MODULE_NAME, "core");
+ print_load_message();
+}
+
+void test_deinit() {
+}