aboutsummaryrefslogtreecommitdiffstats
path: root/src/path.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/path.h')
-rw-r--r--src/path.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/path.h b/src/path.h
index 3bb088b5f..1dbdd7820 100644
--- a/src/path.h
+++ b/src/path.h
@@ -36,9 +36,19 @@ void path_global_init(void);
void path_global_finish(void);
-char *fs_charset_to_utf8(char *dst, const char *str);
+/**
+ * Converts a file name in the filesystem charset to UTF-8. Returns
+ * NULL on failure.
+ */
+char *
+fs_charset_to_utf8(const char *path_fs);
-char *utf8_to_fs_charset(char *dst, const char *str);
+/**
+ * Converts a file name in UTF-8 to the filesystem charset. Returns a
+ * duplicate of the UTF-8 string on failure.
+ */
+char *
+utf8_to_fs_charset(const char *path_utf8);
void path_set_fs_charset(const char *charset);