Libmacro  0.2
Libmacro is an extensible macro and hotkey library.
libmacro.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 
38 
40 #ifndef MCR_LIBMACRO_H_
41 #define MCR_LIBMACRO_H_
42 
43 // Includes all modules
44 #include "mcr/context.h"
45 
46 #ifdef __cplusplus
47 #ifndef MCR_NOEXTRAS
48  #include "mcr/extras/extras.h"
49 #endif
50 #endif
51 
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
55 
62 extern MCR_API struct mcr_context *mcr_allocate();
72 extern MCR_API int mcr_deallocate(struct mcr_context *ctx);
79 extern MCR_API int mcr_initialize(struct mcr_context *ctx);
88 extern MCR_API int mcr_deinitialize(struct mcr_context *ctx);
97 extern MCR_API int mcr_load_contracts(struct mcr_context *ctx);
102 extern MCR_API void mcr_trim(struct mcr_context *ctx);
103 
104 #ifdef __cplusplus
105 }
106 #endif
107 
108 #endif
MCR_API void mcr_trim(struct mcr_context *ctx)
mcr_context Library context forward declaration.
Extra and C++ things not needed for Libmacro to function.
MCR_API int mcr_deinitialize(struct mcr_context *ctx)
MCR_API int mcr_load_contracts(struct mcr_context *ctx)
MCR_API struct mcr_context * mcr_allocate()
MCR_API int mcr_initialize(struct mcr_context *ctx)
MCR_API int mcr_deallocate(struct mcr_context *ctx)