summaryrefslogtreecommitdiff
path: root/btrfs-list.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-10-31 11:11:50 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-09 13:47:29 +0100
commitf4556df015b84bd2c4979a55427152fe68882fb3 (patch)
tree5ddac2e135d5ff1f5be6d446bf23c453441a9754 /btrfs-list.h
parent2c7dc8e21014001abd2629d6b7654af3ee6ad855 (diff)
btrfs-progs: use enum for list layout type
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'btrfs-list.h')
-rw-r--r--btrfs-list.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/btrfs-list.h b/btrfs-list.h
index 6892703..a39a01a 100644
--- a/btrfs-list.h
+++ b/btrfs-list.h
@@ -31,9 +31,11 @@
#include <time.h>
-#define BTRFS_LIST_LAYOUT_DEFAULT 0
-#define BTRFS_LIST_LAYOUT_TABLE 1
-#define BTRFS_LIST_LAYOUT_RAW 2
+enum btrfs_list_layout {
+ BTRFS_LIST_LAYOUT_DEFAULT = 0,
+ BTRFS_LIST_LAYOUT_TABLE,
+ BTRFS_LIST_LAYOUT_RAW
+};
/*
* one of these for each root we find.
@@ -166,7 +168,8 @@ struct btrfs_list_comparer_set *btrfs_list_alloc_comparer_set(void);
int btrfs_list_subvols_print(int fd, struct btrfs_list_filter_set *filter_set,
struct btrfs_list_comparer_set *comp_set,
- int is_tab_result, int full_path, const char *raw_prefix);
+ enum btrfs_list_layout layot, int full_path,
+ const char *raw_prefix);
int btrfs_list_find_updated_files(int fd, u64 root_id, u64 oldest_gen);
int btrfs_list_get_default_subvolume(int fd, u64 *default_id);
char *btrfs_list_path_for_root(int fd, u64 root);