btrfs-progs: Remove deprecated btrfs-zero-log standalone tool
[platform/upstream/btrfs-progs.git] / props.h
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public
4  * License v2 as published by the Free Software Foundation.
5  *
6  * This program is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9  * General Public License for more details.
10  *
11  * You should have received a copy of the GNU General Public
12  * License along with this program; if not, write to the
13  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
14  * Boston, MA 021110-1307, USA.
15  */
16
17 #ifndef __BTRFS_PROPS_H__
18 #define __BTRFS_PROPS_H__
19
20 enum prop_object_type {
21         prop_object_dev         = (1 << 0),
22         prop_object_root        = (1 << 1),
23         prop_object_subvol      = (1 << 2),
24         prop_object_inode       = (1 << 3),
25         __prop_object_max,
26 };
27
28 typedef int (*prop_handler_t)(enum prop_object_type type,
29                               const char *object,
30                               const char *name,
31                               const char *value);
32
33 struct prop_handler {
34         const char *name;
35         const char *desc;
36         int read_only;
37         int types;
38         prop_handler_t handler;
39 };
40
41 extern const struct prop_handler prop_handlers[];
42
43 #endif