summaryrefslogtreecommitdiff
path: root/plugins/alac/stream.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-08-01 22:27:36 +0200
committerGravatar waker <wakeroid@gmail.com>2012-08-01 22:27:36 +0200
commit002d8c063496bbaa4d781c2812b1f28d28902c23 (patch)
treeb8bb1c1d201f810edccc2045cdfd4c487866abb0 /plugins/alac/stream.h
parent397e22ae9d585b39d8f60a91e273bf1c31d7895e (diff)
added new ALAC plugin
Diffstat (limited to 'plugins/alac/stream.h')
-rw-r--r--plugins/alac/stream.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/plugins/alac/stream.h b/plugins/alac/stream.h
new file mode 100644
index 00000000..ae5881e4
--- /dev/null
+++ b/plugins/alac/stream.h
@@ -0,0 +1,39 @@
+#ifndef STREAM_H
+#define STREAM_H
+
+/* stream.h */
+
+#ifdef _WIN32
+ #include "stdint_win.h"
+#else
+ #include <stdint.h>
+#endif
+
+#include "../../deadbeef.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(DB_FILE *file,
+ int bigendian);
+void stream_destroy(stream_t *stream);
+
+#endif /* STREAM_H */
+