Libmacro  0.2
Libmacro is an extensible macro and hotkey library.
intercept.h
Go to the documentation of this file.
1 /* Libmacro - A multi-platform, extendable macro and hotkey C library
2  Copyright (C) 2013 Jonathan Pelletier, New Paradigm Software
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
23 #ifndef MCR_INTERCEPT_INTERCEPT_H_
24 #define MCR_INTERCEPT_INTERCEPT_H_
25 
26 #include "mcr/standard/standard.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
37 struct mcr_intercept {
41  bool blockable;
44 };
45 
47 MCR_API void mcr_intercept_reset_modifiers(struct mcr_context *ctx);
49 MCR_API bool mcr_intercept_blockable(struct mcr_context *ctx);
51 MCR_API void mcr_intercept_set_blockable(struct mcr_context *ctx, bool enable);
53 MCR_API int mcr_intercept_reset(struct mcr_context *ctx);
54 
55 /* platform */
60 MCR_API bool mcr_intercept_enabled(struct mcr_context *ctx);
66 MCR_API int mcr_intercept_set_enabled(struct mcr_context *ctx, bool enable);
71 MCR_API unsigned int mcr_intercept_modifiers(struct mcr_context *ctx);
72 
73 #ifdef __cplusplus
74 }
75 #endif
76 
77 #endif
MCR_API int mcr_intercept_set_enabled(struct mcr_context *ctx, bool enable)
MCR_API unsigned int mcr_intercept_modifiers(struct mcr_context *ctx)
MCR_API bool mcr_intercept_enabled(struct mcr_context *ctx)
MCR_API int mcr_intercept_reset(struct mcr_context *ctx)
MCR_API bool mcr_intercept_blockable(struct mcr_context *ctx)
MCR_API void mcr_intercept_reset_modifiers(struct mcr_context *ctx)
struct mcr_intercept_platform * platform_pt
Definition: intercept.h:43
bool blockable
Definition: intercept.h:41
MCR_API void mcr_intercept_set_blockable(struct mcr_context *ctx, bool enable)
Standard signal and trigger types.