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>
master
David Sterba 2017-01-25 16:54:35 +01:00
parent a52537a594
commit 50ac7b6dc8
2 changed files with 23 additions and 2 deletions

22
common-defs.h 100644
View File

@ -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

View File

@ -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
*/