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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! `CGrountToAirChannel` FFI declarations.
use std::ffi::c_char;
use crate::EsHandle;
unsafe extern "C" {
/// Whether the channel handle is valid (`CGrountToAirChannel::IsValid`).
pub fn es_gtachannel_is_valid(h: EsHandle) -> bool;
/// Name of the communication channel (`GetName`). Borrowed, NUL-terminated.
pub fn es_gtachannel_name(h: EsHandle) -> *const c_char;
/// Frequency of the communication channel (`GetFrequency`).
pub fn es_gtachannel_frequency(h: EsHandle) -> f64;
/// Voice server name of the channel (`GetVoiceServer`). Borrowed, NUL-terminated.
pub fn es_gtachannel_voice_server(h: EsHandle) -> *const c_char;
/// Voice server channel name (`GetVoiceChannel`). Borrowed, NUL-terminated.
pub fn es_gtachannel_voice_channel(h: EsHandle) -> *const c_char;
/// Whether this is the primary channel (`GetIsPrimary`).
pub fn es_gtachannel_is_primary(h: EsHandle) -> bool;
/// Whether this is the ATIS channel (`GetIsAtis`).
pub fn es_gtachannel_is_atis(h: EsHandle) -> bool;
/// Whether the channel is receiving text messages (`GetIsTextReceiveOn`).
pub fn es_gtachannel_is_text_receive_on(h: EsHandle) -> bool;
/// Whether the channel is transmitting text messages (`GetIsTextTransmitOn`).
pub fn es_gtachannel_is_text_transmit_on(h: EsHandle) -> bool;
/// Whether the channel's voice-receive checkbox is set (`GetIsVoiceReceiveOn`).
pub fn es_gtachannel_is_voice_receive_on(h: EsHandle) -> bool;
/// Whether the channel is transmitting voice (`GetIsVoiceTransmitOn`).
pub fn es_gtachannel_is_voice_transmit_on(h: EsHandle) -> bool;
/// Whether the channel is connected to the voice server (`GetIsVoiceConnected`).
pub fn es_gtachannel_is_voice_connected(h: EsHandle) -> bool;
/// Toggle the primary setting of the channel (`TogglePrimary`).
pub fn es_gtachannel_toggle_primary(h: EsHandle);
/// Toggle the ATIS setting of the channel (`ToggleAtis`).
pub fn es_gtachannel_toggle_atis(h: EsHandle);
/// Toggle the text-receive setting of the channel (`ToggleTextReceive`).
pub fn es_gtachannel_toggle_text_receive(h: EsHandle);
/// Toggle the text-transmit setting of the channel (`ToggleTextTransmit`).
pub fn es_gtachannel_toggle_text_transmit(h: EsHandle);
/// Toggle the voice-receive setting of the channel (`ToggleVoiceReceive`).
pub fn es_gtachannel_toggle_voice_receive(h: EsHandle);
/// Toggle the voice-transmit setting of the channel (`ToggleVoiceTransmit`).
pub fn es_gtachannel_toggle_voice_transmit(h: EsHandle);
}