Libmacro  0.2
Libmacro is an extensible macro and hotkey library.
hid_echo.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 
24 #ifndef MCR_STANDARD_HID_ECHO_H_
25 #define MCR_STANDARD_HID_ECHO_H_
26 
27 #include "mcr/base/base.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
34 struct mcr_HidEcho {
36  size_t echo;
37 };
38 
45 MCR_API int mcr_HidEcho_send(struct mcr_Signal *signalPt);
51 MCR_API int mcr_HidEcho_send_member(struct mcr_HidEcho *dataPt, struct mcr_context *ctx);
52 /* Default allocate, deallocate, init, deinit, compare, and copy */
53 
58 MCR_API size_t mcr_HidEcho_count(struct mcr_context *ctx);
59 
61 MCR_API struct mcr_ISignal *mcr_iHidEcho(struct mcr_context *ctx);
63 #define mcr_HidEcho_data(sigPt) \
64 mcr_castpt(struct mcr_HidEcho, mcr_Signal_data(sigPt))
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif
MCR_API int mcr_HidEcho_send(struct mcr_Signal *signalPt)
Send human interface signal.
size_t echo
Definition: hid_echo.h:36
MCR_API int mcr_HidEcho_send_member(struct mcr_HidEcho *dataPt, struct mcr_context *ctx)
MCR_API struct mcr_ISignal * mcr_iHidEcho(struct mcr_context *ctx)
Base module implements mcr_base - Libmacro first module.
MCR_API size_t mcr_HidEcho_count(struct mcr_context *ctx)