diff options
Diffstat (limited to 'uisimulator/win32/plugin-win32.h')
-rw-r--r-- | uisimulator/win32/plugin-win32.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/uisimulator/win32/plugin-win32.h b/uisimulator/win32/plugin-win32.h new file mode 100644 index 0000000000..9e17d425ec --- /dev/null +++ b/uisimulator/win32/plugin-win32.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 Björn Stenberg | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #include <windows.h> | ||
21 | #include "plugin.h" | ||
22 | #include "file.h" | ||
23 | |||
24 | #define RTLD_NOW 0 | ||
25 | |||
26 | #undef filesize | ||
27 | #define filesize win32_filesize | ||
28 | |||
29 | #undef ftruncate | ||
30 | #define ftruncate NULL | ||
31 | |||
32 | typedef enum plugin_status (*plugin_fn)(struct plugin_api* api, void* param); | ||
33 | |||
34 | #define dlopen(_x_, _y_) LoadLibrary(_x_) | ||
35 | #define dlsym(_x_, _y_) (plugin_fn)GetProcAddress(_x_, _y_) | ||
36 | #define dlclose(_x_) FreeLibrary(_x_) | ||
37 | #define dlerror() "Unknown" | ||