Skip to content

Commit

Permalink
chore(c-api) Update headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Jan 26, 2021
1 parent 40bfc47 commit 55ff142
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions lib/c-api/wasmer_wasm.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,24 @@
#include <stdlib.h>
#include "wasm.h"

#if defined(WASMER_WASI_ENABLED)
enum wasi_version_t {
#if defined(WASMER_WASI_ENABLED)
LATEST = 0,
#endif
#if defined(WASMER_WASI_ENABLED)
SNAPSHOT0 = 1,
#endif
#if defined(WASMER_WASI_ENABLED)
SNAPSHOT1 = 2,
#endif
#if defined(WASMER_WASI_ENABLED)
INVALID_VERSION = 3,
#endif
};
typedef uint32_t wasi_version_t;
#endif

#if defined(WASMER_COMPILER_ENABLED)
/**
* Kind of compilers that can be used by the engines.
Expand Down Expand Up @@ -120,10 +138,6 @@ typedef struct wasi_config_t wasi_config_t;
typedef struct wasi_env_t wasi_env_t;
#endif

#if defined(WASMER_WASI_ENABLED)
typedef struct wasi_version_t wasi_version_t;
#endif

#if defined(WASMER_WASI_ENABLED)
void wasi_config_arg(wasi_config_t *config, const char *arg);
#endif
Expand Down

0 comments on commit 55ff142

Please sign in to comment.