File tree 5 files changed +25
-0
lines changed
5 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -926,6 +926,8 @@ LDPC | Low Density Parity Check Codes - a family of powerful FEC codes
926
926
* Add ability to double-click FreeDV Reporter entries to change the radio's frequency. (PR #592 )
927
927
* FreeDV Reporter: Add ability to force RX Only reporting in Tools->Options. (PR #599 )
928
928
* Add new 160m/80m/40m calling frequencies for IARU R2. (PR #601 )
929
+ 3 . Other:
930
+ * Report OS usage to FreeDV Reporter. (PR #606 )
929
931
930
932
## V1.9.4 October 2023
931
933
Original file line number Diff line number Diff line change 23
23
#define __OS_INTERFACE__
24
24
25
25
#include < future>
26
+ #include < string>
26
27
27
28
// Checks whether FreeDV has permissions to access the microphone on OSX Catalina
28
29
// and above. If the user doesn't grant permissions (returns FALSE), the GUI
@@ -38,4 +39,8 @@ void VerifyMicrophonePermissions(std::promise<bool>& promise);
38
39
// for more details.
39
40
extern " C" void ResetMainWindowColorSpace ();
40
41
42
+ // Retrieves a string representing the operating system that FreeDV is running on.
43
+ // This can be either "windows", "linux", "macos" or "other".
44
+ std::string GetOperatingSystemString ();
45
+
41
46
#endif // __OS_INTERFACE__
Original file line number Diff line number Diff line change @@ -75,3 +75,8 @@ void ResetMainWindowColorSpace()
75
75
assert (cs != nullptr );
76
76
CGColorSpaceRelease (cs);
77
77
}
78
+
79
+ std::string GetOperatingSystemString ()
80
+ {
81
+ return " macos" ;
82
+ }
Original file line number Diff line number Diff line change @@ -30,4 +30,15 @@ void VerifyMicrophonePermissions(std::promise<bool>& micPromise)
30
30
void ResetMainWindowColorSpace ()
31
31
{
32
32
// empty
33
+ }
34
+
35
+ std::string GetOperatingSystemString ()
36
+ {
37
+ #ifdef __linux__
38
+ return " linux" ;
39
+ #elif _WIN32
40
+ return " windows" ;
41
+ #else
42
+ return " other" ;
43
+ #endif // __linux__ || _WIN32
33
44
}
Original file line number Diff line number Diff line change 22
22
23
23
#include " FreeDVReporter.h"
24
24
#include " sio_client.h"
25
+ #include " ../os/os_interface.h"
25
26
26
27
using namespace std ::chrono_literals;
27
28
@@ -230,6 +231,7 @@ void FreeDVReporter::connect_()
230
231
auth->insert (" grid_square" , gridSquare_);
231
232
auth->insert (" version" , software_);
232
233
auth->insert (" rx_only" , sio::bool_message::create (rxOnly_));
234
+ auth->insert (" os" , GetOperatingSystemString ());
233
235
}
234
236
235
237
// Reconnect listener should re-report frequency so that "unknown"
You can’t perform that action at this time.
0 commit comments