summaryrefslogtreecommitdiffstats
path: root/misc-utils/lsblk.h
diff options
context:
space:
mode:
authorKarel Zak2018-10-15 13:53:19 +0200
committerKarel Zak2018-12-07 12:32:57 +0100
commit21d4a48c9cf304e771a7554b54f75df8e8565e34 (patch)
tree3264c07157410288c55b65d264bbdac7aee8afbc /misc-utils/lsblk.h
parentlsblk: remove badly named debug interface name (diff)
downloadkernel-qcow2-util-linux-21d4a48c9cf304e771a7554b54f75df8e8565e34.tar.gz
kernel-qcow2-util-linux-21d4a48c9cf304e771a7554b54f75df8e8565e34.tar.xz
kernel-qcow2-util-linux-21d4a48c9cf304e771a7554b54f75df8e8565e34.zip
lsblk: cleanup device reference in the tree
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/lsblk.h')
-rw-r--r--misc-utils/lsblk.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc-utils/lsblk.h b/misc-utils/lsblk.h
index e2cafb529..6c095246d 100644
--- a/misc-utils/lsblk.h
+++ b/misc-utils/lsblk.h
@@ -198,7 +198,8 @@ int lsblk_devtree_add_device(struct lsblk_devtree *tr, struct lsblk_device *dev)
int lsblk_devtree_next_device(struct lsblk_devtree *tr,
struct lsblk_iter *itr,
struct lsblk_device **dev);
+int lsblk_devtree_has_device(struct lsblk_devtree *tr, struct lsblk_device *dev);
struct lsblk_device *lsblk_devtree_get_device(struct lsblk_devtree *tr, const char *name);
-
+int lsblk_devtree_remove_device(struct lsblk_devtree *tr, struct lsblk_device *dev);
#endif /* UTIL_LINUX_LSBLK_H */