Revision bc371aca libavformat/avio.h

View differences:

libavformat/avio.h
105 105
attribute_deprecated int url_alloc(URLContext **h, const char *url, int flags);
106 106
attribute_deprecated int url_connect(URLContext *h);
107 107
attribute_deprecated int url_open(URLContext **h, const char *url, int flags);
108
attribute_deprecated int url_read(URLContext *h, unsigned char *buf, int size);
108 109
#endif
109 110

  
110 111
/**
111
 * Read up to size bytes from the resource accessed by h, and store
112
 * the read bytes in buf.
113
 *
114
 * @return The number of bytes actually read, or a negative value
115
 * corresponding to an AVERROR code in case of error. A value of zero
116
 * indicates that it is not possible to read more from the accessed
117
 * resource (except if the value of the size argument is also zero).
118
 */
119
int url_read(URLContext *h, unsigned char *buf, int size);
120

  
121
/**
122 112
 * Read as many bytes as possible (up to size), calling the
123 113
 * read function multiple times if necessary.
124 114
 * This makes special short-read handling in applications

Also available in: Unified diff