view src/alac/stream.h @ 88:80a28e538008 trunk

[svn] - Replace ?= at CFLAGS, CPPFLAGS and CXXFLAGS with += - Replace ?= at CC, CPP and CXX with = The reason for this is that on some systems CC, CFLAGS, CPP, CPPFLAGS, CXX and CXXFLAGS are set by default and therefore are already set at this step so that it can happen that the wrong variables are used (or the ones from the configure script are ignored).
author js
date Sat, 07 Oct 2006 13:34:06 -0700
parents 56c88eee9802
children 74df3bd6f472
line wrap: on
line source

#ifndef STREAM_H
#define STREAM_H

/* stream.h */

#include <stdint.h>

#include <audacious/plugin.h>
#include <audacious/vfs.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 */