/*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrokdecode project.
*
* Copyright (C) 2012 Bert Vermeulen <bert@biot.com>
*
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "sigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
-#include "sigrokdecode-internal.h"
+#include "libsigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
+#include "libsigrokdecode-internal.h"
#include "config.h"
+/** @cond PRIVATE */
+
/* type_decoder.c */
extern SRD_PRIV PyTypeObject srd_Decoder_type;
extern SRD_PRIV PyTypeObject srd_logic_type;
/*
- * When initialized, a reference to this module inside the python interpreter
+ * When initialized, a reference to this module inside the Python interpreter
* lives here.
*/
SRD_PRIV PyObject *mod_sigrokdecode = NULL;
+/** @endcond */
+
static struct PyModuleDef sigrokdecode_module = {
PyModuleDef_HEAD_INIT,
.m_name = "sigrokdecode",
.m_size = -1,
};
-SRD_PRIV PyMODINIT_FUNC PyInit_sigrokdecode(void)
+/** @cond PRIVATE */
+/* FIXME: SRD_PRIV causes issues on MinGW. Investigate. */
+PyMODINIT_FUNC PyInit_sigrokdecode(void)
{
PyObject *mod;
- /* tp_new needs to be assigned here for compiler portability */
+ /* tp_new needs to be assigned here for compiler portability. */
srd_Decoder_type.tp_new = PyType_GenericNew;
if (PyType_Ready(&srd_Decoder_type) < 0)
return NULL;
return mod;
}
+/** @endcond */