Mercurial > audlegacy-plugins
view src/alac/stream.h @ 3085:ac0af6b39272
Introduce new GIO plugin to buildsystem. stdio is now deprecated.
Thoughts:
- getc()/ungetc() should be moved to VFS core now
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Wed, 29 Apr 2009 20:58:36 -0500 |
parents | 3134a0987162 |
children |
line wrap: on
line source
#ifndef STREAM_H #define STREAM_H /* stream.h */ #include "config.h" #if HAVE_STDINT_H # include <stdint.h> #else # if HAVE_INTTYPES_H # include <inttypes.h> # endif #endif #include <audlegacy/plugin.h> typedef struct stream_tTAG stream_t; void stream_read(stream_t *stream, size_t len, void *buf); int32_t stream_read_int32(stream_t *stream); uint32_t stream_read_uint32(stream_t *stream); int16_t stream_read_int16(stream_t *stream); uint16_t stream_read_uint16(stream_t *stream); int8_t stream_read_int8(stream_t *stream); uint8_t stream_read_uint8(stream_t *stream); void stream_skip(stream_t *stream, size_t skip); int stream_eof(stream_t *stream); long stream_tell(stream_t *stream); int stream_setpos(stream_t *stream, long pos); stream_t *stream_create_file(VFSFile *file, int bigendian); void stream_destroy(stream_t *stream); #endif /* STREAM_H */