mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-21 04:31:33 +00:00
chore(runtime-c-api) Build the C and C++ headers.
This commit is contained in:
@ -66,6 +66,10 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
|
||||
} wasmer_memory_t;
|
||||
|
||||
typedef struct {
|
||||
|
||||
} wasmer_exports_t;
|
||||
|
||||
typedef struct {
|
||||
@ -99,10 +103,6 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
|
||||
} wasmer_memory_t;
|
||||
|
||||
typedef struct {
|
||||
|
||||
} wasmer_table_t;
|
||||
|
||||
typedef union {
|
||||
@ -241,6 +241,14 @@ wasmer_byte_array wasmer_export_name(wasmer_export_t *export_);
|
||||
*/
|
||||
const wasmer_export_func_t *wasmer_export_to_func(const wasmer_export_t *export_);
|
||||
|
||||
/**
|
||||
* Gets a memory pointer from an export pointer.
|
||||
* Returns `wasmer_result_t::WASMER_OK` upon success.
|
||||
* Returns `wasmer_result_t::WASMER_ERROR` upon failure. Use `wasmer_last_error_length`
|
||||
* and `wasmer_last_error_message` to get an error message.
|
||||
*/
|
||||
wasmer_result_t wasmer_export_to_memory(const wasmer_export_t *export_, wasmer_memory_t **memory);
|
||||
|
||||
/**
|
||||
* Frees the memory for the given exports
|
||||
*/
|
||||
|
Reference in New Issue
Block a user