Remove unused API functions

This commit is contained in:
Brandon Fish
2019-02-17 14:48:30 -06:00
parent 36767e0bd6
commit a77d1be983
4 changed files with 0 additions and 120 deletions

View File

@ -24,8 +24,6 @@ enum class wasmer_value_tag : uint32_t {
WASM_F64,
};
struct wasmer_import_object_t;
struct wasmer_instance_context_t;
struct wasmer_instance_t;
@ -189,26 +187,6 @@ wasmer_global_t *wasmer_global_new(wasmer_value_t value, bool mutable_);
/// Sets the value stored by the given Global
void wasmer_global_set(wasmer_global_t *global, wasmer_value_t value);
/// Frees memory for the given ImportObject
void wasmer_import_object_destroy(wasmer_import_object_t *import_object);
/// Creates a new ImportObject and returns a pointer to it.
/// The caller owns the object and should call `wasmer_import_object_destroy` to free it.
wasmer_import_object_t *wasmer_import_object_new();
/// Registers a `func` with provided `name` and `namespace` into the ImportObject.
/// 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.
void wasmer_imports_set_import_func(wasmer_import_object_t *import_object,
const char *namespace_,
const char *name,
void (*func)(void *data),
const wasmer_value_tag *params,
int params_len,
const wasmer_value_tag *returns,
int returns_len);
/// Calls an instances exported function by `name` with the provided parameters.
/// Results are set using the provided `results` pointer.
/// Returns `wasmer_result_t::WASMER_OK` upon success.