fastly-sys 0.12.0

Fastly Compute ABI Bindings
Documentation
use fastly_shared::FastlyStatus;

pub type ConfigStoreHandle = u32;

#[link(wasm_import_module = "fastly_config_store")]
extern "C" {
    #[link_name = "open"]
    pub fn open(
        name: *const u8,
        name_len: usize,
        store_handle_out: *mut ConfigStoreHandle,
    ) -> FastlyStatus;

    #[link_name = "get"]
    pub fn get(
        store_handle: ConfigStoreHandle,
        key: *const u8,
        key_len: usize,
        value: *mut u8,
        value_max_len: usize,
        nwritten: *mut usize,
    ) -> FastlyStatus;
}