forked from airnavsystems/rbfeeder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
airnav_vhf.h
executable file
·68 lines (56 loc) · 1.44 KB
/
airnav_vhf.h
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
62
63
64
65
66
67
68
/*
* Copyright (c) 2020 - AirNav Systems
*
* https://www.radarbox.com
*
* More info: https://github.com/AirNav-Systems/rbfeeder
*
*/
#ifndef AIRNAV_VHF_H
#define AIRNAV_VHF_H
#ifdef __cplusplus
extern "C" {
#endif
#include "rbfeeder.h"
/****** Variables ******/
extern char *vhf_pidfile;
extern char *vhf_config_file;
extern char *ice_host;
extern char *ice_mountpoint;
extern int ice_port;
extern char *ice_user;
extern char *ice_pwd;
extern int vhf_device;
extern double vhf_gain;
extern int vhf_squelch;
extern int vhf_correction;
extern int vhf_afc;
extern char *vhf_mode;
extern char *vhf_freqs;
extern int autostart_vhf;
extern pid_t p_vhf;
extern char *vhf_cmd;
extern char *vhf_stop_cmd;
extern char *vhf_dongle_serial;
extern char *liveatc_mount;
extern char *liveatc_user;
extern char *liveatc_pwd;
// Custom audio feed
extern char *ice_custom_url;
extern int ice_custom_port;
extern char *ice_custom_user;
extern char *ice_custom_pwd;
extern char *ice_custom_mount;
// Functions
int generateVHFConfig();
void stopVhf(void);
void startVhf(void);
int checkVhfRunning(void);
void restartVhf();
int loadVhfConfig();
int saveVhfConfig(void);
void sendVhfConfig(void);
#ifdef __cplusplus
}
#endif
#endif /* AIRNAV_VHF_H */