summaryrefslogtreecommitdiff
path: root/uisimulator/win32/plugin-win32.h
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2003-06-29 23:38:03 +0000
committerHardeep Sidhu <dyp@pobox.com>2003-06-29 23:38:03 +0000
commitdd5d3f652f99096ced7313d3f2179aa36501f1f5 (patch)
tree5b8abf7c7995023132499beedc9ae7e9af088d74 /uisimulator/win32/plugin-win32.h
parentba5dfbd71ef9ea1a1c786d02e10311decc9ced64 (diff)
downloadrockbox-dd5d3f652f99096ced7313d3f2179aa36501f1f5.tar.gz
rockbox-dd5d3f652f99096ced7313d3f2179aa36501f1f5.zip
Changed win32 simulator to use plugin.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3784 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/win32/plugin-win32.h')
-rw-r--r--uisimulator/win32/plugin-win32.h37
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
32typedef 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"