Skip to main content

Crate anvil_sys

Crate anvil_sys 

Source
Expand description

Raw bindings to the Anvil plugin API 2 (include/anvil/anvil_plugin.h).

The items of bindings.rs are generated by bindgen; this file adds what a header cannot say: the type of the one function a plugin exports and compile-time checks of the layouts the host and the plugin share.

Structs§

AnvilChange
AnvilCpuContext
AnvilGameInfo
AnvilHost
AnvilPlugin

Constants§

ANVIL_API_VERSION
ANVIL_ERROR_ALREADY_EXISTS
ANVIL_ERROR_BYTES_MISMATCH
ANVIL_ERROR_CONFLICT
ANVIL_ERROR_INTERNAL
ANVIL_ERROR_INVALID_ARGUMENT
ANVIL_ERROR_NOT_DECLARED
ANVIL_ERROR_NOT_FOUND
ANVIL_ERROR_OUT_OF_MEMORY
ANVIL_ERROR_UNSAFE_SITE
ANVIL_ERROR_UNSUPPORTED
ANVIL_ERROR_WRONG_KIND
ANVIL_ERROR_WRONG_PHASE
ANVIL_EVENT_PLUGINS_LOADED
ANVIL_EVENT_RESUMED
ANVIL_EVENT_SUSPENDED
ANVIL_LOG_DEBUG
ANVIL_LOG_ERROR
ANVIL_LOG_INFO
ANVIL_LOG_WARNING
ANVIL_OK

Type Aliases§

AnvilCpuCallback
AnvilEventCallback
AnvilLogLevel
AnvilPluginLoadFn
The type of anvil_plugin_load, which every plugin exports (extern "C", not mangled): #[unsafe(no_mangle)] pub unsafe extern "C" fn anvil_plugin_load(…).
AnvilResult
AnvilSetting
AnvilSettingCallback
AnvilSymbol
wchar_t

Unions§

AnvilXmm