From bbf8a923b8f12a87329e5eb9a4d2b97105226a67 Mon Sep 17 00:00:00 2001 From: zach Date: Mon, 25 Nov 2024 10:11:29 -0800 Subject: [PATCH] chore: update ffi bindings to add compiled plugin and host context functions --- lib/extism/libextism.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/extism/libextism.rb b/lib/extism/libextism.rb index cb7064f..07aa4b0 100644 --- a/lib/extism/libextism.rb +++ b/lib/extism/libextism.rb @@ -60,13 +60,17 @@ class ExtismFunction < FFI::Struct attach_function :extism_function_free, [:pointer], :void attach_function :extism_function_set_namespace, %i[pointer string], :void attach_function :extism_plugin_new, %i[pointer ExtismSize pointer ExtismSize bool pointer], :pointer + attach_function :extism_plugin_new_from_compiled, %i[pointer pointer], :pointer + attach_function :extism_compiled_plugin_new, %i[pointer ExtismSize pointer ExtismSize bool pointer], :pointer attach_function :extism_plugin_new_error_free, [:pointer], :void attach_function :extism_plugin_free, [:pointer], :void + attach_function :extism_compiled_plugin_free, [:pointer], :void attach_function :extism_plugin_cancel_handle, [:pointer], :pointer attach_function :extism_plugin_cancel, [:pointer], :bool attach_function :extism_plugin_config, %i[pointer pointer ExtismSize], :bool attach_function :extism_plugin_function_exists, %i[pointer string], :bool attach_function :extism_plugin_call, %i[pointer string pointer ExtismSize], :int32 + attach_function :extism_plugin_call_with_host_context, %i[pointer string pointer ExtismSize pointer], :int32 attach_function :extism_error, [:pointer], :string attach_function :extism_plugin_error, [:pointer], :string attach_function :extism_plugin_output_length, [:pointer], :ExtismSize