Revision 576ae256 libavformat/avio.h

View differences:

libavformat/avio.h
70 70
    unsigned char *buf_ptr, *buf_end;
71 71
    void *opaque;
72 72
    int (*read_packet)(void *opaque, uint8_t *buf, int buf_size);
73
    void (*write_packet)(void *opaque, uint8_t *buf, int buf_size);
73
    int (*write_packet)(void *opaque, uint8_t *buf, int buf_size);
74 74
    int (*seek)(void *opaque, offset_t offset, int whence);
75 75
    offset_t pos; /* position in the file of the current buffer */
76 76
    int must_flush; /* true if the next seek should flush */
......
81 81
    unsigned long checksum;
82 82
    unsigned char *checksum_ptr;
83 83
    unsigned long (*update_checksum)(unsigned long checksum, const uint8_t *buf, unsigned int size);
84
    int error;         ///< contains the error code or 0 if no error happened
84 85
} ByteIOContext;
85 86

  
86 87
int init_put_byte(ByteIOContext *s,
......
89 90
                  int write_flag,
90 91
                  void *opaque,
91 92
                  int (*read_packet)(void *opaque, uint8_t *buf, int buf_size),
92
                  void (*write_packet)(void *opaque, uint8_t *buf, int buf_size),
93
                  int (*write_packet)(void *opaque, uint8_t *buf, int buf_size),
93 94
                  int (*seek)(void *opaque, offset_t offset, int whence));
94 95

  
95 96
void put_byte(ByteIOContext *s, int b);
......
109 110
void url_fskip(ByteIOContext *s, offset_t offset);
110 111
offset_t url_ftell(ByteIOContext *s);
111 112
int url_feof(ByteIOContext *s);
113
int url_ferror(ByteIOContext *s);
112 114

  
113 115
#define URL_EOF (-1)
114 116
int url_fgetc(ByteIOContext *s);

Also available in: Unified diff