From d09b996009ec577b484caaab5dcbf5f18ad84c83 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Sun, 9 Jan 2011 15:47:19 +0000 Subject: cloned test module to start work on a useful module --- modules/key_emitter/key_emitter_core.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 modules/key_emitter/key_emitter_core.c (limited to 'modules/key_emitter/key_emitter_core.c') diff --git a/modules/key_emitter/key_emitter_core.c b/modules/key_emitter/key_emitter_core.c new file mode 100644 index 0000000..196dd70 --- /dev/null +++ b/modules/key_emitter/key_emitter_core.c @@ -0,0 +1,34 @@ + +/* 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() { + print_unload_message(); +} -- cgit v1.2.3