Clean all ‘… warning: "_POSIX_C_SOURCE" redefined’
[claws.git] / src / plugins / python / mailboxtype.c
index 3cc6c26..a7493ca 100644 (file)
 #  include "claws-features.h"
 #endif
 
+#include "mailboxtype.h"
+
 #include <glib.h>
 #include <glib/gi18n.h>
 
-#include "mailboxtype.h"
-
 #include <structmember.h>
 
 typedef struct {
@@ -143,3 +143,8 @@ PyTypeObject* clawsmail_mailbox_get_type_object()
 {
   return &clawsmail_MailboxType;
 }
+
+gboolean clawsmail_mailbox_check(PyObject *self)
+{
+  return (PyObject_TypeCheck(self, &clawsmail_MailboxType) != 0);
+}