plibsys
pmain.h
Go to the documentation of this file.
1 /*
2  * The MIT License
3  *
4  * Copyright (C) 2010-2017 Alexander Saprykin <saprykin.spb@gmail.com>
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining
7  * a copy of this software and associated documentation files (the
8  * 'Software'), to deal in the Software without restriction, including
9  * without limitation the rights to use, copy, modify, merge, publish,
10  * distribute, sublicense, and/or sell copies of the Software, and to
11  * permit persons to whom the Software is furnished to do so, subject to
12  * the following conditions:
13  *
14  * The above copyright notice and this permission notice shall be
15  * included in all copies or substantial portions of the Software.
16  *
17  * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
18  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24  */
25 
165 #if !defined (PLIBSYS_H_INSIDE) && !defined (PLIBSYS_COMPILATION)
166 # error "Header files shouldn't be included directly, consider using <plibsys.h> instead."
167 #endif
168 
169 #ifndef PLIBSYS_HEADER_PMAIN_H
170 #define PLIBSYS_HEADER_PMAIN_H
171 
172 #include <pmacros.h>
173 #include <pmem.h>
174 
176 
181 P_LIB_API void p_libsys_init (void);
182 
188 P_LIB_API void p_libsys_init_full (const PMemVTable *vtable);
189 
195 P_LIB_API void p_libsys_shutdown (void);
196 
205 P_LIB_API const pchar * p_libsys_version (void);
206 
208 
209 #endif /* PLIBSYS_HEADER_PMAIN_H */
#define P_END_DECLS
Closes .h file declarations to be exported as C functions, should be always used after P_BEGIN_DECLS...
Definition: pmacros.h:299
P_LIB_API void p_libsys_shutdown(void)
Frees library resources.
P_LIB_API const pchar * p_libsys_version(void)
Gets the library version against which it was compiled at run-time.
P_LIB_API void p_libsys_init_full(const PMemVTable *vtable)
Initializes library resources along with the memory table.
char pchar
Type for a char.
Definition: ptypes.h:116
Memory management.
Miscellaneous macros.
P_BEGIN_DECLS P_LIB_API void p_libsys_init(void)
Initializes library resources.
#define P_LIB_API
Exports a symbol from a shared library.
Definition: pmacros.h:138
P_BEGIN_DECLS struct PMemVTable_ PMemVTable
Memory management table.
#define P_BEGIN_DECLS
Starts .h file declarations to be exported as C functions.
Definition: pmacros.h:298