Make buffy a lua package as well.
[apps/madmutt.git] / buffy.h
diff --git a/buffy.h b/buffy.h
index fdd2ca3..625ade8 100644 (file)
--- a/buffy.h
+++ b/buffy.h
@@ -35,15 +35,14 @@ DO_DELETE(BUFFY, buffy);
 DO_ARRAY_TYPE(BUFFY, buffy);
 DO_ARRAY_FUNCS(BUFFY, buffy, buffy_delete);
 
+#include "buffy.li"
+
 /* folders with incomming mail (via mailboxes command) */
-WHERE buffy_array Incoming;
-WHERE short BuffyTimeout INITVAL (3);
-extern time_t BuffyDoneTime;    /* last time we knew for sure how much mail there was */
+extern buffy_array Incoming;
 
-/* looks up a path in Incoming list (returns index) */
 int buffy_lookup (const char*);
-/* handles mailboxes commands */
-int buffy_parse_mailboxes (BUFFER*, BUFFER*, unsigned long, BUFFER*);
+void buffy_do_mailboxes(const char *s, int add);
+
 /* from given path, gets next mailbox in Incoming with new mail */
 void buffy_next (char*, size_t);
 /* checks mailboxes for new mail (returns number) */