Program listing for file kernel/src/utils/SiconosSharedLibrary/SiconosSharedLibrary.hpp#
Return to documentation for this file
1#ifndef SICONOSSHAREDLIBRARY_H
2#define SICONOSSHAREDLIBRARY_H
3
4#include <string>
5
6#ifndef _WIN32
7#define _SYS_UNX
8#endif
9
10#ifdef _WIN32
11#include <windows.h>
12#define DLEXPORT __declspec(dllexport)
13typedef HMODULE PluginHandle;
14#endif
15
16#ifdef _SYS_UNX
17#define DLEXPORT
18typedef void* PluginHandle;
19#endif
20
21
22namespace SiconosSharedLibrary
23{
24
25 PluginHandle loadPlugin(const std::string& pluginPath);
26
27
28 void * getProcAddress(PluginHandle plugin, const std::string& procedure);
29
30
31 void closePlugin(const std::string& pluginFile);
32}
33
34
35namespace SSL = SiconosSharedLibrary;
36
37#endif