1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 18:45:42 +02:00

Migration of Python plugin to new API, bugs fixed in Perl/Python plugins

This commit is contained in:
Sebastien Helleu
2008-01-12 15:25:38 +01:00
parent add64d6f47
commit c17a4d5c76
16 changed files with 4097 additions and 3327 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ lib_LTLIBRARIES = perl.la
perl_la_SOURCES = weechat-perl.c \
weechat-perl.h \
weechat-perl-api.c
weechat-perl-api.c \
weechat-perl-api.h
perl_la_LDFLAGS = -module
perl_la_LIBADD = ../lib_weechat_plugins_scripts.la $(PERL_LFLAGS)
File diff suppressed because it is too large Load Diff
@@ -20,10 +20,6 @@
#ifndef __WEECHAT_PERL_API_H
#define __WEECHAT_PERL_API_H 1
#define weechat_plugin weechat_perl_plugin
extern struct t_weechat_plugin *weechat_perl_plugin;
extern void weechat_perl_xs_init (pTHX);
#endif /* weechat-perl.h */
File diff suppressed because it is too large Load Diff
-1
View File
@@ -21,7 +21,6 @@
#define __WEECHAT_PERL_H 1
#include "../../weechat-plugin.h"
#include "../script.h"
#define weechat_plugin weechat_perl_plugin
+4 -1
View File
@@ -20,6 +20,9 @@ libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = python.la
python_la_SOURCES = python.c
python_la_SOURCES = weechat-python.c \
weechat-python.h \
weechat-python-api.c \
weechat-python-api.h
python_la_LDFLAGS = -module
python_la_LIBADD = ../lib_weechat_plugins_scripts.la $(PYTHON_LFLAGS)
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,25 @@
/*
* Copyright (c) 2003-2008 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef __WEECHAT_PYTHON_API_H
#define __WEECHAT_PYTHON_API_H 1
extern PyMethodDef weechat_python_funcs[];
#endif /* weechat-python.h */
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,36 @@
/*
* Copyright (c) 2003-2008 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef __WEECHAT_PYTHON_H
#define __WEECHAT_PYTHON_H 1
#include "../../weechat-plugin.h"
#define weechat_plugin weechat_python_plugin
extern struct t_weechat_plugin *weechat_python_plugin;
extern struct t_plugin_script *python_scripts;
extern struct t_plugin_script *python_current_script;
extern char *python_current_script_filename;
extern void * weechat_python_exec (struct t_plugin_script *script,
int ret_type, char *function, char **argv);
#endif /* weechat-perl.h */
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
-2
View File
@@ -46,8 +46,6 @@ script_config_read (struct t_weechat_plugin *weechat_plugin)
{
char *string;
weechat_printf (NULL, "script_config_read");
string = weechat_config_get_plugin (SCRIPT_OPTION_CHECK_LICENSE);
if (!string)
{