ekg2
Strona główna
Dodatkowe strony
Moduły
Struktury Danych
Pliki
Lista plików
Globalne
All
Struktury Danych
Pliki
Funkcje
Zmienne
Definicje typów
Wyliczenia
Wartości wyliczeń
Definicje
Grupay
Strony
plugins
python
python-ekg.h
Idź do dokumentacji tego pliku.
1
/* $Id$ */
2
3
/*
4
* (C) Copyright 2004-2005 Leszek Krupiński <leafnode@pld-linux.org>
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License Version 2 as
8
* published by the Free Software Foundation.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
*/
19
20
#ifndef __PYTHON_EKG_H_
21
#define __PYTHON_EKG_H_
22
23
#include <Python.h>
24
#include <
ekg/windows.h
>
25
26
PyObject *
python_build_session
(
char
*
name
);
27
PyObject *
python_build_window_id
(
int
id
);
28
PyObject *
python_build_window_w
(
window_t
*w);
29
PyObject *
ekg_cmd_command_bind
(PyObject *
self
, PyObject *args);
30
PyObject *
ekg_cmd_command
(PyObject *
self
, PyObject *args);
31
PyObject *
ekg_cmd_debug
(PyObject *
self
, PyObject *args);
32
PyObject *
ekg_cmd_echo
(PyObject *
self
, PyObject *args);
33
PyObject *
ekg_cmd_handler_bind
(PyObject *
self
, PyObject *args);
34
PyObject *
ekg_cmd_plugin_get
(PyObject *
self
, PyObject *args);
35
PyObject *
ekg_cmd_plugins
(PyObject *
self
, PyObject *args);
36
PyObject *
ekg_cmd_printf
(PyObject *
self
, PyObject *pyargs);
37
PyObject *
ekg_cmd_session_current
(PyObject *
self
, PyObject *args);
38
PyObject *
ekg_cmd_session_get
(PyObject *
self
, PyObject *args);
39
PyObject *
ekg_cmd_sessions
(PyObject *
self
, PyObject *args);
40
PyObject *
ekg_cmd_timer_bind
(PyObject *
self
, PyObject * args);
41
PyObject *
ekg_cmd_variable_add
(PyObject *
self
, PyObject * args);
42
PyObject *
ekg_cmd_watch_add
(PyObject *
self
, PyObject *args);
43
PyObject *
ekg_cmd_window_current
(PyObject *
self
, PyObject *args);
44
PyObject *
ekg_cmd_window_get
(PyObject *
self
, PyObject *args);
45
PyObject *
ekg_cmd_window_new
(PyObject *
self
, PyObject *args);
46
PyObject *
ekg_cmd_windows
(PyObject *
self
, PyObject *args);
47
48
53
staticforward PyMethodDef
ekg_methods
[] = {
54
{
"command_bind"
,
ekg_cmd_command_bind
, METH_VARARGS,
"Bind function with command"
},
55
{
"command"
,
ekg_cmd_command
, METH_VARARGS,
"Execute command"
},
56
{
"debug"
,
ekg_cmd_debug
, METH_VARARGS,
"Log debug data"
},
57
{
"echo"
,
ekg_cmd_echo
, METH_VARARGS,
"Print string to current window"
},
58
{
"handler_bind"
,
ekg_cmd_handler_bind
, METH_VARARGS,
"Bind handler function"
},
59
{
"plugin_get"
,
ekg_cmd_plugin_get
, METH_VARARGS,
"Return plugin object"
},
60
{
"plugins"
,
ekg_cmd_plugins
, METH_VARARGS,
"Return list of plugins"
},
61
{
"printf"
,
ekg_cmd_printf
, METH_VARARGS,
"Print formatted string"
},
62
{
"session_current"
,
ekg_cmd_session_current
, METH_VARARGS,
"Return current session object"
},
63
{
"session_get"
,
ekg_cmd_session_get
, METH_VARARGS,
"Return session object"
},
64
{
"sessions"
,
ekg_cmd_sessions
, METH_VARARGS,
"Return list of sessions"
},
65
{
"timer_bind"
,
ekg_cmd_timer_bind
, METH_VARARGS,
"Add timer function"
},
66
{
"variable_add"
,
ekg_cmd_variable_add
, METH_VARARGS,
"Add variable with optional handler"
},
67
{
"watch_add"
,
ekg_cmd_watch_add
, METH_VARARGS,
"Create descriptor watch"
},
68
{
"window_current"
,
ekg_cmd_window_current
, METH_VARARGS,
"Return current window object"
},
69
{
"window_get"
,
ekg_cmd_window_get
, METH_VARARGS,
"Return window with given name"
},
70
{
"window_new"
,
ekg_cmd_window_new
, METH_VARARGS,
"Create window"
},
71
{
"windows"
,
ekg_cmd_windows
, METH_VARARGS,
"Return list of windows"
},
72
{
NULL
,
NULL
, 0, NULL }
73
};
74
75
76
#endif
77
78
/*
79
* Local Variables:
80
* mode: c
81
* c-file-style: "k&r"
82
* c-basic-offset: 8
83
* indent-tabs-mode: t
84
* End:
85
* vim: sts=8 sw=8
86
*/
Wygenerowano Śr, 10 paź 2012 05:11:36 dla ekg2 programem
1.8.1.1