mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-15 01:41:21 +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 {
|
typedef struct {
|
||||||
|
|
||||||
|
} wasmer_memory_t;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
|
||||||
} wasmer_exports_t;
|
} wasmer_exports_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@ -99,10 +103,6 @@ typedef struct {
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
||||||
} wasmer_memory_t;
|
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
|
|
||||||
} wasmer_table_t;
|
} wasmer_table_t;
|
||||||
|
|
||||||
typedef union {
|
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_);
|
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
|
* Frees the memory for the given exports
|
||||||
*/
|
*/
|
||||||
|
@ -61,6 +61,10 @@ struct wasmer_export_t {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct wasmer_memory_t {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
struct wasmer_exports_t {
|
struct wasmer_exports_t {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -94,10 +98,6 @@ struct wasmer_instance_context_t {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct wasmer_memory_t {
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct wasmer_table_t {
|
struct wasmer_table_t {
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -210,6 +210,12 @@ wasmer_byte_array wasmer_export_name(wasmer_export_t *export_);
|
|||||||
/// Gets export func from export
|
/// Gets export func from export
|
||||||
const wasmer_export_func_t *wasmer_export_to_func(const 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
|
/// Frees the memory for the given exports
|
||||||
void wasmer_exports_destroy(wasmer_exports_t *exports);
|
void wasmer_exports_destroy(wasmer_exports_t *exports);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user