s3-includes: move enum flush_reason_enum to smb.h
authorGünther Deschner <gd@samba.org>
Tue, 3 May 2011 14:25:20 +0000 (16:25 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 3 May 2011 19:03:47 +0000 (21:03 +0200)
Guenther

source3/include/includes.h
source3/include/smb.h

index 503299842bc4befdd0a7442af48d93db20390807..6be6b0113317909a1a4dc631df8fab0371aebf69 100644 (file)
@@ -542,22 +542,6 @@ typedef char fstring[FSTRING_LEN];
 #include "../lib/util/smb_threads.h"
 #include "../lib/util/smb_threads_internal.h"
 
-/*
- * Reasons for cache flush.
- */
-
-enum flush_reason_enum {
-    SEEK_FLUSH,
-    READ_FLUSH,
-    WRITE_FLUSH,
-    READRAW_FLUSH,
-    OPLOCK_RELEASE_FLUSH,
-    CLOSE_FLUSH,
-    SYNC_FLUSH,
-    SIZECHANGE_FLUSH,
-    /* NUM_FLUSH_REASONS must remain the last value in the enumeration. */
-    NUM_FLUSH_REASONS};
-
 /***** prototypes *****/
 #ifndef NO_PROTO_H
 #include "proto.h"
index 827a9db018d677410be951db34cdade75de2ec7b..57de387661afde6c36144f61c99120eca136dd08 100644 (file)
@@ -1701,4 +1701,20 @@ struct deferred_open_record;
 /* Used inside aio code. */
 struct aio_extra;
 
+/*
+ * Reasons for cache flush.
+ */
+
+enum flush_reason_enum {
+    SEEK_FLUSH,
+    READ_FLUSH,
+    WRITE_FLUSH,
+    READRAW_FLUSH,
+    OPLOCK_RELEASE_FLUSH,
+    CLOSE_FLUSH,
+    SYNC_FLUSH,
+    SIZECHANGE_FLUSH,
+    /* NUM_FLUSH_REASONS must remain the last value in the enumeration. */
+    NUM_FLUSH_REASONS};
+
 #endif /* _SMB_H */