summaryrefslogtreecommitdiffstats
path: root/src/polyp/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/polyp/error.h')
-rw-r--r--src/polyp/error.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/polyp/error.h b/src/polyp/error.h
index 9856c1af..33507bfd 100644
--- a/src/polyp/error.h
+++ b/src/polyp/error.h
@@ -33,6 +33,12 @@ PA_C_DECL_BEGIN
/** Return a human readable error message for the specified numeric error code */
const char* pa_strerror(int error);
+/** A wrapper around the standard strerror() function that converts the
+ * string to UTF-8. The function is thread safe but the returned string is
+ * only guaranteed to exist until the thread exits or pa_cstrerror() is
+ * called again from the same thread. */
+char* pa_cstrerror(int errnum);
+
PA_C_DECL_END
#endif