summaryrefslogtreecommitdiff
path: root/include/xine/xineutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/xine/xineutils.h')
-rw-r--r--include/xine/xineutils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/xine/xineutils.h b/include/xine/xineutils.h
index fa34931ec..e822ccfe8 100644
--- a/include/xine/xineutils.h
+++ b/include/xine/xineutils.h
@@ -182,6 +182,14 @@ void xine_usec_sleep(unsigned usec) XINE_PROTECTED;
char *xine_strcat_realloc (char **dest, char *append) XINE_PROTECTED;
/**
+ * asprintf wrapper
+ * allocate a string large enough to hold the output, and return a pointer to
+ * it. This pointer should be passed to free when it is no longer needed.
+ * return NULL on error.
+ */
+char *_x_asprintf(const char *format, ...) XINE_PROTECTED XINE_MALLOC XINE_FORMAT_PRINTF(1, 2);
+
+/**
* opens a file, ensuring that the descriptor will be closed
* automatically after a fork/execute.
*/