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
31
32
33
use crate::{host::*, plugin::*};
use std::os::raw::c_char;
pub const CLAP_EXT_CHECK_FOR_UPDATE: *const c_char =
b"clap.check_for_update.draft/0\0".as_ptr() as *const c_char;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct clap_check_for_update_info {
pub version: *const c_char,
pub release_date: *const c_char,
pub url: *const c_char,
pub is_preview: bool,
}
unsafe impl Send for clap_check_for_update_info {}
unsafe impl Sync for clap_check_for_update_info {}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct clap_plugin_check_for_update {
pub check: unsafe extern "C" fn(plugin: *const clap_plugin, include_preview: bool),
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct clap_host_check_for_update {
pub on_new_version: unsafe extern "C" fn(
host: *const clap_host,
update_info: *const clap_check_for_update_info,
),
}