summaryrefslogtreecommitdiff
path: root/cmd/ossplay/ossplay_wparser.h
blob: ae3e037364df8ec3be94c2be9e40aedd6be55c9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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