summaryrefslogtreecommitdiff
path: root/libmailbox/mailbox.h
diff options
context:
space:
mode:
authorJeff Bailey <jbailey@gnu.org>1999-09-11 22:58:21 +0000
committerJeff Bailey <jbailey@gnu.org>1999-09-11 22:58:21 +0000
commit759a29ba3bff2db376a068f90f7e9ede5896a249 (patch)
treef8978993f6bad674bf0d042302010506022a2b53 /libmailbox/mailbox.h
parentaaa222bbc4368755bc3e88fee1cf006613f7afe9 (diff)
downloadmailutils-759a29ba3bff2db376a068f90f7e9ede5896a249.tar.gz
mailutils-759a29ba3bff2db376a068f90f7e9ede5896a249.tar.bz2
Imported sourcesstartgnu
Diffstat (limited to 'libmailbox/mailbox.h')
-rw-r--r--libmailbox/mailbox.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/libmailbox/mailbox.h b/libmailbox/mailbox.h
new file mode 100644
index 000000000..05b7e32ea
--- /dev/null
+++ b/libmailbox/mailbox.h
@@ -0,0 +1,47 @@
+/* copyright and license info go here */
+
+#ifndef _MAILBOX_H
+#define _MAILBOX_H 1
+
+#ifndef __P
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+#define __P(args) args
+#else
+#define __P(args) ()
+#endif
+#endif /*!__P */
+
+/* These need to be documented */
+#define mbox_close(m) m->_close(m)
+#define mbox_delete(m,n) m->_delete(m,n)
+#define mbox_undelete(m,n) m->_undelete(m,n)
+#define mbox_expunge(m) m->_expunge(m)
+#define mbox_is_deleted(m,n) m->_is_deleted(m,n)
+#define mbox_add_message(m,s) m->_add_message(m,s)
+#define mbox_get_body(m,n) m->_get_body(m,n)
+#define mbox_get_header(m,n) m->_get_header(m,n)
+
+typedef struct _mailbox
+ {
+ /* Data */
+ char *name;
+ int messages;
+ int num_deleted;
+ int *sizes;
+ void *_data;
+
+ /* Functions */
+ int (*_close) __P ((struct _mailbox *));
+ int (*_delete) __P ((struct _mailbox *, int));
+ int (*_undelete) __P ((struct _mailbox *, int));
+ int (*_expunge) __P ((struct _mailbox *));
+ int (*_add_message) __P ((struct _mailbox *, char *));
+ int (*_is_deleted) __P ((struct _mailbox *, int));
+ char *(*_get_body) __P ((struct _mailbox *, int));
+ char *(*_get_header) __P ((struct _mailbox *, int));
+ }
+mailbox;
+
+mailbox *mbox_open __P ((char *name));
+
+#endif

Return to:

Send suggestions and report system problems to the System administrator.