summaryrefslogtreecommitdiff
path: root/libavutil/file.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-28 00:13:24 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-03 15:42:40 +0200
commitdea974456035d8d43c69a23b9db036a544bb0455 (patch)
treed6c454b85a1cb05310bd726554243b0c56c13c03 /libavutil/file.h
parent72c601e0f71d3c71a53d43bdac935489ed86e3c5 (diff)
avutil/file: Properly deprecate av_tempfile()
It has been deprecated in b4f59beeb4c2171879d0d7607a4a7d6165f07791, but the attribute_deprecated was not set and there was no entry in APIchanges. This commit adds these and schedules it for removal. Given that the reason behind the deprecation is exactly the same as in av_fopen_utf8(), reuse its FF_API_AV_FOPEN_UTF8. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/file.h')
-rw-r--r--libavutil/file.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/file.h b/libavutil/file.h
index 8ec210e783..511c100db4 100644
--- a/libavutil/file.h
+++ b/libavutil/file.h
@@ -22,6 +22,7 @@
#include <stddef.h>
#include <stdint.h>
+#include "version.h"
#include "attributes.h"
/**
@@ -55,6 +56,7 @@ int av_file_map(const char *filename, uint8_t **bufptr, size_t *size,
*/
void av_file_unmap(uint8_t *bufptr, size_t size);
+#if FF_API_AV_FOPEN_UTF8
/**
* Wrapper to work around the lack of mkstemp() on mingw.
* Also, tries to create file in /tmp first, if possible.
@@ -67,6 +69,8 @@ void av_file_unmap(uint8_t *bufptr, size_t size);
* libraries and could interfere with the calling application.
* @deprecated as fd numbers cannot be passed saftely between libs on some platforms
*/
+attribute_deprecated
int av_tempfile(const char *prefix, char **filename, int log_offset, void *log_ctx);
+#endif
#endif /* AVUTIL_FILE_H */