diff options
Diffstat (limited to 'utils/wpseditor/libwps/src/defs.h')
-rw-r--r-- | utils/wpseditor/libwps/src/defs.h | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/utils/wpseditor/libwps/src/defs.h b/utils/wpseditor/libwps/src/defs.h deleted file mode 100644 index 077fc5894c..0000000000 --- a/utils/wpseditor/libwps/src/defs.h +++ /dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2007 by Rostilav Checkan | ||
10 | * $Id$ | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #ifndef DEFS_H_INCLUDED | ||
23 | #define DEFS_H_INCLUDED | ||
24 | |||
25 | typedef int (*pfdebugf)(const char* fmt,...); | ||
26 | extern pfdebugf dbgf; | ||
27 | |||
28 | #ifdef BUILD_DLL | ||
29 | # define EXPORT __declspec(dllexport) | ||
30 | #else | ||
31 | # define EXPORT | ||
32 | #endif | ||
33 | |||
34 | #ifndef MIN | ||
35 | # define MIN(a, b) (((a)<(b))?(a):(b)) | ||
36 | #endif | ||
37 | |||
38 | #ifndef MAX | ||
39 | # define MAX(a, b) (((a)>(b))?(a):(b)) | ||
40 | #endif | ||
41 | |||
42 | #define SWAP_16(x) ((typeof(x))(unsigned short)(((unsigned short)(x) >> 8) | \ | ||
43 | ((unsigned short)(x) << 8))) | ||
44 | |||
45 | #define SWAP_32(x) ((typeof(x))(unsigned long)( ((unsigned long)(x) >> 24) | \ | ||
46 | (((unsigned long)(x) & 0xff0000ul) >> 8) | \ | ||
47 | (((unsigned long)(x) & 0xff00ul) << 8) | \ | ||
48 | ((unsigned long)(x) << 24))) | ||
49 | |||
50 | #define PLAYMODES_NUM 5 | ||
51 | enum api_playmode { | ||
52 | API_STATUS_PLAY, | ||
53 | API_STATUS_STOP, | ||
54 | API_STATUS_PAUSE, | ||
55 | API_STATUS_FASTFORWARD, | ||
56 | API_STATUS_FASTBACKWARD | ||
57 | }; | ||
58 | |||
59 | extern enum api_playmode playmodes[PLAYMODES_NUM]; | ||
60 | extern const char *playmodeNames[]; | ||
61 | |||
62 | #endif // DEFS_H_INCLUDED | ||