Idź do dokumentacji tego pliku.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __PYTHON_CONFIG_H_
00021 #define __PYTHON_CONFIG_H_
00022
00023 #include <Python.h>
00024
00025 typedef struct
00026 {
00027 PyObject_HEAD
00028 } ekg_configObj;
00029
00030 void ekg_config_dealloc(PyObject *o);
00031 int ekg_config_len(ekg_configObj *self);
00032 PyObject* ekg_config_get(ekg_configObj * self, PyObject * key);
00033 PyObject* ekg_config_set(ekg_configObj * self, PyObject* key, PyObject* value);
00034
00035 static PyMappingMethods _config_mapping = {
00036 (inquiry) ekg_config_len,
00037 (binaryfunc) ekg_config_get,
00038 (objobjargproc) ekg_config_set
00039 };
00040
00041 static PyTypeObject ekg_config_type = {
00042 PyObject_HEAD_INIT(NULL)
00043 0,
00044 "config",
00045 sizeof(PyObject),
00046 0,
00047 ekg_config_dealloc,
00048 0,
00049 0,
00050 0,
00051 0,
00052 0,
00053 0,
00054 0,
00055 &_config_mapping
00056 };
00057
00058 #endif
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068