Skip to content

Commit

Permalink
chore: use extism:env namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko committed Oct 13, 2023
1 parent 66c2c82 commit c309994
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/ffi.zig
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
pub const ExtismPointer = u64;
pub extern fn extism_input_length() u64;
pub extern fn extism_length(ExtismPointer) u64;
pub extern fn extism_alloc(u64) ExtismPointer;
pub extern fn extism_free(ExtismPointer) void;
pub extern fn extism_input_load_u8(ExtismPointer) u8;
pub extern fn extism_input_load_u64(ExtismPointer) u64;
pub extern fn extism_output_set(ExtismPointer, u64) void;
pub extern fn extism_error_set(ExtismPointer) void;
pub extern fn extism_config_get(ExtismPointer) ExtismPointer;
pub extern fn extism_var_get(ExtismPointer) ExtismPointer;
pub extern fn extism_var_set(ExtismPointer, ExtismPointer) void;
pub extern fn extism_store_u8(ExtismPointer, u8) void;
pub extern fn extism_load_u8(ExtismPointer) u8;
pub extern fn extism_store_u64(ExtismPointer, u64) void;
pub extern fn extism_load_u64(ExtismPointer) u64;
pub extern fn extism_http_request(ExtismPointer, ExtismPointer) ExtismPointer;
pub extern fn extism_http_status_code() i32;
pub extern fn extism_log_info(ExtismPointer) void;
pub extern fn extism_log_debug(ExtismPointer) void;
pub extern fn extism_log_warn(ExtismPointer) void;
pub extern fn extism_log_error(ExtismPointer) void;
pub extern "extism:env" fn extism_input_length() u64;
pub extern "extism:env" fn extism_length(ExtismPointer) u64;
pub extern "extism:env" fn extism_alloc(u64) ExtismPointer;
pub extern "extism:env" fn extism_free(ExtismPointer) void;
pub extern "extism:env" fn extism_input_load_u8(ExtismPointer) u8;
pub extern "extism:env" fn extism_input_load_u64(ExtismPointer) u64;
pub extern "extism:env" fn extism_output_set(ExtismPointer, u64) void;
pub extern "extism:env" fn extism_error_set(ExtismPointer) void;
pub extern "extism:env" fn extism_config_get(ExtismPointer) ExtismPointer;
pub extern "extism:env" fn extism_var_get(ExtismPointer) ExtismPointer;
pub extern "extism:env" fn extism_var_set(ExtismPointer, ExtismPointer) void;
pub extern "extism:env" fn extism_store_u8(ExtismPointer, u8) void;
pub extern "extism:env" fn extism_load_u8(ExtismPointer) u8;
pub extern "extism:env" fn extism_store_u64(ExtismPointer, u64) void;
pub extern "extism:env" fn extism_load_u64(ExtismPointer) u64;
pub extern "extism:env" fn extism_http_request(ExtismPointer, ExtismPointer) ExtismPointer;
pub extern "extism:env" fn extism_http_status_code() i32;
pub extern "extism:env" fn extism_log_info(ExtismPointer) void;
pub extern "extism:env" fn extism_log_debug(ExtismPointer) void;
pub extern "extism:env" fn extism_log_warn(ExtismPointer) void;
pub extern "extism:env" fn extism_log_error(ExtismPointer) void;

0 comments on commit c309994

Please sign in to comment.