sh_set_config method
Apply a full configuration to the hook.
All fields in SHSelectionConfig are optional — pass 0/0.0 for defaults. Overwrites any previously set configuration. Must be called before sh_start.
@param hook Valid SelectionHook instance. @param config Pointer to configuration struct. @return SH_OK (0) on success, negative error code on failure. @thread_safety May be called from any thread before sh_start.
Implementation
int sh_set_config(
ffi.Pointer<SelectionHook> hook,
ffi.Pointer<SHSelectionConfig> config,
) {
return _sh_set_config(hook, config);
}