summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-01-25 16:54:35 +0100
committerDavid Sterba <dsterba@suse.com>2017-03-08 13:00:45 +0100
commit50ac7b6dc8681cad4545e161c174e811bdf23265 (patch)
tree536f42e466eddd5e818c021f301ab7e9d8e9fe21
parenta52537a594b8167150ea820700f9d6dff233744e (diff)
btrfs-progs: move some common definitions to own header
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>
-rw-r--r--common-defs.h22
-rw-r--r--utils.h3
2 files changed, 23 insertions, 2 deletions
diff --git a/common-defs.h b/common-defs.h
new file mode 100644
index 00000000..adec9a95
--- /dev/null
+++ b/common-defs.h
@@ -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 c4abe465..be75f22e 100644
--- 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
*/