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-config.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_CONFIG_H_
21
#define __PYTHON_CONFIG_H_
22
23
#include <Python.h>
24
25
typedef
struct
26
{
27
PyObject_HEAD
28
}
ekg_configObj
;
29
30
void
ekg_config_dealloc
(PyObject *o);
31
int
ekg_config_len
(
ekg_configObj
*
self
);
32
PyObject*
ekg_config_get
(
ekg_configObj
*
self
, PyObject * key);
33
PyObject*
ekg_config_set
(
ekg_configObj
*
self
, PyObject* key, PyObject* value);
34
35
static
PyMappingMethods
_config_mapping
= {
36
(inquiry)
ekg_config_len
,
37
(binaryfunc)
ekg_config_get
,
38
(objobjargproc)
ekg_config_set
39
};
40
41
static
PyTypeObject
ekg_config_type
= {
42
PyObject_HEAD_INIT(
NULL
)
43
0,
44
"config"
,
45
sizeof
(PyObject),
46
0,
47
ekg_config_dealloc
,
48
0,
49
0,
50
0,
51
0,
52
0,
53
0,
54
0,
55
&
_config_mapping
56
};
57
58
#endif
59
60
/*
61
* Local Variables:
62
* mode: c
63
* c-file-style: "k&r"
64
* c-basic-offset: 8
65
* indent-tabs-mode: t
66
* End:
67
* vim: sts=8 sw=8
68
*/
Wygenerowano So, 26 paź 2013 04:06:51 dla ekg2 programem
1.8.4