Clean all ‘… warning: "_POSIX_C_SOURCE" redefined’
[claws.git] / src / plugins / python / mailboxtype.c
index ffb42f0..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 {
@@ -133,3 +133,18 @@ PyObject* clawsmail_mailbox_new(Folder *folder)
   ff->folder = folder;
   return (PyObject*)ff;
 }
+
+Folder* clawsmail_mailbox_get_folder(PyObject *self)
+{
+  return ((clawsmail_MailboxObject*)self)->folder;
+}
+
+PyTypeObject* clawsmail_mailbox_get_type_object()
+{
+  return &clawsmail_MailboxType;
+}
+
+gboolean clawsmail_mailbox_check(PyObject *self)
+{
+  return (PyObject_TypeCheck(self, &clawsmail_MailboxType) != 0);
+}