DecoderBuffer: add method _get_stream()

This commit is contained in:
Max Kellermann 2014-07-12 00:23:22 +02:00
parent 06aa689383
commit a7d9f248ea
2 changed files with 10 additions and 0 deletions

View File

@ -70,6 +70,12 @@ decoder_buffer_free(DecoderBuffer *buffer)
g_free(buffer); g_free(buffer);
} }
const InputStream &
decoder_buffer_get_stream(const DecoderBuffer *buffer)
{
return *buffer->is;
}
bool bool
decoder_buffer_is_empty(const DecoderBuffer *buffer) decoder_buffer_is_empty(const DecoderBuffer *buffer)
{ {

View File

@ -52,6 +52,10 @@ decoder_buffer_new(Decoder *decoder, InputStream &is,
void void
decoder_buffer_free(DecoderBuffer *buffer); decoder_buffer_free(DecoderBuffer *buffer);
gcc_pure
const InputStream &
decoder_buffer_get_stream(const DecoderBuffer *buffer);
gcc_pure gcc_pure
bool bool
decoder_buffer_is_empty(const DecoderBuffer *buffer); decoder_buffer_is_empty(const DecoderBuffer *buffer);