Revision dce37564 libavformat/avio.h

View differences:

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

  
111 112
/**
112
 * Read as many bytes as possible (up to size), calling the
113
 * read function multiple times if necessary.
114
 * This makes special short-read handling in applications
115
 * unnecessary, if the return value is < size then it is
116
 * certain there was either an error or the end of file was reached.
117
 */
118
int url_read_complete(URLContext *h, unsigned char *buf, int size);
119

  
120
/**
121 113
 * Write size bytes from buf to the resource accessed by h.
122 114
 *
123 115
 * @return the number of bytes actually written, or a negative value

Also available in: Unified diff