|
1 |
| -#ifndef _ITERCEPTION_H_ |
2 |
| -#define _ITERCEPTION_H_ |
| 1 | +#ifndef _INTERCEPTION_H_ |
| 2 | +#define _INTERCEPTION_H_ |
3 | 3 |
|
4 | 4 | #ifdef INTERCEPTION_STATIC
|
5 |
| - #define ITERCEPTION_API |
| 5 | + #define INTERCEPTION_API |
6 | 6 | #else
|
7 | 7 | #if defined _WIN32 || defined __CYGWIN__
|
8 | 8 | #ifdef INTERCEPTION_EXPORT
|
9 | 9 | #ifdef __GNUC__
|
10 |
| - #define ITERCEPTION_API __attribute__((dllexport)) |
| 10 | + #define INTERCEPTION_API __attribute__((dllexport)) |
11 | 11 | #else
|
12 |
| - #define ITERCEPTION_API __declspec(dllexport) |
| 12 | + #define INTERCEPTION_API __declspec(dllexport) |
13 | 13 | #endif
|
14 | 14 | #else
|
15 | 15 | #ifdef __GNUC__
|
16 |
| - #define ITERCEPTION_API __attribute__((dllimport)) |
| 16 | + #define INTERCEPTION_API __attribute__((dllimport)) |
17 | 17 | #else
|
18 |
| - #define ITERCEPTION_API __declspec(dllimport) |
| 18 | + #define INTERCEPTION_API __declspec(dllimport) |
19 | 19 | #endif
|
20 | 20 | #endif
|
21 | 21 | #else
|
22 | 22 | #if __GNUC__ >= 4
|
23 |
| - #define ITERCEPTION_API __attribute__ ((visibility("default"))) |
| 23 | + #define INTERCEPTION_API __attribute__ ((visibility("default"))) |
24 | 24 | #else
|
25 |
| - #define ITERCEPTION_API |
| 25 | + #define INTERCEPTION_API |
26 | 26 | #endif
|
27 | 27 | #endif
|
28 | 28 | #endif
|
@@ -159,33 +159,33 @@ typedef struct
|
159 | 159 |
|
160 | 160 | typedef char InterceptionStroke[sizeof(InterceptionMouseStroke)];
|
161 | 161 |
|
162 |
| -InterceptionContext ITERCEPTION_API interception_create_context(void); |
| 162 | +InterceptionContext INTERCEPTION_API interception_create_context(void); |
163 | 163 |
|
164 |
| -void ITERCEPTION_API interception_destroy_context(InterceptionContext context); |
| 164 | +void INTERCEPTION_API interception_destroy_context(InterceptionContext context); |
165 | 165 |
|
166 |
| -InterceptionPrecedence ITERCEPTION_API interception_get_precedence(InterceptionContext context, InterceptionDevice device); |
| 166 | +InterceptionPrecedence INTERCEPTION_API interception_get_precedence(InterceptionContext context, InterceptionDevice device); |
167 | 167 |
|
168 |
| -void ITERCEPTION_API interception_set_precedence(InterceptionContext context, InterceptionDevice device, InterceptionPrecedence precedence); |
| 168 | +void INTERCEPTION_API interception_set_precedence(InterceptionContext context, InterceptionDevice device, InterceptionPrecedence precedence); |
169 | 169 |
|
170 |
| -InterceptionFilter ITERCEPTION_API interception_get_filter(InterceptionContext context, InterceptionDevice device); |
| 170 | +InterceptionFilter INTERCEPTION_API interception_get_filter(InterceptionContext context, InterceptionDevice device); |
171 | 171 |
|
172 |
| -void ITERCEPTION_API interception_set_filter(InterceptionContext context, InterceptionPredicate predicate, InterceptionFilter filter); |
| 172 | +void INTERCEPTION_API interception_set_filter(InterceptionContext context, InterceptionPredicate predicate, InterceptionFilter filter); |
173 | 173 |
|
174 |
| -InterceptionDevice ITERCEPTION_API interception_wait(InterceptionContext context); |
| 174 | +InterceptionDevice INTERCEPTION_API interception_wait(InterceptionContext context); |
175 | 175 |
|
176 |
| -InterceptionDevice ITERCEPTION_API interception_wait_with_timeout(InterceptionContext context, unsigned long milliseconds); |
| 176 | +InterceptionDevice INTERCEPTION_API interception_wait_with_timeout(InterceptionContext context, unsigned long milliseconds); |
177 | 177 |
|
178 |
| -int ITERCEPTION_API interception_send(InterceptionContext context, InterceptionDevice device, const InterceptionStroke *stroke, unsigned int nstroke); |
| 178 | +int INTERCEPTION_API interception_send(InterceptionContext context, InterceptionDevice device, const InterceptionStroke *stroke, unsigned int nstroke); |
179 | 179 |
|
180 |
| -int ITERCEPTION_API interception_receive(InterceptionContext context, InterceptionDevice device, InterceptionStroke *stroke, unsigned int nstroke); |
| 180 | +int INTERCEPTION_API interception_receive(InterceptionContext context, InterceptionDevice device, InterceptionStroke *stroke, unsigned int nstroke); |
181 | 181 |
|
182 |
| -unsigned int ITERCEPTION_API interception_get_hardware_id(InterceptionContext context, InterceptionDevice device, void *hardware_id_buffer, unsigned int buffer_size); |
| 182 | +unsigned int INTERCEPTION_API interception_get_hardware_id(InterceptionContext context, InterceptionDevice device, void *hardware_id_buffer, unsigned int buffer_size); |
183 | 183 |
|
184 |
| -int ITERCEPTION_API interception_is_invalid(InterceptionDevice device); |
| 184 | +int INTERCEPTION_API interception_is_invalid(InterceptionDevice device); |
185 | 185 |
|
186 |
| -int ITERCEPTION_API interception_is_keyboard(InterceptionDevice device); |
| 186 | +int INTERCEPTION_API interception_is_keyboard(InterceptionDevice device); |
187 | 187 |
|
188 |
| -int ITERCEPTION_API interception_is_mouse(InterceptionDevice device); |
| 188 | +int INTERCEPTION_API interception_is_mouse(InterceptionDevice device); |
189 | 189 |
|
190 | 190 | #ifdef __cplusplus
|
191 | 191 | }
|
|
0 commit comments