]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/file.h
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavutil / file.h
index f28627c9d87a228251119e9141a975314b279855..f3af9ef7e57aceb11b72d32165b84f88668d3eca 100644 (file)
@@ -49,4 +49,13 @@ int av_file_map(const char *filename, uint8_t **bufptr, size_t *size,
  */
 void av_file_unmap(uint8_t *bufptr, size_t size);
 
+/**
+ * Wrapper to work around the lack of mkstemp() on mingw.
+ * Also, tries to create file in /tmp first, if possible.
+ * *prefix can be a character constant; *filename will be allocated internally.
+ * @return file descriptor of opened file (or -1 on error)
+ * and opened file name in **filename.
+ */
+int av_tempfile(const char *prefix, char **filename, int log_offset, void *log_ctx);
+
 #endif /* AVUTIL_FILE_H */