Commit 655e45e7 authored by Anton Khirnov's avatar Anton Khirnov Committed by Ronald S. Bultje

avio: deprecate url_fgets

It's not used anywhere and doesn't look ver useful to be public.
Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
parent 2af07d36
...@@ -514,9 +514,11 @@ int url_fprintf(AVIOContext *s, const char *fmt, ...) __attribute__ ((__format__ ...@@ -514,9 +514,11 @@ int url_fprintf(AVIOContext *s, const char *fmt, ...) __attribute__ ((__format__
int url_fprintf(AVIOContext *s, const char *fmt, ...); int url_fprintf(AVIOContext *s, const char *fmt, ...);
#endif #endif
#if FF_API_OLD_AVIO
/** @note unlike fgets, the EOL character is not returned and a whole /** @note unlike fgets, the EOL character is not returned and a whole
line is parsed. return NULL if first char read was EOF */ line is parsed. return NULL if first char read was EOF */
char *url_fgets(AVIOContext *s, char *buf, int buf_size); attribute_deprecated char *url_fgets(AVIOContext *s, char *buf, int buf_size);
#endif
void put_flush_packet(AVIOContext *s); void put_flush_packet(AVIOContext *s);
......
...@@ -915,6 +915,7 @@ int url_fprintf(AVIOContext *s, const char *fmt, ...) ...@@ -915,6 +915,7 @@ int url_fprintf(AVIOContext *s, const char *fmt, ...)
} }
#endif //CONFIG_MUXERS #endif //CONFIG_MUXERS
#if FF_API_OLD_AVIO
char *url_fgets(AVIOContext *s, char *buf, int buf_size) char *url_fgets(AVIOContext *s, char *buf, int buf_size)
{ {
int c; int c;
...@@ -935,6 +936,7 @@ char *url_fgets(AVIOContext *s, char *buf, int buf_size) ...@@ -935,6 +936,7 @@ char *url_fgets(AVIOContext *s, char *buf, int buf_size)
*q = '\0'; *q = '\0';
return buf; return buf;
} }
#endif
int url_fget_max_packet_size(AVIOContext *s) int url_fget_max_packet_size(AVIOContext *s)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment