1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
/* $Id$ */
/*
* (C) Copyright 2004-2005 Leszek Krupiski <leafnode@pld-linux.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License Version 2 as
* published by the Free Software Foundation.
*
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __PYTHON_EKG_H_
#define __PYTHON_EKG_H_
#include <Python.h>
PyObject * python_build_session(char * name);
PyObject * python_build_window_id(int id);
PyObject * python_build_window_w(window_t *w);
PyObject * ekg_cmd_command_bind(PyObject *self, PyObject *args);
PyObject * ekg_cmd_command(PyObject *self, PyObject *args);
PyObject * ekg_cmd_debug(PyObject *self, PyObject *args);
PyObject * ekg_cmd_echo(PyObject *self, PyObject *args);
PyObject * ekg_cmd_handler_bind(PyObject *self, PyObject *args);
PyObject * ekg_cmd_plugin_get(PyObject *self, PyObject *args);
PyObject * ekg_cmd_plugins(PyObject *self, PyObject *args);
PyObject * ekg_cmd_printf(PyObject *self, PyObject *pyargs);
PyObject * ekg_cmd_session_current(PyObject *self, PyObject *args);
PyObject * ekg_cmd_session_get(PyObject *self, PyObject *args);
PyObject * ekg_cmd_sessions(PyObject *self, PyObject *args);
PyObject * ekg_cmd_timer_bind(PyObject * self, PyObject * args);
PyObject * ekg_cmd_variable_add(PyObject * self, PyObject * args);
PyObject * ekg_cmd_watch_add(PyObject *self, PyObject *args);
PyObject * ekg_cmd_window_current(PyObject *self, PyObject *args);
PyObject * ekg_cmd_window_get(PyObject *self, PyObject *args);
PyObject * ekg_cmd_window_new(PyObject *self, PyObject *args);
PyObject * ekg_cmd_windows(PyObject *self, PyObject *args);
/**
* metody moduu ekg
*/
staticforward PyMethodDef ekg_methods[] = {
{ "command_bind", ekg_cmd_command_bind, METH_VARARGS, "Bind function with command" },
{ "command", ekg_cmd_command, METH_VARARGS, "Execute command" },
{ "debug", ekg_cmd_debug, METH_VARARGS, "Log debug data" },
{ "echo", ekg_cmd_echo, METH_VARARGS, "Print string to current window" },
{ "handler_bind", ekg_cmd_handler_bind, METH_VARARGS, "Bind handler function" },
{ "plugin_get", ekg_cmd_plugin_get, METH_VARARGS, "Return plugin object" },
{ "plugins", ekg_cmd_plugins, METH_VARARGS, "Return list of plugins" },
{ "printf", ekg_cmd_printf, METH_VARARGS, "Print formatted string" },
{ "session_current", ekg_cmd_session_current, METH_VARARGS, "Return current session object" },
{ "session_get", ekg_cmd_session_get, METH_VARARGS, "Return session object" },
{ "sessions", ekg_cmd_sessions, METH_VARARGS, "Return list of sessions" },
{ "timer_bind", ekg_cmd_timer_bind, METH_VARARGS, "Add timer function" },
{ "variable_add", ekg_cmd_variable_add, METH_VARARGS, "Add variable with optional handler" },
{ "watch_add", ekg_cmd_watch_add, METH_VARARGS, "Create descriptor watch" },
{ "window_current", ekg_cmd_window_current, METH_VARARGS, "Return current window object" },
{ "window_get", ekg_cmd_window_get, METH_VARARGS, "Return window with given name" },
{ "window_new", ekg_cmd_window_new, METH_VARARGS, "Create window" },
{ "windows", ekg_cmd_windows, METH_VARARGS, "Return list of windows" },
{ NULL, NULL, 0, NULL }
};
#endif
/*
* Local Variables:
* mode: c
* c-file-style: "k&r"
* c-basic-offset: 8
* indent-tabs-mode: t
* End:
* vim: sts=8 sw=8
*/
|