Module sdk

Source

Structs§

ExtismCancelHandle
ExtismFunction
Wraps host functions
ExtismVal
ExtismVal holds the type and value of a function argument/return

Functions§

extism_context_free
Free a context
extism_context_new
Create a new context
extism_context_reset
Remove all plugins from the registry
extism_current_plugin_memory
Returns a pointer to the memory of the currently running plugin NOTE: this should only be called from host functions.
extism_current_plugin_memory_alloc
Allocate a memory block in the currently running plugin NOTE: this should only be called from host functions.
extism_current_plugin_memory_free
Free an allocated memory block NOTE: this should only be called from host functions.
extism_current_plugin_memory_length
Get the length of an allocated block NOTE: this should only be called from host functions.
extism_error
Get the error associated with a Context or Plugin, if plugin is -1 then the context error will be returned
extism_function_free
Free an ExtismFunction
extism_function_new
Create a new host function
extism_function_set_namespace
Set the namespace of an ExtismFunction
extism_log_file
Set log file and level
extism_plugin_call
Call a function
extism_plugin_cancel
Cancel a running plugin
extism_plugin_cancel_handle
Get plugin ID for cancellation
extism_plugin_config
Update plugin config values, this will merge with the existing values
extism_plugin_free
Remove a plugin from the registry and free associated memory
extism_plugin_function_exists
Returns true if func_name exists
extism_plugin_new
Create a new plugin with additional host functions
extism_plugin_output_data
Get a pointer to the output data
extism_plugin_output_length
Get the length of a plugin’s output data
extism_plugin_update
Update a plugin, keeping the existing ID
extism_version
Get the Extism version string
get_context_error

Type Aliases§

ExtismFunctionType
Host function signature

Unions§

ValUnion
A union type for host function argument/return values