btrfs-progs: move some common definitions to own header
authorDavid Sterba <dsterba@suse.com>
Wed, 25 Jan 2017 15:54:35 +0000 (16:54 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 8 Mar 2017 12:00:45 +0000 (13:00 +0100)
Start a header for various defines that are supposed to be used in any
context or subpart.

Signed-off-by: David Sterba <dsterba@suse.com>
common-defs.h [new file with mode: 0644]
utils.h

diff --git a/common-defs.h b/common-defs.h
new file mode 100644 (file)
index 0000000..adec9a9
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public
+ * License v2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 021110-1307, USA.
+ */
+
+#ifndef __BTRFS_COMMON_DEFS_H__
+#define __BTRFS_COMMON_DEFS_H__
+
+#define BTRFS_UUID_UNPARSED_SIZE       37
+
+#endif
diff --git a/utils.h b/utils.h
index c4abe46..be75f22 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -23,6 +23,7 @@
 #include "ctree.h"
 #include <dirent.h>
 #include <stdarg.h>
+#include "common-defs.h"
 #include "internal.h"
 #include "btrfs-list.h"
 #include "sizes.h"
@@ -62,8 +63,6 @@
 #define BTRFS_ARG_BLKDEV       3
 #define BTRFS_ARG_REG          4
 
-#define BTRFS_UUID_UNPARSED_SIZE       37
-
 /*
  * Output modes of size
  */