dovecot-2.1: Renamed lib/*-internal.h files to lib/*-private.h f...

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 21 14:40:48 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/cf77e448295c
changeset: 13529:cf77e448295c
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 21 13:56:13 2011 +0300
description:
Renamed lib/*-internal.h files to lib/*-private.h for consistency.

diffstat:

 src/lib-fs/ostream-cmp.c                      |   2 +-
 src/lib-mail/istream-dot.c                    |   2 +-
 src/lib-mail/istream-header-filter.c          |   2 +-
 src/lib-ssl-iostream/istream-openssl.c        |   2 +-
 src/lib-ssl-iostream/ostream-openssl.c        |   2 +-
 src/lib-storage/index/istream-attachment.c    |   2 +-
 src/lib-storage/index/istream-mail-stats.c    |   2 +-
 src/lib-storage/index/mbox/istream-raw-mbox.c |   2 +-
 src/lib-test/test-common.c                    |   2 +-
 src/lib/Makefile.am                           |   8 +-
 src/lib/ioloop-epoll.c                        |   2 +-
 src/lib/ioloop-internal.h                     |  92 ---------------------------
 src/lib/ioloop-iolist.c                       |   2 +-
 src/lib/ioloop-kqueue.c                       |   2 +-
 src/lib/ioloop-notify-dn.c                    |   2 +-
 src/lib/ioloop-notify-fd.c                    |   2 +-
 src/lib/ioloop-notify-inotify.c               |   2 +-
 src/lib/ioloop-notify-kqueue.c                |   2 +-
 src/lib/ioloop-notify-none.c                  |   2 +-
 src/lib/ioloop-poll.c                         |   2 +-
 src/lib/ioloop-private.h                      |  92 +++++++++++++++++++++++++++
 src/lib/ioloop-select.c                       |   2 +-
 src/lib/ioloop.c                              |   2 +-
 src/lib/iostream-internal.h                   |  26 -------
 src/lib/iostream-private.h                    |  26 +++++++
 src/lib/iostream.c                            |   2 +-
 src/lib/istream-base64-encoder.c              |   2 +-
 src/lib/istream-concat.c                      |   2 +-
 src/lib/istream-crlf.c                        |   2 +-
 src/lib/istream-data.c                        |   2 +-
 src/lib/istream-file.c                        |   2 +-
 src/lib/istream-internal.h                    |  61 -----------------
 src/lib/istream-limit.c                       |   2 +-
 src/lib/istream-mmap.c                        |   2 +-
 src/lib/istream-private.h                     |  61 +++++++++++++++++
 src/lib/istream-seekable.c                    |   2 +-
 src/lib/istream-tee.c                         |   2 +-
 src/lib/istream.c                             |   2 +-
 src/lib/ostream-buffer.c                      |   2 +-
 src/lib/ostream-file.c                        |   4 +-
 src/lib/ostream-internal.h                    |  41 ------------
 src/lib/ostream-private.h                     |  41 ++++++++++++
 src/lib/ostream.c                             |   2 +-
 src/lib/test-istream-base64-encoder.c         |   2 +-
 src/lib/test-istream-concat.c                 |   2 +-
 src/lib/test-istream-crlf.c                   |   2 +-
 src/lib/test-istream-seekable.c               |   2 +-
 src/lib/test-istream-tee.c                    |   2 +-
 src/plugins/zlib/istream-bzlib.c              |   2 +-
 src/plugins/zlib/istream-zlib.c               |   2 +-
 src/plugins/zlib/ostream-bzlib.c              |   2 +-
 src/plugins/zlib/ostream-zlib.c               |   2 +-
 52 files changed, 268 insertions(+), 268 deletions(-)

diffs (truncated from 1023 to 300 lines):

diff -r 1d8009c7b67e -r cf77e448295c src/lib-fs/ostream-cmp.c
--- a/src/lib-fs/ostream-cmp.c	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib-fs/ostream-cmp.c	Wed Sep 21 13:56:13 2011 +0300
@@ -2,7 +2,7 @@
 
 #include "lib.h"
 #include "istream.h"
-#include "ostream-internal.h"
+#include "ostream-private.h"
 #include "ostream-cmp.h"
 
 struct cmp_ostream {
diff -r 1d8009c7b67e -r cf77e448295c src/lib-mail/istream-dot.c
--- a/src/lib-mail/istream-dot.c	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib-mail/istream-dot.c	Wed Sep 21 13:56:13 2011 +0300
@@ -1,7 +1,7 @@
 /* Copyright (c) 2007-2011 Dovecot authors, see the included COPYING file */
 
 #include "lib.h"
-#include "istream-internal.h"
+#include "istream-private.h"
 #include "istream-dot.h"
 
 struct dot_istream {
diff -r 1d8009c7b67e -r cf77e448295c src/lib-mail/istream-header-filter.c
--- a/src/lib-mail/istream-header-filter.c	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib-mail/istream-header-filter.c	Wed Sep 21 13:56:13 2011 +0300
@@ -3,7 +3,7 @@
 #include "lib.h"
 #include "array.h"
 #include "message-parser.h"
-#include "istream-internal.h"
+#include "istream-private.h"
 #include "istream-header-filter.h"
 
 #include <stdlib.h>
diff -r 1d8009c7b67e -r cf77e448295c src/lib-ssl-iostream/istream-openssl.c
--- a/src/lib-ssl-iostream/istream-openssl.c	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib-ssl-iostream/istream-openssl.c	Wed Sep 21 13:56:13 2011 +0300
@@ -1,7 +1,7 @@
 /* Copyright (c) 2009 Dovecot authors, see the included COPYING file */
 
 #include "lib.h"
-#include "istream-internal.h"
+#include "istream-private.h"
 #include "iostream-openssl.h"
 
 struct ssl_istream {
diff -r 1d8009c7b67e -r cf77e448295c src/lib-ssl-iostream/ostream-openssl.c
--- a/src/lib-ssl-iostream/ostream-openssl.c	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib-ssl-iostream/ostream-openssl.c	Wed Sep 21 13:56:13 2011 +0300
@@ -2,7 +2,7 @@
 
 #include "lib.h"
 #include "buffer.h"
-#include "ostream-internal.h"
+#include "ostream-private.h"
 #include "iostream-openssl.h"
 
 struct ssl_ostream {
diff -r 1d8009c7b67e -r cf77e448295c src/lib-storage/index/istream-attachment.c
--- a/src/lib-storage/index/istream-attachment.c	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib-storage/index/istream-attachment.c	Wed Sep 21 13:56:13 2011 +0300
@@ -1,7 +1,7 @@
 /* Copyright (c) 2003-2011 Dovecot authors, see the included COPYING file */
 
 #include "lib.h"
-#include "istream-internal.h"
+#include "istream-private.h"
 #include "istream-attachment.h"
 
 struct attachment_istream {
diff -r 1d8009c7b67e -r cf77e448295c src/lib-storage/index/istream-mail-stats.c
--- a/src/lib-storage/index/istream-mail-stats.c	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib-storage/index/istream-mail-stats.c	Wed Sep 21 13:56:13 2011 +0300
@@ -2,7 +2,7 @@
 
 #include "lib.h"
 #include "mail-storage-private.h"
-#include "istream-internal.h"
+#include "istream-private.h"
 #include "istream-mail-stats.h"
 
 struct mail_stats_istream {
diff -r 1d8009c7b67e -r cf77e448295c src/lib-storage/index/mbox/istream-raw-mbox.c
--- a/src/lib-storage/index/mbox/istream-raw-mbox.c	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib-storage/index/mbox/istream-raw-mbox.c	Wed Sep 21 13:56:13 2011 +0300
@@ -2,7 +2,7 @@
 
 #include "lib.h"
 #include "buffer.h"
-#include "istream-internal.h"
+#include "istream-private.h"
 #include "istream-raw-mbox.h"
 #include "mbox-from.h"
 
diff -r 1d8009c7b67e -r cf77e448295c src/lib-test/test-common.c
--- a/src/lib-test/test-common.c	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib-test/test-common.c	Wed Sep 21 13:56:13 2011 +0300
@@ -1,7 +1,7 @@
 /* Copyright (c) 2007-2011 Dovecot authors, see the included COPYING file */
 
 #include "lib.h"
-#include "istream-internal.h"
+#include "istream-private.h"
 #include "test-common.h"
 
 #include <stdio.h>
diff -r 1d8009c7b67e -r cf77e448295c src/lib/Makefile.am
--- a/src/lib/Makefile.am	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib/Makefile.am	Wed Sep 21 13:56:13 2011 +0300
@@ -161,17 +161,17 @@
 	hostpid.h \
 	imem.h \
 	ipwd.h \
-	iostream-internal.h \
+	iostream-private.h \
 	istream.h \
 	istream-base64-encoder.h \
 	istream-concat.h \
 	istream-crlf.h \
-	istream-internal.h \
+	istream-private.h \
 	istream-seekable.h \
 	istream-tee.h \
 	ioloop.h \
 	ioloop-iolist.h \
-	ioloop-internal.h \
+	ioloop-private.h \
 	ioloop-notify-fd.h \
 	lib.h \
 	lib-signals.h \
@@ -188,7 +188,7 @@
 	network.h \
 	nfs-workarounds.h \
 	ostream.h \
-	ostream-internal.h \
+	ostream-private.h \
 	primes.h \
 	printf-format-fix.h \
 	process-title.h \
diff -r 1d8009c7b67e -r cf77e448295c src/lib/ioloop-epoll.c
--- a/src/lib/ioloop-epoll.c	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib/ioloop-epoll.c	Wed Sep 21 13:56:13 2011 +0300
@@ -9,7 +9,7 @@
 #include "lib.h"
 #include "array.h"
 #include "fd-close-on-exec.h"
-#include "ioloop-internal.h"
+#include "ioloop-private.h"
 #include "ioloop-iolist.h"
 
 #ifdef IOLOOP_EPOLL
diff -r 1d8009c7b67e -r cf77e448295c src/lib/ioloop-internal.h
--- a/src/lib/ioloop-internal.h	Mon Sep 19 17:10:11 2011 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,92 +0,0 @@
-#ifndef IOLOOP_INTERNAL_H
-#define IOLOOP_INTERNAL_H
-
-#include "priorityq.h"
-#include "ioloop.h"
-
-#ifndef IOLOOP_INITIAL_FD_COUNT
-#  define IOLOOP_INITIAL_FD_COUNT 128
-#endif
-
-struct ioloop {
-        struct ioloop *prev;
-
-	struct ioloop_context *cur_ctx;
-
-	struct io_file *io_files;
-	struct io_file *next_io_file;
-	struct priorityq *timeouts;
-
-        struct ioloop_handler_context *handler_context;
-        struct ioloop_notify_handler_context *notify_handler_context;
-	unsigned int max_fd_count;
-
-	io_loop_time_moved_callback_t *time_moved_callback;
-	time_t next_max_time;
-
-	unsigned int running:1;
-};
-
-struct io {
-	enum io_condition condition;
-
-	io_callback_t *callback;
-        void *context;
-
-	struct ioloop *ioloop;
-	struct ioloop_context *ctx;
-};
-
-struct io_file {
-	struct io io;
-
-	/* use a doubly linked list so that io_remove() is quick */
-	struct io_file *prev, *next;
-
-	int refcount;
-	int fd;
-};
-
-struct timeout {
-	struct priorityq_item item;
-
-        unsigned int msecs;
-	struct timeval next_run;
-
-	timeout_callback_t *callback;
-        void *context;
-
-	struct ioloop *ioloop;
-	struct ioloop_context *ctx;
-};
-
-struct ioloop_context_callback {
-	io_callback_t *activate;
-	io_callback_t *deactivate;
-	void *context;
-};
-
-struct ioloop_context {
-	int refcount;
-	struct ioloop *ioloop;
-	ARRAY_DEFINE(callbacks, struct ioloop_context_callback);
-};
-
-int io_loop_get_wait_time(struct ioloop *ioloop, struct timeval *tv_r);
-void io_loop_handle_timeouts(struct ioloop *ioloop);
-void io_loop_call_io(struct io *io);
-
-/* I/O handler calls */
-void io_loop_handle_add(struct io_file *io);
-void io_loop_handle_remove(struct io_file *io, bool closed);
-
-void io_loop_handler_init(struct ioloop *ioloop, unsigned int initial_fd_count);
-void io_loop_handler_deinit(struct ioloop *ioloop);
-
-void io_loop_notify_remove(struct io *io);
-void io_loop_notify_handler_deinit(struct ioloop *ioloop);
-
-void io_loop_context_activate(struct ioloop_context *ctx);
-void io_loop_context_deactivate(struct ioloop_context *ctx);
-
-#endif
diff -r 1d8009c7b67e -r cf77e448295c src/lib/ioloop-iolist.c
--- a/src/lib/ioloop-iolist.c	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib/ioloop-iolist.c	Wed Sep 21 13:56:13 2011 +0300
@@ -5,7 +5,7 @@
  */
 
 #include "lib.h"
-#include "ioloop-internal.h"
+#include "ioloop-private.h"
 #include "ioloop-iolist.h"
 
 bool ioloop_iolist_add(struct io_list *list, struct io_file *io)
diff -r 1d8009c7b67e -r cf77e448295c src/lib/ioloop-kqueue.c
--- a/src/lib/ioloop-kqueue.c	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib/ioloop-kqueue.c	Wed Sep 21 13:56:13 2011 +0300
@@ -10,7 +10,7 @@
 
 #include "array.h"
 #include "fd-close-on-exec.h"
-#include "ioloop-internal.h"
+#include "ioloop-private.h"
 
 #include <unistd.h>
 #include <fcntl.h>
diff -r 1d8009c7b67e -r cf77e448295c src/lib/ioloop-notify-dn.c
--- a/src/lib/ioloop-notify-dn.c	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib/ioloop-notify-dn.c	Wed Sep 21 13:56:13 2011 +0300
@@ -7,7 +7,7 @@
 
 #ifdef IOLOOP_NOTIFY_DNOTIFY
 
-#include "ioloop-internal.h"
+#include "ioloop-private.h"
 #include "ioloop-notify-fd.h"
 #include "fd-set-nonblock.h"
 #include "fd-close-on-exec.h"
diff -r 1d8009c7b67e -r cf77e448295c src/lib/ioloop-notify-fd.c
--- a/src/lib/ioloop-notify-fd.c	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib/ioloop-notify-fd.c	Wed Sep 21 13:56:13 2011 +0300
@@ -1,7 +1,7 @@
 /* Copyright (c) 2007-2011 Dovecot authors, see the included COPYING file */
 
 #include "lib.h"
-#include "ioloop-internal.h"
+#include "ioloop-private.h"
 #include "ioloop-notify-fd.h"
 
 #if defined(IOLOOP_NOTIFY_DNOTIFY) || defined(IOLOOP_NOTIFY_INOTIFY)
diff -r 1d8009c7b67e -r cf77e448295c src/lib/ioloop-notify-inotify.c
--- a/src/lib/ioloop-notify-inotify.c	Mon Sep 19 17:10:11 2011 +0300
+++ b/src/lib/ioloop-notify-inotify.c	Wed Sep 21 13:56:13 2011 +0300


More information about the dovecot-cvs mailing list