summaryrefslogtreecommitdiffstats
path: root/libdm/libdm-common.h
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2012-02-15 11:39:38 +0000
committerPeter Rajnoha <prajnoha@redhat.com>2012-02-15 11:39:38 +0000
commitbd364a70b5bd063d5756d992ea00797f671abe4c (patch)
treecd8971d067142e04df80cb8d4c505cf912d326a8 /libdm/libdm-common.h
parent2e8c7f297516c67e16aa4ea038638bd27ff53404 (diff)
downloadlvm2-bd364a70b5bd063d5756d992ea00797f671abe4c.tar.gz
lvm2-bd364a70b5bd063d5756d992ea00797f671abe4c.tar.xz
lvm2-bd364a70b5bd063d5756d992ea00797f671abe4c.zip
Add dm_task_get_name_mangled/unmangled to libdevmapper.
dm_task_get_name_mangled will always return mangled form of the name while the dm_task_get_name_unmangled will always return unmangled form of the name irrespective of the global setting (dm_set/get_name_mangling_mode). This is handy in situations where we need to detect whether the name is already mangled or not. Also display functions make use of it.
Diffstat (limited to 'libdm/libdm-common.h')
-rw-r--r--libdm/libdm-common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdm/libdm-common.h b/libdm/libdm-common.h
index 31151af7..77d0b1f4 100644
--- a/libdm/libdm-common.h
+++ b/libdm/libdm-common.h
@@ -23,6 +23,9 @@
int mangle_name(const char *str, size_t len, char *buf,
size_t buf_len, dm_string_mangling_t mode);
+int unmangle_name(const char *str, size_t len, char *buf,
+ size_t buf_len, dm_string_mangling_t mode);
+
struct target *create_target(uint64_t start,
uint64_t len,
const char *type, const char *params);