summaryrefslogtreecommitdiff
path: root/cmd/ossplay/ossplay_wparser.h
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-05-03 21:08:42 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-05-03 21:08:42 +0400
commit1058def8e7827e56ce4a70afb4aeacb5dc44148f (patch)
tree4495d23e7b54ab5700e3839081e797c1eafe0db9 /cmd/ossplay/ossplay_wparser.h
downloadoss4-1058def8e7827e56ce4a70afb4aeacb5dc44148f.tar.gz
Imported Upstream version 4.2-build2006upstream/4.2-build2006upstream
Diffstat (limited to 'cmd/ossplay/ossplay_wparser.h')
-rw-r--r--cmd/ossplay/ossplay_wparser.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmd/ossplay/ossplay_wparser.h b/cmd/ossplay/ossplay_wparser.h
new file mode 100644
index 0000000..ae3e037
--- /dev/null
+++ b/cmd/ossplay/ossplay_wparser.h
@@ -0,0 +1,21 @@
+#ifndef _OSSRECORD_WPARSER_H
+#define _OSSRECORD_WPARSER_H
+
+#include "ossplay.h"
+
+int write_head (FILE *, fctypes_t, big_t, int, int, int);
+int finalize_head (FILE *, fctypes_t, big_t, int, int, int);
+
+#ifdef OSS_BIG_ENDIAN
+#define BE_INT(x) x
+#define BE_SH(x) x
+#define LE_INT(x) bswap(x)
+#define LE_SH(x) bswaps(x)
+#else
+#define BE_INT(x) bswap(x)
+#define BE_SH(x) bswaps(x)
+#define LE_INT(x) x
+#define LE_SH(x) x
+#endif /* OSS_BIG_ENDIAN */
+
+#endif