029eb125bcbe7e7c8df789291acc29b22e1a1d5f
[mono.git] / mono / utils / mono-dl-wasm.c
1 #include <config.h>
2
3 #if defined (HOST_WASM)
4
5 #include "mono/utils/mono-dl.h"
6 #include "mono/utils/mono-embed.h"
7 #include "mono/utils/mono-path.h"
8
9 #include <stdlib.h>
10 #include <stdio.h>
11 #include <ctype.h>
12 #include <string.h>
13 #include <glib.h>
14
15 const char *
16 mono_dl_get_so_prefix (void)
17 {
18         return "";
19 }
20 const char **
21 mono_dl_get_so_suffixes (void)
22 {
23         static const char *suffixes[] = {
24                 ".wasm",
25                 "",
26         };
27         return suffixes;
28 }
29
30 int
31 mono_dl_get_executable_path (char *buf, int buflen)
32 {
33         strncpy (buf, "/managed", buflen);
34         return 0;
35 }
36
37 const char*
38 mono_dl_get_system_dir (void)
39 {
40         return NULL;
41 }
42
43
44 void*
45 mono_dl_lookup_symbol (MonoDl *module, const char *name)
46 {
47         return NULL;
48 }
49
50 char*
51 mono_dl_current_error_string (void)
52 {
53         return g_strdup ("");
54 }
55
56
57 int
58 mono_dl_convert_flags (int flags)
59 {
60         return flags;
61 }
62
63 void *
64 mono_dl_open_file (const char *file, int flags)
65 {
66         return NULL;
67 }
68
69 void
70 mono_dl_close_handle (MonoDl *module)
71 {
72         //nothing to do
73 }
74
75 #endif