diff options
author | Bert Vermeulen <bert@biot.com> | 2012-01-15 03:43:01 +0100 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2012-01-15 04:03:42 +0100 |
commit | f8e458577f72a5b13fa83b6cd3675a7eefc83072 (patch) | |
tree | 533cfca0385210e8640991252d70778b16168b16 /module_sigrokdecode.c | |
parent | 8892c76856f22acf6eafc66c6a5f86ab7cb8bddb (diff) | |
download | libsigrokdecode-f8e458577f72a5b13fa83b6cd3675a7eefc83072.tar.gz libsigrokdecode-f8e458577f72a5b13fa83b6cd3675a7eefc83072.zip |
move srd_Decoder to sigrokdecode.h, and rename it in line with srd_logic
Diffstat (limited to 'module_sigrokdecode.c')
-rw-r--r-- | module_sigrokdecode.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/module_sigrokdecode.c b/module_sigrokdecode.c index 426cf49..a18583b 100644 --- a/module_sigrokdecode.c +++ b/module_sigrokdecode.c @@ -187,23 +187,19 @@ static PyMethodDef Decoder_methods[] = { }; -typedef struct { - PyObject_HEAD -} sigrok_Decoder_object; - -static PyTypeObject srd_Decoder_type = { +PyTypeObject srd_Decoder_type = { PyVarObject_HEAD_INIT(NULL, 0) .tp_name = "sigrokdecode.Decoder", - .tp_basicsize = sizeof(sigrok_Decoder_object), + .tp_basicsize = sizeof(srd_Decoder), .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, - .tp_doc = "Sigrok Decoder object", + .tp_doc = "Sigrok Decoder base class", .tp_methods = Decoder_methods, }; static struct PyModuleDef sigrokdecode_module = { PyModuleDef_HEAD_INIT, .m_name = "sigrokdecode", - .m_doc = "sigrokdecode base class", + .m_doc = "sigrokdecode module", .m_size = -1, .m_methods = no_methods, }; |