]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Moved enum iostream_rawlog_flags to public iostream-rawlog.h
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 12 Apr 2016 18:22:48 +0000 (21:22 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 12 Apr 2016 18:22:48 +0000 (21:22 +0300)
This allows using [io]stream-rawlog.h APIs directly.

src/lib/iostream-rawlog-private.h
src/lib/iostream-rawlog.h

index 9da3736907874796f434d79d2aeb693474bea129..9a409e0179e10859557266fcc076111f23249fe1 100644 (file)
@@ -1,13 +1,9 @@
 #ifndef IOSTREAM_RAWLOG_PRIVATE_H
 #define IOSTREAM_RAWLOG_PRIVATE_H
 
-#define IOSTREAM_RAWLOG_MAX_PREFIX_LEN 3
+#include "iostream-rawlog.h"
 
-enum iostream_rawlog_flags {
-       IOSTREAM_RAWLOG_FLAG_AUTOCLOSE  = 0x01,
-       IOSTREAM_RAWLOG_FLAG_BUFFERED   = 0x02,
-       IOSTREAM_RAWLOG_FLAG_TIMESTAMP  = 0x04
-};
+#define IOSTREAM_RAWLOG_MAX_PREFIX_LEN 3
 
 struct rawlog_iostream {
        struct iostream_private *iostream;
index 26ff592665afede7ac2ea61a625dffd2656ebb04..e90f9c0f12811184cd065d260b00e667f96e0c6f 100644 (file)
@@ -1,6 +1,12 @@
 #ifndef IOSTREAM_RAWLOG_H
 #define IOSTREAM_RAWLOG_H
 
+enum iostream_rawlog_flags {
+       IOSTREAM_RAWLOG_FLAG_AUTOCLOSE  = 0x01,
+       IOSTREAM_RAWLOG_FLAG_BUFFERED   = 0x02,
+       IOSTREAM_RAWLOG_FLAG_TIMESTAMP  = 0x04
+};
+
 /* Create rawlog *.in and *.out files to the given directory. */
 int ATTR_NOWARN_UNUSED_RESULT
 iostream_rawlog_create(const char *dir, struct istream **input,