ekg2
GIT master
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
25
PyObject *
python_build_session
(
char
*
name
);
26
PyObject *
python_build_window_id
(
int
id
);
27
PyObject *
python_build_window_w
(
window_t
*w);
28
PyObject *
ekg_cmd_command_bind
(PyObject *
self
, PyObject *args);
29
PyObject *
ekg_cmd_command
(PyObject *
self
, PyObject *args);
30
PyObject *
ekg_cmd_debug
(PyObject *
self
, PyObject *args);
31
PyObject *
ekg_cmd_echo
(PyObject *
self
, PyObject *args);
32
PyObject *
ekg_cmd_handler_bind
(PyObject *
self
, PyObject *args);
33
PyObject *
ekg_cmd_plugin_get
(PyObject *
self
, PyObject *args);
34
PyObject *
ekg_cmd_plugins
(PyObject *
self
, PyObject *args);
35
PyObject *
ekg_cmd_printf
(PyObject *
self
, PyObject *pyargs);
36
PyObject *
ekg_cmd_session_current
(PyObject *
self
, PyObject *args);
37
PyObject *
ekg_cmd_session_get
(PyObject *
self
, PyObject *args);
38
PyObject *
ekg_cmd_sessions
(PyObject *
self
, PyObject *args);
39
PyObject *
ekg_cmd_timer_bind
(PyObject *
self
, PyObject * args);
40
PyObject *
ekg_cmd_variable_add
(PyObject *
self
, PyObject * args);
41
PyObject *
ekg_cmd_watch_add
(PyObject *
self
, PyObject *args);
42
PyObject *
ekg_cmd_window_current
(PyObject *
self
, PyObject *args);
43
PyObject *
ekg_cmd_window_get
(PyObject *
self
, PyObject *args);
44
PyObject *
ekg_cmd_window_new
(PyObject *
self
, PyObject *args);
45
PyObject *
ekg_cmd_windows
(PyObject *
self
, PyObject *args);
46
47
52
staticforward PyMethodDef
ekg_methods
[] = {
53
{
"command_bind"
,
ekg_cmd_command_bind
, METH_VARARGS,
"Bind function with command"
},
54
{
"command"
,
ekg_cmd_command
, METH_VARARGS,
"Execute command"
},
55
{
"debug"
,
ekg_cmd_debug
, METH_VARARGS,
"Log debug data"
},
56
{
"echo"
,
ekg_cmd_echo
, METH_VARARGS,
"Print string to current window"
},
57
{
"handler_bind"
,
ekg_cmd_handler_bind
, METH_VARARGS,
"Bind handler function"
},
58
{
"plugin_get"
,
ekg_cmd_plugin_get
, METH_VARARGS,
"Return plugin object"
},
59
{
"plugins"
,
ekg_cmd_plugins
, METH_VARARGS,
"Return list of plugins"
},
60
{
"printf"
,
ekg_cmd_printf
, METH_VARARGS,
"Print formatted string"
},
61
{
"session_current"
,
ekg_cmd_session_current
, METH_VARARGS,
"Return current session object"
},
62
{
"session_get"
,
ekg_cmd_session_get
, METH_VARARGS,
"Return session object"
},
63
{
"sessions"
,
ekg_cmd_sessions
, METH_VARARGS,
"Return list of sessions"
},
64
{
"timer_bind"
,
ekg_cmd_timer_bind
, METH_VARARGS,
"Add timer function"
},
65
{
"variable_add"
,
ekg_cmd_variable_add
, METH_VARARGS,
"Add variable with optional handler"
},
66
{
"watch_add"
,
ekg_cmd_watch_add
, METH_VARARGS,
"Create descriptor watch"
},
67
{
"window_current"
,
ekg_cmd_window_current
, METH_VARARGS,
"Return current window object"
},
68
{
"window_get"
,
ekg_cmd_window_get
, METH_VARARGS,
"Return window with given name"
},
69
{
"window_new"
,
ekg_cmd_window_new
, METH_VARARGS,
"Create window"
},
70
{
"windows"
,
ekg_cmd_windows
, METH_VARARGS,
"Return list of windows"
},
71
{
NULL
,
NULL
, 0, NULL }
72
};
73
74
75
#endif
76
77
/*
78
* Local Variables:
79
* mode: c
80
* c-file-style: "k&r"
81
* c-basic-offset: 8
82
* indent-tabs-mode: t
83
* End:
84
* vim: sts=8 sw=8
85
*/
Wygenerowano Wt, 29 paź 2013 20:17:04 dla ekg2 programem
1.8.4