-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
63 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,76 @@ | ||
package pdk | ||
|
||
type extismPointer uint64 | ||
type ExtismPointer uint64 | ||
|
||
//go:wasmimport env extism_input_length | ||
func extism_input_length() uint64 | ||
|
||
//go:wasmimport env extism_length | ||
func extism_length(extismPointer) uint64 | ||
func extism_length(ExtismPointer) uint64 | ||
|
||
//go:wasmimport env extism_alloc | ||
func extism_alloc(uint64) extismPointer | ||
func extism_alloc(uint64) ExtismPointer | ||
|
||
//go:wasmimport env extism_free | ||
func extism_free(extismPointer) | ||
func extism_free(ExtismPointer) | ||
|
||
//go:wasmimport env extism_input_load_u8 | ||
func extism_input_load_u8_(extismPointer) uint32 | ||
func extism_input_load_u8_(ExtismPointer) uint32 | ||
|
||
func extism_input_load_u8(p extismPointer) uint8 { | ||
func extism_input_load_u8(p ExtismPointer) uint8 { | ||
return uint8(extism_input_load_u8_(p)) | ||
} | ||
|
||
//go:wasmimport env extism_input_load_u64 | ||
func extism_input_load_u64(extismPointer) uint64 | ||
func extism_input_load_u64(ExtismPointer) uint64 | ||
|
||
//go:wasmimport env extism_output_set | ||
func extism_output_set(extismPointer, uint64) | ||
func extism_output_set(ExtismPointer, uint64) | ||
|
||
//go:wasmimport env extism_error_set | ||
func extism_error_set(extismPointer) | ||
func extism_error_set(ExtismPointer) | ||
|
||
//go:wasmimport env extism_config_get | ||
func extism_config_get(extismPointer) extismPointer | ||
func extism_config_get(ExtismPointer) ExtismPointer | ||
|
||
//go:wasmimport env extism_var_get | ||
func extism_var_get(extismPointer) extismPointer | ||
func extism_var_get(ExtismPointer) ExtismPointer | ||
|
||
//go:wasmimport env extism_var_set | ||
func extism_var_set(extismPointer, extismPointer) | ||
func extism_var_set(ExtismPointer, ExtismPointer) | ||
|
||
//go:wasmimport env extism_store_u8 | ||
func extism_store_u8_(extismPointer, uint32) | ||
func extism_store_u8(p extismPointer, v uint8) { | ||
func extism_store_u8_(ExtismPointer, uint32) | ||
func extism_store_u8(p ExtismPointer, v uint8) { | ||
extism_store_u8_(p, uint32(v)) | ||
} | ||
|
||
//go:wasmimport env extism_load_u8 | ||
func extism_load_u8_(extismPointer) uint32 | ||
func extism_load_u8(p extismPointer) uint8 { | ||
func extism_load_u8_(ExtismPointer) uint32 | ||
func extism_load_u8(p ExtismPointer) uint8 { | ||
return uint8(extism_load_u8_(p)) | ||
} | ||
|
||
//go:wasmimport env extism_store_u64 | ||
func extism_store_u64(extismPointer, uint64) | ||
func extism_store_u64(ExtismPointer, uint64) | ||
|
||
//go:wasmimport env extism_load_u64 | ||
func extism_load_u64(extismPointer) uint64 | ||
func extism_load_u64(ExtismPointer) uint64 | ||
|
||
//go:wasmimport env extism_http_request | ||
func extism_http_request(extismPointer, extismPointer) extismPointer | ||
func extism_http_request(ExtismPointer, ExtismPointer) ExtismPointer | ||
|
||
//go:wasmimport env extism_http_status_code | ||
func extism_http_status_code() int32 | ||
|
||
//go:wasmimport env extism_log_info | ||
func extism_log_info(extismPointer) | ||
func extism_log_info(ExtismPointer) | ||
|
||
//go:wasmimport env extism_log_debug | ||
func extism_log_debug(extismPointer) | ||
func extism_log_debug(ExtismPointer) | ||
|
||
//go:wasmimport env extism_log_warn | ||
func extism_log_warn(extismPointer) | ||
func extism_log_warn(ExtismPointer) | ||
|
||
//go:wasmimport env extism_log_error | ||
func extism_log_error(extismPointer) | ||
func extism_log_error(ExtismPointer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters