[][src]Function sequoia_ffi::store::sq_mapping_open

#[no_mangle]pub extern "C" fn sq_mapping_open(
    ctx: *mut Context,
    realm: *const c_char,
    name: *const c_char
) -> *mut Mapping

Opens a mapping.

C Declaration

sq_mapping_open (pgp_context_t ctx,
                 const char *realm,
                 const char *name);

Opens a mapping with the given name. If the mapping does not exist, it is created. Mappings are handles for objects maintained by a background service. The background service associates state with this name.

The mapping updates Certs in compliance with the network policy of the context that created the mapping in the first place. Opening the mapping with a different network policy is forbidden.