diff options
author | Joerg Bornkessel <hd_brummy@gentoo.org> | 2014-04-26 19:15:40 +0200 |
---|---|---|
committer | Joerg Bornkessel <hd_brummy@gentoo.org> | 2014-04-26 19:15:40 +0200 |
commit | d45bc4bed686d1d0c2daff22a66dfa0394fde4fb (patch) | |
tree | 75b7a38c993c0c5761764a375fa822190729a402 /a-tools.h | |
parent | 99628e3cec79c4b5888056ce4be3b92a38eddf47 (diff) | |
download | vdr-plugin-audiorecorder-d45bc4bed686d1d0c2daff22a66dfa0394fde4fb.tar.gz vdr-plugin-audiorecorder-d45bc4bed686d1d0c2daff22a66dfa0394fde4fb.tar.bz2 |
initial commit
Diffstat (limited to 'a-tools.h')
-rw-r--r-- | a-tools.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/a-tools.h b/a-tools.h new file mode 100644 index 0000000..4a00eda --- /dev/null +++ b/a-tools.h @@ -0,0 +1,22 @@ +/* + * a-tools.h: + */ + + +#ifndef __A_TOOLS_H +#define __A_TOOLS_H + +#define KB(x) x * 1024 +#define MB(x) KB(x) * 1024 + +#define DELETE(x) if (x != NULL) { delete x; x = NULL; } + +typedef unsigned char uchar; + +typedef struct abuffer { + uchar *data; + int length; + int offset; +} abuffer; + +#endif /* __A_TOOLS_H */ |