From: David Sterba Date: Wed, 25 Jan 2017 15:54:35 +0000 (+0100) Subject: btrfs-progs: move some common definitions to own header X-Git-Tag: upstream/4.16.1~843 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50ac7b6dc8681cad4545e161c174e811bdf23265;p=platform%2Fupstream%2Fbtrfs-progs.git 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 --- diff --git a/common-defs.h b/common-defs.h new file mode 100644 index 0000000..adec9a9 --- /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 c4abe46..be75f22 100644 --- a/utils.h +++ b/utils.h @@ -23,6 +23,7 @@ #include "ctree.h" #include #include +#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 */