Mostly minor fixes up until version 0.8.10.
[irreco.git] / irtrans / irserver / src / global.h
blobe12be55d701252c94f41f189605378a7b8000bec
1 /*
2 * Copyright (c) 2007, IRTrans GmbH
3 * All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of IRTrans GmbH nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED BY IRTrans GmbH ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL IRTrans GmbH BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 #define LOG_DEBUG 4
31 #define LOG_INFO 3
32 #define LOG_ERROR 2
33 #define LOG_FATAL 1
34 #define LOG_MASK 15
36 #define DEBUG_CODE 16
37 #define HEXDUMP 32
38 #define OLDFORMAT 64
39 #define CODEDUMP 128
40 #define LEARNED_ONLY 256
41 #define XAP 512
42 #define MEDIALON 1024
43 #define TIMESTAMP 2048
44 #define READHTML 4096
46 #define DAEMON_MODE 0x10000
47 #define NO_RECONNECT 0x20000
48 #define NO_RESET 0x40000
49 #define NO_LIRC 0x80000
50 #define NO_WEB 0x100000
51 #define CLOCK_STARTUP 0x200000
52 #define READ_EEPROM 0x400000
53 #define NO_CLOCK 0x800000
54 #define IP_RELAY 0x1000000
55 #define SEND_FORWARD 0x2000000
56 #define SEND_FORWARDALL 0x4000000
57 #define NO_INIT_LAN 0x8000000
59 #define FN_IR 1
60 #define FN_SBUS 2
61 #define FN_SER 4
62 #define FN_USB 8
63 #define FN_POWERON 16
64 #define FN_B_O 32
65 #define FN_TEMP 64
66 #define FN_SOFTID 128
67 #define FN_EEPROM 256
68 #define FN_TRANSL 512
69 #define FN_HWCARR 1024
70 #define FN_DUALRCV 2048
72 #define FN_FLASH128 8192
73 #define FN_DUALSND 16384
74 #define FN_DISP1 32768
75 #define FN_DISP2 0x10000
76 #define FN_DISP3 0x20000
77 #define FN_CLOCK 0x40000
78 #define FN_DEBOUNCE 0x80000
80 #define FN_DISPMASK 0x38000
82 #define TYPE_MCE 1
83 #define TYPE_KEY 2
84 #define TYPE_RUN 3
85 #define TYPE_APPCOM 4
86 #define TYPE_COM 5
87 #define TYPE_CHR 6
88 #define TYPE_KEYF 7
89 #define TYPE_KEYBOARD 8
90 #define TYPE_SCANCODE 9
91 #define TYPE_MOUSE 10
92 //------------------------------------------modified------------------------------------------
93 #define TYPE_SHORTCUT 11
96 extern unsigned int mode_flag;
97 extern char logfile[256];
98 extern FILE *logfp;
99 extern char irserver_version[20];
100 extern char irtrans_version[100];
101 extern byte last_adress,resend_flag;
102 extern unsigned short capabilities;
103 extern byte time_len;
104 extern byte raw_repeat;
106 #ifdef WIN32
108 void PostWindowsMessage (int rem,int com,char name[]);
110 /* cmd for HSHELL_APPCOMMAND and WM_APPCOMMAND */
111 #define APPCOMMAND_BROWSER_BACKWARD 1
112 #define APPCOMMAND_BROWSER_FORWARD 2
113 #define APPCOMMAND_BROWSER_REFRESH 3
114 #define APPCOMMAND_BROWSER_STOP 4
115 #define APPCOMMAND_BROWSER_SEARCH 5
116 #define APPCOMMAND_BROWSER_FAVORITES 6
117 #define APPCOMMAND_BROWSER_HOME 7
118 #define APPCOMMAND_VOLUME_MUTE 8
119 #define APPCOMMAND_VOLUME_DOWN 9
120 #define APPCOMMAND_VOLUME_UP 10
121 #define APPCOMMAND_MEDIA_NEXTTRACK 11
122 #define APPCOMMAND_MEDIA_PREVIOUSTRACK 12
123 #define APPCOMMAND_MEDIA_STOP 13
124 #define APPCOMMAND_MEDIA_PLAY_PAUSE 14
125 #define APPCOMMAND_LAUNCH_MAIL 15
126 #define APPCOMMAND_LAUNCH_MEDIA_SELECT 16
127 #define APPCOMMAND_LAUNCH_APP1 17
128 #define APPCOMMAND_LAUNCH_APP2 18
129 #define APPCOMMAND_BASS_DOWN 19
130 #define APPCOMMAND_BASS_BOOST 20
131 #define APPCOMMAND_BASS_UP 21
132 #define APPCOMMAND_TREBLE_DOWN 22
133 #define APPCOMMAND_TREBLE_UP 23
134 #define APPCOMMAND_MICROPHONE_VOLUME_MUTE 24
135 #define APPCOMMAND_MICROPHONE_VOLUME_DOWN 25
136 #define APPCOMMAND_MICROPHONE_VOLUME_UP 26
137 #define APPCOMMAND_HELP 27
138 #define APPCOMMAND_FIND 28
139 #define APPCOMMAND_NEW 29
140 #define APPCOMMAND_OPEN 30
141 #define APPCOMMAND_CLOSE 31
142 #define APPCOMMAND_SAVE 32
143 #define APPCOMMAND_PRINT 33
144 #define APPCOMMAND_UNDO 34
145 #define APPCOMMAND_REDO 35
146 #define APPCOMMAND_COPY 36
147 #define APPCOMMAND_CUT 37
148 #define APPCOMMAND_PASTE 38
149 #define APPCOMMAND_REPLY_TO_MAIL 39
150 #define APPCOMMAND_FORWARD_MAIL 40
151 #define APPCOMMAND_SEND_MAIL 41
152 #define APPCOMMAND_SPELL_CHECK 42
153 #define APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE 43
154 #define APPCOMMAND_MIC_ON_OFF_TOGGLE 44
155 #define APPCOMMAND_CORRECTION_LIST 45
156 #define APPCOMMAND_MEDIA_PLAY 46
157 #define APPCOMMAND_MEDIA_PAUSE 47
158 #define APPCOMMAND_MEDIA_RECORD 48
159 #define APPCOMMAND_MEDIA_FAST_FORWARD 49
160 #define APPCOMMAND_MEDIA_REWIND 50
161 #define APPCOMMAND_MEDIA_CHANNEL_UP 51
162 #define APPCOMMAND_MEDIA_CHANNEL_DOWN 52
164 #define WM_APPCOMMAND 0x0319
166 #endif