1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 03:25: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
+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 */