From d124b925e8fb9dd2be5db5e8fc9d15031f4a9e68 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Sun, 9 Jan 2011 17:45:26 +0000 Subject: added new module stub for attemping to extend perl API --- modules/perl_plus/perl_plus_core.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 modules/perl_plus/perl_plus_core.c (limited to 'modules/perl_plus/perl_plus_core.c') diff --git a/modules/perl_plus/perl_plus_core.c b/modules/perl_plus/perl_plus_core.c new file mode 100644 index 0000000..61b8ffc --- /dev/null +++ b/modules/perl_plus/perl_plus_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 perl_plus_init() { + module_register(MODULE_NAME, "core"); + print_load_message(); +} + +void perl_plus_deinit() { + print_unload_message(); +} -- cgit v1.2.3