summaryrefslogtreecommitdiff
path: root/libbtrfsutil/python/btrfsutilpy.h
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2018-01-18 13:33:02 -0800
committerDavid Sterba <dsterba@suse.com>2018-03-06 11:28:36 +0100
commit0d36261bd54a93b1b1b616bdd32d33b3f4278f09 (patch)
treeb292e0e8fed29b1ec9eb031fa09427f764ca85cb /libbtrfsutil/python/btrfsutilpy.h
parent8b87811f945bec2a0681334030ed51af1e4828f6 (diff)
libbtrfsutil: add btrfs_util_subvolume_info()
This gets the the information in `btrfs subvolume show` from the root item. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'libbtrfsutil/python/btrfsutilpy.h')
-rw-r--r--libbtrfsutil/python/btrfsutilpy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libbtrfsutil/python/btrfsutilpy.h b/libbtrfsutil/python/btrfsutilpy.h
index 1fd475b4..23186216 100644
--- a/libbtrfsutil/python/btrfsutilpy.h
+++ b/libbtrfsutil/python/btrfsutilpy.h
@@ -35,6 +35,8 @@ typedef struct {
} QgroupInherit;
extern PyTypeObject BtrfsUtilError_type;
+extern PyStructSequence_Desc SubvolumeInfo_desc;
+extern PyTypeObject SubvolumeInfo_type;
extern PyTypeObject QgroupInherit_type;
/*
@@ -64,6 +66,7 @@ PyObject *wait_sync(PyObject *self, PyObject *args, PyObject *kwds);
PyObject *is_subvolume(PyObject *self, PyObject *args, PyObject *kwds);
PyObject *subvolume_id(PyObject *self, PyObject *args, PyObject *kwds);
PyObject *subvolume_path(PyObject *self, PyObject *args, PyObject *kwds);
+PyObject *subvolume_info(PyObject *self, PyObject *args, PyObject *kwds);
PyObject *create_subvolume(PyObject *self, PyObject *args, PyObject *kwds);
void add_module_constants(PyObject *m);