Skip to content

Commit 55ff142

Browse files
committedJan 26, 2021
chore(c-api) Update headers.
1 parent 40bfc47 commit 55ff142

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed
 

‎lib/c-api/wasmer_wasm.h

+18-4
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,24 @@
6262
#include <stdlib.h>
6363
#include "wasm.h"
6464

65+
#if defined(WASMER_WASI_ENABLED)
66+
enum wasi_version_t {
67+
#if defined(WASMER_WASI_ENABLED)
68+
LATEST = 0,
69+
#endif
70+
#if defined(WASMER_WASI_ENABLED)
71+
SNAPSHOT0 = 1,
72+
#endif
73+
#if defined(WASMER_WASI_ENABLED)
74+
SNAPSHOT1 = 2,
75+
#endif
76+
#if defined(WASMER_WASI_ENABLED)
77+
INVALID_VERSION = 3,
78+
#endif
79+
};
80+
typedef uint32_t wasi_version_t;
81+
#endif
82+
6583
#if defined(WASMER_COMPILER_ENABLED)
6684
/**
6785
* Kind of compilers that can be used by the engines.
@@ -120,10 +138,6 @@ typedef struct wasi_config_t wasi_config_t;
120138
typedef struct wasi_env_t wasi_env_t;
121139
#endif
122140

123-
#if defined(WASMER_WASI_ENABLED)
124-
typedef struct wasi_version_t wasi_version_t;
125-
#endif
126-
127141
#if defined(WASMER_WASI_ENABLED)
128142
void wasi_config_arg(wasi_config_t *config, const char *arg);
129143
#endif

0 commit comments

Comments
 (0)