summaryrefslogtreecommitdiff
path: root/shlibs/mount/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'shlibs/mount/src/utils.c')
-rw-r--r--shlibs/mount/src/utils.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/shlibs/mount/src/utils.c b/shlibs/mount/src/utils.c
index eb183ee0..372351ac 100644
--- a/shlibs/mount/src/utils.c
+++ b/shlibs/mount/src/utils.c
@@ -31,6 +31,7 @@
#include "strutils.h"
#include "pathnames.h"
#include "mountP.h"
+#include "mangle.h"
char *mnt_getenv_safe(const char *arg)
{
@@ -85,6 +86,32 @@ int startswith(const char *s, const char *sx)
}
/**
+ * mnt_mangle:
+ * @str: string
+ *
+ * Encode @str to be compatible with fstab/mtab
+ *
+ * Returns: new allocated string or NULL in case of error.
+ */
+char *mnt_mangle(const char *str)
+{
+ return mangle(str);
+}
+
+/**
+ * mnt_unmangle:
+ * @str: string
+ *
+ * Decode @str from fstab/mtab
+ *
+ * Returns: new allocated string or NULL in case of error.
+ */
+char *mnt_unmangle(const char *str)
+{
+ return unmangle(str);
+}
+
+/**
* mnt_fstype_is_pseudofs:
* @type: filesystem name
*