deCONZ C++ API v2.6.1
Loading...
Searching...
No Matches
u_library.h
1/*
2 * Copyright (c) 2023 Manuel Pietschmann.
3 * All rights reserved.
4 *
5 * The software in this package is published under the terms of the BSD
6 * style license a copy of which has been included with this distribution in
7 * the LICENSE.txt file.
8 *
9 *
10 * Upstream repository: https://git.sr.ht/~cryo/u_library
11 */
12
13#ifndef U_LIBRARY_H
14#define U_LIBRARY_H
15
16#ifndef U_LIBAPI
17#ifdef _WIN32
18 #ifdef USE_ULIB_SHARED
19 #define U_LIBAPI __declspec(dllimport)
20 #endif
21 #ifdef BUILD_ULIB_SHARED
22 #define U_LIBAPI __declspec(dllexport)
23 #endif
24#endif
25#endif /* ! defined(U_LIBAPI) */
26
27#ifndef U_LIBAPI
28#define U_LIBAPI
29#endif
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35U_LIBAPI void *U_library_open(const char *filename);
36U_LIBAPI void U_library_close(void *handle);
37U_LIBAPI void *U_library_symbol(void *handle, const char *symbol);
38
39#ifdef __cplusplus
40}
41#endif
42
43#endif /* U_LIBRARY_H */
44