Module weld::ffi[][src]

C-compatible foreign function interface to Weld.

This module provides a C-compatible interface to the Weld library.

Re-exports

pub use runtime::ffi::*;
pub use super::WeldRuntimeErrno;
pub use super::WeldLogLevel;

Functions

weld_conf_free

Free a configuration.

weld_conf_get

Get a value associated with a key for a configuration.

weld_conf_new

Creates a new configuration.

weld_conf_set

Set the value of key to value.

weld_context_free

Frees a context.

weld_context_memory_usage

Gets the memory allocated by a Weld context.

weld_context_new

Creates a new context.

weld_error_code

Returns the error code for a Weld error.

weld_error_free

Frees a Weld error object.

weld_error_message

Returns a Weld error message.

weld_error_new

Creates a new Weld error object.

weld_load_library

Load a dynamic library that a Weld program can access.

weld_module_compile

Compiles a Weld program into a runnable module.

weld_module_free

Frees a module.

weld_module_run

Runs a compiled Weld module.

weld_set_log_level

Enables logging to stderr in Weld with the given log level.

weld_value_context

Returns the context of a value.

weld_value_data

Returns the data pointer for a Weld value.

weld_value_free

Frees a Weld value.

weld_value_new

Returns a new Weld value.

weld_value_run

Returns the Run ID of the value.

Type Definitions

WeldConfRef

An opauqe handle to a Weld configuration.

WeldContextRef

An opauqe handle to a Weld context.

WeldErrorRef

An opauqe handle to a Weld error.

WeldModuleRef

An opauqe handle to a Weld module.

WeldValueRef

An opauqe handle to a Weld data value.