git » libjio » commit cdefccb

Move disk constants to an internal header

author Alberto Bertogli
2009-04-14 02:49:21 UTC
committer Alberto Bertogli
2009-04-14 02:49:21 UTC
parent 8072a14aa69d5cf4770f389acb88b8711717de22

Move disk constants to an internal header

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

libjio/libjio.h +0 -4
libjio/trans.h +4 -0

diff --git a/libjio/libjio.h b/libjio/libjio.h
index e922791..8819159 100644
--- a/libjio/libjio.h
+++ b/libjio/libjio.h
@@ -121,10 +121,6 @@ FILE *jfsopen(struct jfs *stream, const char *mode);
 #define J_ROLLBACKING	32	/* mark a transaction as rollbacking */
 #define J_RDONLY	64	/* mark a file as read-only */
 
-/* disk constants */
-#define J_DISKHEADSIZE	 12	/* length of disk_header */
-#define J_DISKOPHEADSIZE 16	/* length of disk_operation header */
-
 /* jfsck constants (return values) */
 #define J_ESUCCESS	0	/* success - shouldn't be used */
 #define J_ENOENT	-1	/* no such file */
diff --git a/libjio/trans.h b/libjio/trans.h
index 954ec62..94ae9b7 100644
--- a/libjio/trans.h
+++ b/libjio/trans.h
@@ -40,6 +40,10 @@ struct disk_operation {
 	char *prevdata;		/* previous data for rollback */
 };
 
+/* disk constants */
+#define J_DISKHEADSIZE	 12	/* length of disk_header */
+#define J_DISKOPHEADSIZE 16	/* length of disk_operation header */
+
 
 #endif