[dovecot-cvs] dovecot/src/lib-storage/register .cvsignore, 1.1, 1.2 Makefile.am, 1.3, 1.4

tss at dovecot.org tss at dovecot.org
Thu Nov 16 00:16:56 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/register
In directory talvi:/tmp/cvs-serv25364/src/lib-storage/register

Modified Files:
	.cvsignore Makefile.am 
Log Message:
Initial code for separation of mailbox accessing and directory layout
handling. It's not yet possible to change the default layouts though.



Index: .cvsignore
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/register/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- .cvsignore	4 Dec 2002 18:28:38 -0000	1.1
+++ .cvsignore	16 Nov 2006 00:16:43 -0000	1.2
@@ -7,3 +7,4 @@
 Makefile.in
 so_locations
 mail-storage-register.c
+mailbox-list-register.c

Index: Makefile.am
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/register/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Makefile.am	20 Oct 2004 23:06:04 -0000	1.3
+++ Makefile.am	16 Nov 2006 00:16:43 -0000	1.4
@@ -3,6 +3,8 @@
 BUILT_SOURCES = mail-storage-register.c
 mail_storages = @mail_storages@
 
+mailbox_list_drivers = maildir fs
+
 mail-storage-register.c: Makefile
 	rm -f $@
 	echo '/* this file automatically generated by Makefile */' >$@
@@ -17,15 +19,30 @@
 	done
 	echo '}' >>$@
 
+mailbox-list-register.c: Makefile
+	rm -f $@
+	echo '/* this file automatically generated by Makefile */' >$@
+	echo '#include "lib.h"' >>$@
+	echo '#include "mailbox-list.h"' >>$@
+	for i in $(mailbox_list_drivers) ; do \
+		echo "extern struct mailbox_list $${i}_mailbox_list;" >>$@ ; \
+	done
+	echo 'void mailbox_list_register_all(void) {' >>$@
+	for i in $(mailbox_list_drivers) ; do \
+		echo "mailbox_list_register(&$${i}_mailbox_list);" >>$@ ; \
+	done
+	echo '}' >>$@
+
 AM_CPPFLAGS = \
 	-I$(top_srcdir)/src/lib \
 	-I$(top_srcdir)/src/lib-mail \
 	-I$(top_srcdir)/src/lib-storage
 
 libstorage_register_a_SOURCES = \
-	mail-storage-register.c
+	mail-storage-register.c \
+	mailbox-list-register.c
 
 DISTFILES = $(DIST_COMMON) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
 
 distclean-generic:
-	rm -f Makefile mail-storage-register.c
+	rm -f Makefile mail-storage-register.c mailbox-list-register.c



More information about the dovecot-cvs mailing list