Python plugin: Improve error reporting during plugin init
[claws.git] / src / plugins / python / messageinfotype.h
index 1beb37ac98227735a3dbf44bdac8441380efb736..df3c217b1bf775e0ee002e2f1de3490b7aa0b1a8 100644 (file)
 #ifndef MESSAGEINFOTYPE_H
 #define MESSAGEINFOTYPE_H
 
 #ifndef MESSAGEINFOTYPE_H
 #define MESSAGEINFOTYPE_H
 
+#include <glib.h>
 #include <Python.h>
 
 #include "procmsg.h"
 
 #include <Python.h>
 
 #include "procmsg.h"
 
-#ifndef PyMODINIT_FUNC  /* declarations for DLL import/export */
-#define PyMODINIT_FUNC void
-#endif
-
-PyMODINIT_FUNC initmessageinfo(PyObject *module);
+gboolean cmpy_add_messageinfo(PyObject *module);
 
 PyObject* clawsmail_messageinfo_new(MsgInfo *msginfo);
 MsgInfo* clawsmail_messageinfo_get_msginfo(PyObject *self);
 
 PyObject* clawsmail_messageinfo_new(MsgInfo *msginfo);
 MsgInfo* clawsmail_messageinfo_get_msginfo(PyObject *self);