input_stream: don't declare method typedefs
The typedefs aren't using by anybody but struct input_stream. Remove them and declare the method type within struct input_stream.
This commit is contained in:
parent
1dfe92057e
commit
98f7177f4a
|
@ -23,14 +23,6 @@
|
||||||
|
|
||||||
typedef struct input_stream InputStream;
|
typedef struct input_stream InputStream;
|
||||||
|
|
||||||
typedef int (*InputStreamSeekFunc) (struct input_stream *inStream, long offset,
|
|
||||||
int whence);
|
|
||||||
typedef size_t(*InputStreamReadFunc) (struct input_stream *inStream, void *ptr,
|
|
||||||
size_t size);
|
|
||||||
typedef int (*InputStreamCloseFunc) (struct input_stream *inStream);
|
|
||||||
typedef int (*InputStreamAtEOFFunc) (struct input_stream *inStream);
|
|
||||||
typedef int (*InputStreamBufferFunc) (struct input_stream *inStream);
|
|
||||||
|
|
||||||
struct input_stream {
|
struct input_stream {
|
||||||
int ready;
|
int ready;
|
||||||
|
|
||||||
|
@ -40,12 +32,14 @@ struct input_stream {
|
||||||
char *mime;
|
char *mime;
|
||||||
int seekable;
|
int seekable;
|
||||||
|
|
||||||
/* don't touc this stuff */
|
int (*seekFunc)(struct input_stream *inStream, long offset,
|
||||||
InputStreamSeekFunc seekFunc;
|
int whence);
|
||||||
InputStreamReadFunc readFunc;
|
size_t (*readFunc)(struct input_stream *inStream, void *ptr,
|
||||||
InputStreamCloseFunc closeFunc;
|
size_t size);
|
||||||
InputStreamAtEOFFunc atEOFFunc;
|
int (*closeFunc)(struct input_stream *inStream);
|
||||||
InputStreamBufferFunc bufferFunc;
|
int (*atEOFFunc)(struct input_stream *inStream);
|
||||||
|
int (*bufferFunc)(struct input_stream *inStream);
|
||||||
|
|
||||||
void *data;
|
void *data;
|
||||||
char *metaName;
|
char *metaName;
|
||||||
char *metaTitle;
|
char *metaTitle;
|
||||||
|
|
Loading…
Reference in New Issue