-
Notifications
You must be signed in to change notification settings - Fork 0
/
host.c.v
31 lines (28 loc) · 930 Bytes
/
host.c.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module clap
@[heap; typedef]
pub struct C.clap_host_t {
pub:
clap_version Version
host_data voidptr // Reserved pointer for the host.
name &char // Mandatory.
vendor &char
url &char
version &char // Mandatory.
// Query an extension.
// The returned pointer is owned by the host.
// It is forbidden to call it before plugin->init().
// You can call it within plugin->init() call, and after.
// [thread-safe]
get_extension fn (host &Host, extension_id &char) voidptr
// Request the host to deactivate and then reactivate the plugin.
// [thread-safe]
request_restart fn (host &Host)
// Request the host to activate and start processing the plugin.
// [thread-safe]
request_process fn (host &Host)
// Request the host to schedule a call to plugin->on_main_thread(plugin)
// on the main thread.
// [thread-safe]
request_callback fn (host &Host)
}
pub type Host = C.clap_host_t