33 #ifndef __OGGZ_READ_H__
34 #define __OGGZ_READ_H__
122 long serialno,
void * user_data);
long oggz_read(OGGZ *oggz, long n)
Read n bytes into oggz, calling any read callbacks on the fly.
int oggz_stream_get_numheaders(OGGZ *oggz, long serialno)
Determine the number of headers of the oggz stream referred to by serialno.
const char * oggz_stream_get_content_type(OGGZ *oggz, long serialno)
Return human-readable string representation of content type of oggz stream referred to by serialno...
int oggz_purge(OGGZ *oggz)
Erase any input buffered in Oggz.
int oggz_set_read_callback(OGGZ *oggz, long serialno, OggzReadPacket read_packet, void *user_data)
Set a callback for Oggz to call when a new Ogg packet is found in the stream.
int(* OggzReadPage)(OGGZ *oggz, const ogg_page *og, long serialno, void *user_data)
This is the signature of a callback which you must provide for Oggz to call whenever it finds a new p...
Definition: oggz_read.h:121
void OGGZ
An opaque handle to an Ogg file.
Definition: oggz.h:441
An ogg_packet and its position in the stream.
Definition: oggz_packet.h:84
int(* OggzReadPacket)(OGGZ *oggz, oggz_packet *packet, long serialno, void *user_data)
This is the signature of a callback which you must provide for Oggz to call whenever it finds a new p...
Definition: oggz_read.h:81
long oggz_read_input(OGGZ *oggz, unsigned char *buf, long n)
Input data into oggz.
OggzStreamContent
Definition of stream content types.
Definition: oggz_constants.h:106
int oggz_set_read_page(OGGZ *oggz, long serialno, OggzReadPage read_page, void *user_data)
Set a callback for Oggz to call when a new Ogg page is found in the stream.
OggzStreamContent oggz_stream_get_content(OGGZ *oggz, long serialno)
Determine the content type of the oggz stream referred to by serialno.