Skip to content

Commit

Permalink
extism::env => extism:env
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmd-azeez committed Oct 11, 2023
1 parent c7811fc commit 84aa6c8
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/Extism.Pdk/native/extism.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,147 +17,147 @@

typedef uint64_t ExtismPointer;

IMPORT("extism::env", "input_length")
IMPORT("extism:env", "input_length")
extern uint64_t extism_input_length_import();

uint64_t extism_input_length() {
return extism_input_length_import();
}

IMPORT("extism::env", "length")
IMPORT("extism:env", "length")
extern uint64_t extism_length_import(ExtismPointer);

uint64_t extism_length(ExtismPointer p) {
return extism_length_import(p);
}

IMPORT("extism::env", "alloc")
IMPORT("extism:env", "alloc")
extern ExtismPointer extism_alloc_import(uint64_t size);

ExtismPointer extism_alloc(uint64_t size) {
return extism_alloc_import(size);
}

IMPORT("extism::env", "free")
IMPORT("extism:env", "free")
extern void extism_free_import(ExtismPointer p);

void extism_free(ExtismPointer p) {
extism_free_import(p);
}

IMPORT("extism::env", "input_load_u8")
IMPORT("extism:env", "input_load_u8")
extern uint8_t extism_input_load_u8_import(ExtismPointer p);

uint8_t extism_input_load_u8(ExtismPointer p) {
return extism_input_load_u8_import(p);
}

IMPORT("extism::env", "input_load_u64")
IMPORT("extism:env", "input_load_u64")
extern uint64_t extism_input_load_u64_import(ExtismPointer p);

uint64_t extism_input_load_u64(ExtismPointer p) {
return extism_input_load_u64_import(p);
}

IMPORT("extism::env", "output_set")
IMPORT("extism:env", "output_set")
extern void extism_output_set_import(ExtismPointer p, uint64_t value);

void extism_output_set(ExtismPointer p, uint64_t value) {
extism_output_set_import(p, value);
}

IMPORT("extism::env", "error_set")
IMPORT("extism:env", "error_set")
extern void extism_error_set_import(ExtismPointer p);

void extism_error_set(ExtismPointer p) {
extism_error_set_import(p);
}

IMPORT("extism::env", "config_get")
IMPORT("extism:env", "config_get")
extern ExtismPointer extism_config_get_import(ExtismPointer p);

ExtismPointer extism_config_get(ExtismPointer p) {
return extism_config_get_import(p);
}

IMPORT("extism::env", "var_get")
IMPORT("extism:env", "var_get")
extern ExtismPointer extism_var_get_import(ExtismPointer p);

ExtismPointer extism_var_get(ExtismPointer p) {
return extism_var_get_import(p);
}

IMPORT("extism::env", "var_set")
IMPORT("extism:env", "var_set")
extern void extism_var_set_import(ExtismPointer p1, ExtismPointer p2);

void extism_var_set(ExtismPointer p1, ExtismPointer p2) {
extism_var_set_import(p1, p2);
}

IMPORT("extism::env", "store_u8")
IMPORT("extism:env", "store_u8")
extern void extism_store_u8_import(ExtismPointer p, uint8_t value);

void extism_store_u8(ExtismPointer p, uint8_t value) {
extism_store_u8_import(p, value);
}

IMPORT("extism::env", "load_u8")
IMPORT("extism:env", "load_u8")
extern uint8_t extism_load_u8_import(ExtismPointer p);

uint8_t extism_load_u8(ExtismPointer p) {
return extism_load_u8_import(p);
}

IMPORT("extism::env", "store_u64")
IMPORT("extism:env", "store_u64")
extern void extism_store_u64_import(ExtismPointer p, uint64_t value);

void extism_store_u64(ExtismPointer p, uint64_t value) {
extism_store_u64_import(p, value);
}

IMPORT("extism::env", "load_u64")
IMPORT("extism:env", "load_u64")
extern uint64_t extism_load_u64_import(ExtismPointer p);

uint64_t extism_load_u64(ExtismPointer p) {
return extism_load_u64_import(p);
}

IMPORT("extism::env", "http_request")
IMPORT("extism:env", "http_request")
extern ExtismPointer extism_http_request_import(ExtismPointer p1, ExtismPointer p2);

ExtismPointer extism_http_request(ExtismPointer p1, ExtismPointer p2) {
return extism_http_request_import(p1, p2);
}

IMPORT("extism::env", "http_status_code")
IMPORT("extism:env", "http_status_code")
extern int32_t extism_http_status_code_import();

int32_t extism_http_status_code() {
return extism_http_status_code_import();
}

IMPORT("extism::env", "log_info")
IMPORT("extism:env", "log_info")
extern void extism_log_info_import(ExtismPointer p);

void extism_log_info(ExtismPointer p) {
extism_log_info_import(p);
}

IMPORT("extism::env", "log_debug")
IMPORT("extism:env", "log_debug")
extern void extism_log_debug_import(ExtismPointer p);

void extism_log_debug(ExtismPointer p) {
extism_log_debug_import(p);
}

IMPORT("extism::env", "log_warn")
IMPORT("extism:env", "log_warn")
extern void extism_log_warn_import(ExtismPointer p);

void extism_log_warn(ExtismPointer p) {
extism_log_warn_import(p);
}

IMPORT("extism::env", "log_error")
IMPORT("extism:env", "log_error")
extern void extism_log_error_import(ExtismPointer p);

void extism_log_error(ExtismPointer p) {
Expand Down

0 comments on commit 84aa6c8

Please sign in to comment.