]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
use iwyu to rewrite the #include statements in all .c/.h files
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Tue, 5 Dec 2023 13:25:11 +0000 (18:55 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sun, 17 Dec 2023 05:57:32 +0000 (11:27 +0530)
118 files changed:
about_menu.c
about_menu.h
action_dialog.c
actions.c
actions.h
adc.h
agc_menu.c
agc_menu.h
ant_menu.c
ant_menu.h
band.c
band.h
band_menu.c
band_menu.h
bandstack_menu.c
bandstack_menu.h
button_text.c
configure.c
css.c
cw_menu.c
cw_menu.h
discovered.c
discovery.c
display_menu.c
display_menu.h
diversity_menu.c
diversity_menu.h
dsp_menu.c
dsp_menu.h
encoder_menu.c
equalizer_menu.c
equalizer_menu.h
error_handler.c
exit_menu.c
exit_menu.h
ext.c
fft_menu.c
fft_menu.h
filter.c
filter_menu.c
filter_menu.h
gpio.c
gpio.h
gpio.props [new file with mode: 0644]
i2c.c
led.c
main.c
main.h
memory.c
meter.c
meter.h
meter_menu.c
meter_menu.h
mode_menu.c
nb_menu.c
nb_menu.h
new_discovery.c
new_menu.c
new_menu.h
new_protocol.c
new_protocol_programmer.c
noise_menu.c
noise_menu.h
oc_menu.c
oc_menu.h
old_discovery.c
old_protocol.c
old_protocol.h
pa_menu.c
pa_menu.h
property.c
property.h
protocols.c
protocols.h
radio.c
radio.h
radio_menu.c
radio_menu.h
receiver.c
receiver.h
rigctl.c
rigctl.h
rigctl_menu.c
rigctl_menu.h
rx_menu.c
rx_menu.h
rx_panadapter.c
rx_panadapter.h
sliders.c
sliders.h
step_menu.c
step_menu.h
store.c
store_menu.c
store_menu.h
switch_menu.c
toolbar.c
toolbar.h
toolbar_menu.c
transmitter.c
transmitter.h
tx_menu.c
tx_menu.h
tx_panadapter.c
tx_panadapter.h
vfo.c
vfo.h
vfo_menu.c
vox.c
vox.h
vox_menu.c
vox_menu.h
waterfall.c
waterfall.h
xvtr_menu.c
xvtr_menu.h
zoompan.c
zoompan.h

index 984b74290708d2d4ddaba3996c5b68b21ddbc012..e5bb7ae9c8a7667753b256b9fb575298f4378e0e 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <ctype.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <stdbool.h>
-#include <wdsp.h>
-
-#include "new_menu.h"
 #include "about_menu.h"
-#include "discovered.h"
-#include "radio.h"
+#include <arpa/inet.h>         // for inet_ntoa
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for TRUE, gboolean, gpointer, FALSE
+#include <gtk/gtk.h>           // for GtkWidget, gtk_grid_attach, GTK_GRID
+#include <netinet/in.h>        // for sockaddr_in
+#include <stdio.h>             // for sprintf, NULL
+#include <string.h>            // for strcat, strcpy
+#include <wdsp.h>              // for GetWDSPVersion
+#include "discovered.h"        // for DISCOVERED, _DISCOVERED::(anonymous)
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu
+#include "radio.h"             // for radio
 
 static GtkWidget *parent_window=NULL;
 static GtkWidget *dialog=NULL;
index 5fb30d330b5dabbc7b8a1adc464c18124fb2b1c0..7ade6673931f31f8f07575e0a22f6f93c8b2e0c5 100644 (file)
@@ -17,4 +17,6 @@
 *
 */
 
+#include <gtk/gtk.h>  // for GtkWidget
+
 extern void about_menu(GtkWidget *parent);
index 0e4cd484da669c62259d956228845059964c65b0..257dc070623052e72052d7c02f089460a15b5b92 100644 (file)
@@ -1,5 +1,9 @@
-#include <gtk/gtk.h>
-#include "actions.h"
+#include <glib-object.h>       // for g_signal_handler_block, g_signal_handl...
+#include <glib.h>              // for g_malloc0, TRUE, g_free, g_malloc0_n
+#include <gtk/gtk.h>           // for GtkWidget, gtk_container_add, gtk_togg...
+#include <stddef.h>            // for NULL
+#include "actions.h"           // for ACTION_TABLE, ActionTable, ACTIONS
+#include "gobject/gclosure.h"  // for G_CALLBACK
 
 #define GRID_WIDTH 6
 
index 276caf5a3d33480717a7d718520c6e5ac5db7b34..725603a1ab9fced02867a44cb469a636c6620583 100644 (file)
--- a/actions.c
+++ b/actions.c
@@ -1,38 +1,29 @@
-#include <gtk/gtk.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "discovery.h"
-#include "receiver.h"
-#include "sliders.h"
-#include "band_menu.h"
-#include "diversity_menu.h"
-#include "vfo.h"
-#include "radio.h"
-#include "radio_menu.h"
-#include "new_menu.h"
-#include "new_protocol.h"
-#ifdef PURESIGNAL
-#include "ps_menu.h"
-#endif
-#include "agc.h"
-#include "filter.h"
-#include "mode.h"
-#include "band.h"
-#include "bandstack.h"
-#include "noise_menu.h"
-#include "wdsp.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
-#include "ext.h"
-#include "zoompan.h"
 #include "actions.h"
-#include "gpio.h"
-#include "toolbar.h"
-#ifdef LOCALCW
-#include "iambic.h"
-#endif
+#include <glib/gtypes.h>     // for GINT_TO_POINTER
+#include <string.h>          // for NULL, strlen
+#include "adc.h"             // for ADC
+#include "agc.h"             // for AGC_LAST
+#include "band.h"            // for BAND, band_get_band, canTransmit, BANDS
+#include "bandstack.h"       // for BANDSTACK
+#include "discovered.h"      // for NEW_PROTOCOL, DISCOVERED
+#include "diversity_menu.h"  // for update_diversity_gain, update_diversity_...
+#include "ext.h"             // for ext_vfo_update, ext_num_pad, local_set_f...
+#include "filter.h"          // for filter_shift_changed, filter_width_changed
+#include "gpio.h"            // for switches_controller1, MAX_FUNCTIONS, swi...
+#include "iambic.h"          // for keyer_event
+#include "main.h"            // for CONTROLLER1, CONTROLLER2_V1, CONTROLLER2_V2
+#include "mode.h"            // for MODES, modeCWL, modeCWU, modeLSB, modeUSB
+#include "new_menu.h"        // for start_agc, start_band, start_bandstack
+#include "new_protocol.h"    // for schedule_high_priority, setMox, setTune
+#include "noise_menu.h"      // for update_noise
+#include "radio.h"           // for active_receiver, transmitter, receiver
+#include "receiver.h"        // for RECEIVER, set_agc, set_offset
+#include "sliders.h"         // for set_af_gain, set_agc_gain, set_rf_gain
+#include "toolbar.h"         // for function, update_toolbar_labels, mox_update
+#include "transmitter.h"     // for TRANSMITTER, transmitter_set_out_of_band
+#include "vfo.h"             // for _vfo, vfo_band_changed, vfo, _mode_settings
+#include "wdsp.h"            // for SetRXAANFRun
+#include "zoompan.h"         // for update_pan, update_zoom
 
 ACTION_TABLE ActionTable[] = {
   {NO_ACTION,          "NONE",                 NULL,           TYPE_NONE},
index 13d18a43ddaba408895c293bdc6fdf52320551c0..66f6fda55944127fbf090ecadd60006ea9bbbaee 100644 (file)
--- a/actions.h
+++ b/actions.h
@@ -1,3 +1,4 @@
+#include <glib.h>  // for gint
 
 enum ACTION {
   NO_ACTION=0,
diff --git a/adc.h b/adc.h
index 9cedcbbaceff6d98603864657b2b184d9f0fd167..85f6494fa63bc21ce5c696768d86441cffc64d8a 100644 (file)
--- a/adc.h
+++ b/adc.h
@@ -20,6 +20,8 @@
 #ifndef ADC_H
 #define ADC_H
 
+#include <stdbool.h>
+
 enum {
   AUTOMATIC=0,
   MANUAL
index 16bdbf9990c8c8d9df61f2c3ff81eaa020093ae2..d34a9eda61c6d75f23804db633b7c3f09a6fa42a 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
 #include "agc_menu.h"
-#include "agc.h"
-#include "band.h"
-#include "channel.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "ext.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, TRUE, g_idle_add, gboolean
+#include <glib/gtypes.h>       // for GPOINTER_TO_INT
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_toggle_button_set...
+#include <stdio.h>             // for NULL, sprintf
+#include "agc.h"               // for AGC_FAST, AGC_LONG, AGC_MEDIUM, AGC_OFF
+#include "ext.h"               // for ext_vfo_update
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu, NO_MENU, active_menu
+#include "radio.h"             // for active_receiver
+#include "receiver.h"          // for RECEIVER, set_agc
 
 static GtkWidget *parent_window=NULL;
 
index d6ee1dd1f837d41a1f1f53a3749097a1f73c6354..5674412af92dea567346e26d4120a00504e173a1 100644 (file)
@@ -16,5 +16,6 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <gtk/gtk.h>  // for GtkWidget
 
 extern void agc_menu(GtkWidget *parent);
index 914e078c6c59e94db81c4b736177b34991e4c36e..aaf5feee07b8394e5b9194291d23ddaff6e76bc1 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
 #include "ant_menu.h"
-#include "band.h"
-#include "radio.h"
-#include "new_protocol.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEventButton, GdkEvent
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, TRUE, gboolean, FALSE
+#include <glib/gtypes.h>       // for GPOINTER_TO_UINT
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_widget_show, gtk_...
+#include <stdio.h>             // for NULL
+#include <string.h>            // for strlen
+#include "band.h"              // for BAND, BANDS, band_get_band, XVTRS, band10
+#include "discovered.h"        // for NEW_PROTOCOL, ORIGINAL_PROTOCOL, DEVIC...
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu
+#include "radio.h"             // for device, protocol, new_pa_board, set_al...
+#include "receiver.h"          // for RECEIVER
 
 static GtkWidget *parent_window=NULL;
 static GtkWidget *dialog=NULL;
index 3a847dcbd67b7f19badf616204c0bf27c88258e2..5fb5b801c03c965c85932b061de292af235c525e 100644 (file)
@@ -17,4 +17,6 @@
 *
 */
 
+#include <gtk/gtk.h>  // for GtkWidget
+
 void ant_menu(GtkWidget *parent);
diff --git a/band.c b/band.c
index 2581d9771a1e34cef08111b0587b2b542dc0ab78..9ade33ddcacb0116b8b1656ca82542f6d68c4f8d 100644 (file)
--- a/band.c
+++ b/band.c
 *
 */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "bandstack.h"
 #include "band.h"
-#include "filter.h"
-#include "mode.h"
-#include "alex.h"
-#include "property.h"
-#include "radio.h"
-#include "vfo.h"
+#include <glib.h>         // for g_print, TRUE
+#include <stdio.h>        // for sprintf, NULL
+#include <stdlib.h>       // for atoi, atoll, strtod
+#include <string.h>       // for strlen, strcpy
+#include "alex.h"         // for ALEX_ATTENUATION_0dB
+#include "bandstack.h"    // for BANDSTACK_ENTRY, BANDSTACK
+#include "filter.h"       // for filterF6, filterF5, filterF3
+#include "mode.h"         // for modeUSB, modeCWU, modeCWL, modeSAM, modeLSB
+#include "property.h"     // for setProperty, getProperty
+#include "radio.h"        // for cw_is_on_vfo_freq, cw_keyer_sidetone_frequency
+#include "transmitter.h"  // for TRANSMITTER
+#include "vfo.h"          // for _vfo, get_tx_freq, get_tx_mode, get_tx_vfo
 
 #define LINESDR
 
diff --git a/band.h b/band.h
index dfb51d1deefcbc2e002a828d9d5650657afc9514..893b57f97a8d3d82e2084bbe8a073ad1f5da9373 100644 (file)
--- a/band.h
+++ b/band.h
@@ -20,6 +20,7 @@
 #ifndef _BAND_H
 #define _BAND_H
 
+#include <stdbool.h>
 #include "bandstack.h"
 
 enum {
index 73de7112ccaca117eb475dbe722d978c2b05d5c7..d3c6c2ae18fe8b286dc81215212006ae5e811710 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
 #include "band_menu.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib/gtypes.h>       // for GPOINTER_TO_UINT
+#include <gtk/gtk.h>           // for GtkWidget, GTK_GRID, gtk_button_new_wi...
+#include <stdio.h>             // for NULL, sprintf
+#include <string.h>            // for strlen
+#include "band.h"              // for BAND, band_get_band, BANDS, XVTRS
+#include "button_text.h"       // for set_button_text_color
+#include "discovered.h"        // for DISCOVERED
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu, NO_MENU, active_menu
+#include "radio.h"             // for active_receiver, radio
+#include "receiver.h"          // for RECEIVER
+#include "vfo.h"               // for vfo_band_changed, _vfo, vfo
 
 static GtkWidget *parent_window=NULL;
 
index b9019aff8ca18fb3c5be58a21885af5796270306..37c1406ce92f9f959e5eb42bf15ae64df7840aa3 100644 (file)
@@ -16,6 +16,8 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <glib.h>     // for gboolean, gpointer
+#include <gtk/gtk.h>  // for GtkWidget
 
 extern void band_menu(GtkWidget *parent);
 extern gboolean band_select_cb (GtkWidget *widget, gpointer        data);
index 5f58e3ff72a3cbf8ccb148688bd03d0e3c9033d9..13a1db672b4b614dffc789b09e1122c499eab61a 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
 #include "bandstack_menu.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, TRUE, gboolean, FALSE
+#include <glib/gtypes.h>       // for GPOINTER_TO_UINT
+#include <gtk/gtk.h>           // for GtkWidget, GTK_GRID, gtk_button_new_wi...
+#include <stdio.h>             // for NULL, sprintf
+#include "band.h"              // for band_get_band, BAND
+#include "bandstack.h"         // for BANDSTACK_ENTRY, BANDSTACK
+#include "button_text.h"       // for set_button_text_color
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "mode.h"              // for mode_string
+#include "new_menu.h"          // for sub_menu, NO_MENU, active_menu
+#include "radio.h"             // for active_receiver
+#include "receiver.h"          // for RECEIVER
+#include "vfo.h"               // for _vfo, vfo_bandstack_changed, vfo
 
 static GtkWidget *parent_window=NULL;
 
index 29a61cbcfb21bf9cfcc30083671f1851b0e84d3a..9eafad912203f14558438153ed52c40c73a9ebe6 100644 (file)
@@ -16,5 +16,6 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <gtk/gtk.h>  // for GtkWidget
 
 extern void bandstack_menu(GtkWidget *parent);
index 8a1afd5e0afbb98d04dd30057925901123817116..bf3a06181fdf0626bed7f09d425365bb808b7356 100644 (file)
@@ -1,4 +1,8 @@
-#include <gtk/gtk.h>
+#include <glib-object.h>         // for g_object_unref
+#include <glib.h>                // for g_snprintf, gchar
+#include <gtk/gtk.h>             // for gtk_style_context_add_provider, gtk_...
+#include <stddef.h>              // for NULL
+#include "gtk/gtkcssprovider.h"  // for gtk_css_provider_load_from_data, gtk...
 
 void set_button_text_color(GtkWidget *widget,char *color) {
   GtkStyleContext *style_context;
index 0d8b08b32204f25487b0edc7ec8d89e22b3e0079..3a131d14107c70631527354ed1bdd3eb1b9fee9c 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <glib.h>
-#include <glib/gprintf.h>
-#include <math.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <semaphore.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "channel.h"
-#include "discovered.h"
-#include "actions.h"
-#include "gpio.h"
-#include "i2c.h"
-
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for g_print, gint, FALSE, TRUE, gchar, gpo...
+#include <glib/gprintf.h>      // for g_sprintf
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_label_new, gtk_la...
+#include <stdio.h>             // for sprintf
+#include <stdlib.h>            // for NULL
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "gpio.h"              // for ENCODER, encoders, gpio_restore_state
+#include "i2c.h"               // for i2c_sw, i2c_address_1, i2c_device
+#include "main.h"              // for controller, CONTROLLER2_V2, CONTROLLER1
 
 #ifdef GPIO
 
diff --git a/css.c b/css.c
index c1cdccd333e18e5f2979aecc183d64a24e094d3c..4e90a97ceff05838edcd2d45967b8859f0336909 100644 (file)
--- a/css.c
+++ b/css.c
@@ -1,5 +1,9 @@
-#include <gtk/gtk.h>
 #include "css.h"
+#include <gdk/gdk.h>             // for gdk_display_get_default, gdk_display...
+#include <glib-object.h>         // for g_object_unref
+#include <gtk/gtk.h>             // for gtk_style_context_add_provider_for_s...
+#include <stddef.h>              // for NULL
+#include "gtk/gtkcssprovider.h"  // for gtk_css_provider_load_from_data, gtk...
 
 char *css=
 "  @define-color TOGGLE_ON rgb(100%,0%,0%);\n"
index 58748b61ac5509528029b4749a85023717eea8de..accbcd617f5e59a76598cb2bbd2ef8175aa1567c 100644 (file)
--- a/cw_menu.c
+++ b/cw_menu.c
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
-#include "pa_menu.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "radio.h"
-#include "receiver.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "iambic.h"
-#include "ext.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, g_idle_add, gboolean, FALSE
+#include <glib/gtypes.h>       // for GPOINTER_TO_UINT
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_widget_show, GtkW...
+#include <stdint.h>            // for uintptr_t
+#include <stdio.h>             // for NULL
+#include "discovered.h"        // for NEW_PROTOCOL
+#include "ext.h"               // for ext_vfo_update
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "iambic.h"            // for keyer_update
+#include "new_menu.h"          // for sub_menu
+#include "new_protocol.h"      // for schedule_high_priority
+#include "radio.h"             // for cw_keyer_mode, cw_breakin, cw_is_on_vf...
+#include "receiver.h"          // for receiver_filter_changed
 
 static GtkWidget *parent_window=NULL;
 
index 662b000e107cddb8e762862ba673fb973ad23f54..6aa678011c5b2cb71c958747e6c05d6f5a125c97 100644 (file)
--- a/cw_menu.h
+++ b/cw_menu.h
@@ -16,5 +16,6 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <gtk/gtk.h>
 
 extern void cw_menu(GtkWidget *parent);
index 15e8248a0c26c45aaa675b292be183f98ea66558..513f2551990b6b99eec5d5a81b975bef9e0977b9 100644 (file)
@@ -17,7 +17,6 @@
 *
 */
 
-#include <gtk/gtk.h>
 #include "discovered.h"
 
 int selected_device=0;
index b3b61552c422450af99fc2428e6753250cf5c6c0..5c626f974e41619273ce7f5eda02b8da4fd33771 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <math.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <semaphore.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <stdbool.h>
-
-#ifdef MIDI
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <sys/stat.h>
-#endif
-
-#include "discovered.h"
-#include "old_discovery.h"
-#include "new_discovery.h"
-#include "main.h"
-#include "radio.h"
-#ifdef USBOZY
-#include "ozyio.h"
-#endif
-#include "ext.h"
-#ifdef GPIO
-#include "actions.h"
-#include "gpio.h"
-#include "configure.h"
-#endif
-#include "protocols.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
-#include "property.h"
-#include "log.h"
+#include <arpa/inet.h>         // for inet_ntoa
+#include <gdk/gdk.h>           // for GdkEventButton, GdkRGBA, gdk_cursor_new
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, TRUE, gboolean, g_idle_add
+#include <gtk/gtk.h>           // for gtk_grid_attach, GtkWidget, gtk_button...
+#include <netinet/in.h>        // for sockaddr_in, in_addr
+#include <stdio.h>             // for NULL, fclose, fopen, sprintf, fgets
+#include <string.h>            // for strnlen, strncpy
+#include <unistd.h>            // for _exit
+#include "configure.h"         // for configure_gpio
+#include "discovered.h"        // for DISCOVERED, _DISCOVERED::(anonymous)
+#include "ext.h"               // for ext_discovery
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "gpio.h"              // for gpio_set_defaults, gpio_restore_state
+#include "log.h"               // for log_trace, log_info
+#include "main.h"              // for status_text, controller, top_window
+#include "old_discovery.h"     // for old_discovery
+#include "pango/pango-font.h"  // for pango_font_description_from_string
+#include "protocols.h"         // for configure_protocols, protocols_restore...
+#include "radio.h"             // for start_radio, radio
 
 static GtkWidget *discovery_dialog;
 static DISCOVERED *d;
index eae3c2b0471502251e4fb5e18805b7b270b0fb47..7fbdb48b6e2d27137073d5de91533ab6256980ff 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "new_menu.h"
 #include "display_menu.h"
-#include "channel.h"
-#include "radio.h"
-#include "wdsp.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, gboolean, FALSE, TRUE
+#include <glib/gtypes.h>       // for GPOINTER_TO_UINT
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_widget_show, GtkW...
+#include <stdio.h>             // for NULL
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu
+#include "radio.h"             // for active_receiver, reconfigure_radio
+#include "receiver.h"          // for RECEIVER, set_displaying
+#include "wdsp.h"              // for SetDisplayAverageMode, SetDisplayDetec...
 
 static GtkWidget *parent_window=NULL;
 
-static GtkWidget *menu_b=NULL;
-
 static GtkWidget *dialog=NULL;
 
 static void cleanup() {
index dbfa7636283ea390c69fa4c8b33ab5fbf2203834..265fc15ec95032af73b216cb2370d5f7b368e81f 100644 (file)
@@ -17,4 +17,6 @@
 *
 */
 
+#include <gtk/gtk.h>  // for GtkWidget
+
 extern void display_menu(GtkWidget *parent);
index 04a8cd5a3e4e57b6bb8d93a55f2ab564c3a67d2f..64392430483060be53247dbd021a2c1f94184c84 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <pthread.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
 #include "diversity_menu.h"
-#include "radio.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "sliders.h"
-#include "ext.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect, G_OBJECT
+#include <glib.h>              // for gpointer, g_idle_add, gboolean, FALSE
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_widget_show, gtk_...
+#include <math.h>              // for round, cos, pow, sin
+#include <stdio.h>             // for NULL
+#include "discovered.h"        // for ORIGINAL_PROTOCOL, NEW_PROTOCOL
+#include "ext.h"               // for ext_vfo_update
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu
+#include "new_protocol.h"      // for schedule_high_priority, schedule_recei...
+#include "old_protocol.h"      // for old_protocol_run, old_protocol_stop
+#include "radio.h"             // for div_gain, div_phase, diversity_enabled
+#include "sliders.h"           // for show_diversity_gain, show_diversity_phase
 
-#include <math.h> 
 
 static GtkWidget *parent_window=NULL;
 
index b71588f9f0609304b9a4e1f186c727873323269a..402f703f019656d52fdf05b2c43db28486c82060 100644 (file)
@@ -16,6 +16,7 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <gtk/gtk.h>  // for GtkWidget
 
 extern void diversity_menu(GtkWidget *parent);
 extern void update_diversity_gain(double increment);
index 452c68d4310338f8e5b3459a0d707d4c8d80938d..8535586ba56f7eadf07da5417994638fb42036de 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
 #include "dsp_menu.h"
-#include "agc.h"
-#include "channel.h"
-#include "radio.h"
-#include "receiver.h"
-#include "wdsp.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect, G_OBJECT
+#include <glib.h>              // for gpointer, gboolean, FALSE, TRUE
+#include <glib/gtypes.h>       // for GPOINTER_TO_UINT
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_widget_show, GtkW...
+#include <stdio.h>             // for NULL
+#include "agc.h"               // for AGC_LONG, AGC_SLOW
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu
+#include "radio.h"             // for active_receiver
+#include "receiver.h"          // for RECEIVER
+#include "wdsp.h"              // for SetRXAAGCHangThreshold, SetRXAEMNRPosi...
 
 static GtkWidget *parent_window=NULL;
 
index 8c3a25c3835948a49f45858a94ebbfdb81f55eae..5bf81d2fb3aea1c942cb6da717c2f3eaad44b570 100644 (file)
@@ -16,5 +16,6 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <gtk/gtk.h>  // for GtkWidget
 
 void dsp_menu(GtkWidget *parent);
index e81c754b09c71f7128c73b66935f0a7a39a690da..a84738a2700cadfb24b8ed2bb71ab08584c80fa4 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <glib/gprintf.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "new_menu.h"
-#include "agc_menu.h"
-#include "agc.h"
-#include "band.h"
-#include "channel.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "actions.h"
-#include "action_dialog.h"
-#include "gpio.h"
-#include "i2c.h"
+#include <gdk/gdk.h>           // for GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for TRUE, gboolean, gpointer, gint, FALSE
+#include <glib/gprintf.h>      // for g_sprintf
+#include <glib/gtypes.h>       // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_widget_set_name
+#include <stdio.h>             // for NULL, sprintf
+#include "action_dialog.h"     // for action_dialog
+#include "actions.h"           // for ACTION_TABLE, ActionTable, CONTROLLER_...
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "gpio.h"              // for ENCODER, encoders
+#include "main.h"              // for CONTROLLER1, CONTROLLER2_V1, CONTROLLE...
+#include "new_menu.h"          // for sub_menu, NO_MENU, active_menu
 
 static GtkWidget *parent_window=NULL;
 
index c0ca3ac191b163db99f3b4e3b92b75ea0dc9b616..efd0bc953e7100caeb02addcaafc5d3b5bda151e 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "new_menu.h"
 #include "equalizer_menu.h"
-#include "radio.h"
-#include "channel.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEventButton, GdkEvent
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, FALSE, gboolean, TRUE
+#include <glib/gtypes.h>       // for GPOINTER_TO_UINT
+#include <gtk/gtk.h>           // for gtk_scale_add_mark, gtk_range_set_value
+#include <stdio.h>             // for NULL
+#include <wdsp.h>              // for SetRXAEQRun, SetRXAGrphEQ, SetTXAEQRun
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu
+#include "radio.h"             // for rx_equalizer, tx_equalizer, can_transmit
+#include "receiver.h"          // for RECEIVER
+#include "transmitter.h"       // for TRANSMITTER
 
 static GtkWidget *parent_window=NULL;
 
index 3a370ef0f31e10fcbc3644c2c8a533421ffdd9ce..00b904f166a9e5f6f83de1efda11e10586ce28e0 100644 (file)
@@ -16,5 +16,6 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <gtk/gtk.h>  // for GtkWidget
 
 void equalizer_menu(GtkWidget *parent);
index 40f65fec342f2a2411d95ac3e6136fcce2a657d9..6aa108b6600292b43ad11eef339d123ce4c9b7bb 100644 (file)
@@ -1,11 +1,9 @@
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <stdbool.h>
-
 #include "error_handler.h"
-#include "main.h"
+#include <glib.h>     // for g_idle_add, g_timeout_add, FALSE, gint, gpointer
+#include <gtk/gtk.h>  // for GtkWidget, gtk_container_add, gtk_dialog_get_co...
+#include <stdio.h>    // for sprintf, NULL, fprintf, stderr
+#include <stdlib.h>   // for exit
+#include "main.h"     // for top_window
 
 static GtkWidget *dialog;
 static gint timer;
index d05ca68c8b0adaf41e02e97b4e714d16aff345ab..c7a6dfe3f238be0c38389b0e564c4bd54d5d09e2 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "new_menu.h"
 #include "exit_menu.h"
-#include "discovery.h"
-#include "radio.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "actions.h"
-#ifdef GPIO
-#include "gpio.h"
-#endif
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEventButton, GdkEvent
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gboolean, gpointer, TRUE, FALSE
+#include <gtk/gtk.h>           // for GtkWidget, gtk_button_new_with_label
+#include <stdio.h>             // for NULL
+#include <stdlib.h>            // for system
+#include <unistd.h>            // for _exit
+#include "discovered.h"        // for NEW_PROTOCOL, ORIGINAL_PROTOCOL
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "gpio.h"              // for gpio_close
+#include "new_menu.h"          // for sub_menu
+#include "new_protocol.h"      // for new_protocol_stop
+#include "old_protocol.h"      // for old_protocol_stop
+#include "radio.h"             // for radioSaveState, protocol
 
 static GtkWidget *parent_window=NULL;
 
index 7fdb6f2b230e026f17d28d68ea9cc9fcb5b9f31d..7021c12e40d335f4762e3ec6a84dfe8c91d31f62 100644 (file)
@@ -1 +1,3 @@
+#include <gtk/gtk.h>  // for GtkWidget
+
 extern void exit_menu(GtkWidget *parent);
diff --git a/ext.c b/ext.c
index 06f52c0fe8c4a04a578688530d65bc58cbdb92bd..811deee042ae8b54f4943229c177fcf98417ddc2 100644 (file)
--- a/ext.c
+++ b/ext.c
 *
 */
 
-#include <stdint.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <gtk/gtk.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "discovery.h"
-#include "receiver.h"
-#include "sliders.h"
-#include "toolbar.h"
-#include "band_menu.h"
-#include "diversity_menu.h"
-#include "vfo.h"
-#include "radio.h"
-#include "radio_menu.h"
-#include "new_menu.h"
-#include "new_protocol.h"
-#ifdef PURESIGNAL
-#include "ps_menu.h"
-#endif
-#include "agc.h"
-#include "filter.h"
-#include "mode.h"
-#include "band.h"
-#include "bandstack.h"
-#include "noise_menu.h"
-#include "wdsp.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
 #include "ext.h"
-#include "zoompan.h"
+#include <glib.h>            // for g_idle_add, g_print, FALSE, g_timeout_add
+#include <glib/gtypes.h>     // for GPOINTER_TO_INT
+#include <gtk/gtk.h>         // for gtk_window_set_title, GTK_WINDOW
+#include <stdio.h>           // for NULL
+#include <stdlib.h>          // for free
+#include <string.h>          // for strlen
+#include "agc.h"             // for AGC_LAST
+#include "band.h"            // for BAND, band_get_band, BANDS, get_band_fro...
+#include "band_menu.h"       // for band_select_cb
+#include "bandstack.h"       // for BANDSTACK
+#include "discovered.h"      // for DISCOVERED, NEW_PROTOCOL
+#include "discovery.h"       // for discovery
+#include "diversity_menu.h"  // for update_diversity_gain, update_diversity_...
+#include "filter.h"          // for FILTERS
+#include "main.h"            // for top_window
+#include "mode.h"            // for MODES
+#include "new_menu.h"        // for start_filter, start_mode, start_band
+#include "new_protocol.h"    // for schedule_high_priority, schedule_receive...
+#include "noise_menu.h"      // for update_noise
+#include "radio.h"           // for active_receiver, transmitter, can_transmit
+#include "radio_menu.h"      // for setDuplex
+#include "receiver.h"        // for RECEIVER, set_agc, set_offset
+#include "sliders.h"         // for set_af_gain, set_agc_gain, set_attenuati...
+#include "toolbar.h"         // for function, mox_update, tune_update, updat...
+#include "transmitter.h"     // for TRANSMITTER, tx_set_mode, tx_set_twotone
+#include "vfo.h"             // for _vfo, vfo, _mode_settings, mode_settings
+#include "wdsp.h"            // for SetRXAANFRun
+#include "zoompan.h"         // for remote_set_pan, remote_set_zoom, set_pan
 
 
 // The following calls functions can be called usig g_idle_add
index 815b33421067194d420ab7cdadcf74fa0729ef1f..c6b9866f28ccdf0eb6a43d4930e0c06396e223d8 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
 #include "fft_menu.h"
-#include "radio.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, gboolean, FALSE, TRUE
+#include <glib/gtypes.h>       // for GPOINTER_TO_UINT
+#include <gtk/gtk.h>           // for gtk_grid_attach, GtkWidget, gtk_toggle...
+#include <stdio.h>             // for NULL
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu
+#include "radio.h"             // for set_filter_type, receiver
+#include "receiver.h"          // for RECEIVER
 
 static GtkWidget *parent_window=NULL;
 
index 0e4841c9b9e40324d48247be9e7764e6475fc2c3..c4f0f328fa9ebecf5f47ed87a57c57aba765e8e6 100644 (file)
@@ -16,5 +16,6 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <gtk/gtk.h>  // for GtkWidget
 
 void fft_menu(GtkWidget *parent);
index 6bfba8a7560ee6e0d50602525a2154ee84928f64..ad2c41141fef6c836213ced98c7275850250b815 100644 (file)
--- a/filter.c
+++ b/filter.c
 *
 */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdbool.h>
-
-#include "sliders.h"
 #include "filter.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "radio.h"
-#include "property.h"
+#include <glib.h>      // for gint
+#include <stdio.h>     // for sprintf, fprintf, stderr
+#include <stdlib.h>    // for atoi
+#include "property.h"  // for getProperty, setProperty
+#include "radio.h"     // for receiver
+#include "receiver.h"  // for RECEIVER
+#include "sliders.h"   // for set_filter_shift, set_filter_width
+#include "vfo.h"       // for _vfo, vfo, vfo_filter_changed
 
 FILTER filterLSB[FILTERS]={
     {-5150,-150,"5.0k"},
index 7c7b6df408481529a0fff981fbb6a579bcdfad73..cf1b92313ad656e65be8d7aad44d46c00ac6a979 100644 (file)
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
-
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
 #include "filter_menu.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "mode.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "ext.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, gboolean, FALSE, TRUE, g_idl...
+#include <glib/gtypes.h>       // for GPOINTER_TO_UINT
+#include <gtk/gtk.h>           // for gtk_grid_attach, GtkWidget, gtk_button...
+#include <stdio.h>             // for NULL, sprintf
+#include "button_text.h"       // for set_button_text_color
+#include "ext.h"               // for ext_vfo_update
+#include "filter.h"            // for FILTER, filters, FILTERS
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "mode.h"              // for modeCWL, modeCWU, modeFMN
+#include "new_menu.h"          // for sub_menu, NO_MENU, active_menu
+#include "radio.h"             // for active_receiver, transmitter
+#include "receiver.h"          // for RECEIVER, set_filter, set_deviation
+#include "transmitter.h"       // for tx_set_filter, transmitter_set_deviation
+#include "vfo.h"               // for _vfo, vfo, vfo_filter_changed
 
 static GtkWidget *parent_window=NULL;
 
index 057532ab6dc42e8ea9feccfc6e5a4aef255c3c14..f6bedc0b6ea976ba42846a3ef0ca137abef7195b 100644 (file)
@@ -16,6 +16,7 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <gtk/gtk.h>  // for GtkWidget
 
 extern void filter_menu(GtkWidget *parent);
 extern int filter_select(void *data);
diff --git a/gpio.c b/gpio.c
index 2164e281a4e1c8b5debfd8ffce225f47decbd8b1..97931bb83766a8554e0005154970215133aa56a2 100644 (file)
--- a/gpio.c
+++ b/gpio.c
 // Note that all pin numbers are now the Broadcom GPIO
 
 
-#include <gtk/gtk.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
-#include <unistd.h>
-#include <stdint.h>
-#include <fcntl.h>
-#include <poll.h>
-#include <sched.h>
-
-#ifdef GPIO
-#include <gpiod.h>
-#include <linux/i2c-dev.h>
-#include <i2c/smbus.h>
-#include <sys/ioctl.h>
-#endif
-
-#include "band.h"
-#include "channel.h"
-#include "discovered.h"
-#include "mode.h"
-#include "filter.h"
-#include "bandstack.h"
-#include "toolbar.h"
-#include "radio.h"
-#include "toolbar.h"
-#include "main.h"
-#include "property.h"
-#include "vfo.h"
-#include "wdsp.h"
-#include "new_menu.h"
-#include "encoder_menu.h"
-#include "diversity_menu.h"
-#include "actions.h"
 #include "gpio.h"
-#include "i2c.h"
-#include "ext.h"
-#include "sliders.h"
-#include "new_protocol.h"
-#include "zoompan.h"
-#ifdef LOCALCW
-#include "iambic.h"
-#include "log.h"
+#include <errno.h>     // for errno
+#include <gpiod.h>     // for gpiod_line_request_config, gpiod_chip_close
+#include <sched.h>     // for timespec
+#include <stdint.h>    // for uint64_t, uint32_t
+#include <stdio.h>     // for sprintf, NULL
+#include <stdlib.h>    // for atoi, exit
+#include <time.h>      // for clock_gettime, CLOCK_MONOTONIC_RAW
+#include <unistd.h>    // for usleep
+#include "actions.h"   // for NO_ACTION, MOX, FUNCTION, MENU_FREQUENCY, PROC...
+#include "i2c.h"       // for i2c_init, i2c_interrupt
+#include "iambic.h"    // for keyer_event
+#include "log.h"       // for log_trace, log_error, log_debug
+#include "main.h"      // for controller, NO_CONTROLLER, CONTROLLER2_V1, CON...
+#include "property.h"  // for setProperty, getProperty, clearProperties, loa...
+#include "radio.h"     // for vfo_encoder_divisor
+#include "toolbar.h"   // for function, update_toolbar_labels
 
 //
 // Broadcom pins #9, 10, 11 are not used
 // by Controller1 and Controller2_V1
 // (and keep #2,3 reserved for I2C extensions)
 //
+#ifdef LOCALCW
+
 int CWL_BUTTON=17; // was 9
 int CWR_BUTTON=21;  //was 11
 int SIDETONE_GPIO=10;
 int ENABLE_GPIO_SIDETONE=0;
 int ENABLE_CW_BUTTONS=1;
 int CW_ACTIVE_LOW=1;
+
 #endif
 
 #ifdef PTT
diff --git a/gpio.h b/gpio.h
index 2276f81ec38aead53c7ce518602aa9d659959de8..2c936931564923fd3d1b3429456d9f76547ac98d 100644 (file)
--- a/gpio.h
+++ b/gpio.h
@@ -20,6 +20,9 @@
 #ifndef _GPIO_H
 #define _GPIO_H
 
+#include <time.h>      // for clock_gettime, CLOCK_MONOTONIC_RAW
+#include <glib.h>
+
 #define MAX_ENCODERS 5
 #define MAX_SWITCHES 16
 #define MAX_FUNCTIONS 6
diff --git a/gpio.props b/gpio.props
new file mode 100644 (file)
index 0000000..7abd17e
--- /dev/null
@@ -0,0 +1,345 @@
+property_version=3.00
+switches[5,15].switch_address=0
+switches[5,15].switch_pullup=0
+switches[5,15].switch_enabled=0
+switches[5,14].switch_address=0
+switches[5,14].switch_pullup=0
+switches[5,14].switch_enabled=0
+switches[5,13].switch_address=0
+switches[5,13].switch_pullup=0
+switches[5,13].switch_enabled=0
+switches[5,12].switch_address=0
+switches[5,12].switch_pullup=0
+switches[5,12].switch_enabled=0
+switches[5,11].switch_address=0
+switches[5,11].switch_pullup=0
+switches[5,11].switch_enabled=0
+switches[5,10].switch_address=0
+switches[5,10].switch_pullup=0
+switches[5,10].switch_enabled=0
+switches[5,9].switch_address=0
+switches[5,9].switch_pullup=0
+switches[5,9].switch_enabled=0
+switches[5,8].switch_address=0
+switches[5,8].switch_pullup=0
+switches[5,8].switch_enabled=0
+switches[5,7].switch_address=22
+switches[5,7].switch_pullup=1
+switches[5,7].switch_enabled=1
+switches[5,6].switch_address=23
+switches[5,6].switch_pullup=1
+switches[5,6].switch_enabled=1
+switches[5,5].switch_address=24
+switches[5,5].switch_pullup=1
+switches[5,5].switch_enabled=1
+switches[5,4].switch_address=5
+switches[5,4].switch_pullup=1
+switches[5,4].switch_enabled=1
+switches[5,3].switch_address=6
+switches[5,3].switch_pullup=1
+switches[5,3].switch_enabled=1
+switches[5,2].switch_address=12
+switches[5,2].switch_pullup=1
+switches[5,2].switch_enabled=1
+switches[5,1].switch_address=13
+switches[5,1].switch_pullup=1
+switches[5,1].switch_enabled=1
+switches[5,0].switch_address=27
+switches[5,0].switch_pullup=1
+switches[5,0].switch_enabled=1
+switches[4,15].switch_address=0
+switches[4,15].switch_pullup=0
+switches[4,15].switch_enabled=0
+switches[4,14].switch_address=0
+switches[4,14].switch_pullup=0
+switches[4,14].switch_enabled=0
+switches[4,13].switch_address=0
+switches[4,13].switch_pullup=0
+switches[4,13].switch_enabled=0
+switches[4,12].switch_address=0
+switches[4,12].switch_pullup=0
+switches[4,12].switch_enabled=0
+switches[4,11].switch_address=0
+switches[4,11].switch_pullup=0
+switches[4,11].switch_enabled=0
+switches[4,10].switch_address=0
+switches[4,10].switch_pullup=0
+switches[4,10].switch_enabled=0
+switches[4,9].switch_address=0
+switches[4,9].switch_pullup=0
+switches[4,9].switch_enabled=0
+switches[4,8].switch_address=0
+switches[4,8].switch_pullup=0
+switches[4,8].switch_enabled=0
+switches[4,7].switch_address=22
+switches[4,7].switch_pullup=1
+switches[4,7].switch_enabled=1
+switches[4,6].switch_address=23
+switches[4,6].switch_pullup=1
+switches[4,6].switch_enabled=1
+switches[4,5].switch_address=24
+switches[4,5].switch_pullup=1
+switches[4,5].switch_enabled=1
+switches[4,4].switch_address=5
+switches[4,4].switch_pullup=1
+switches[4,4].switch_enabled=1
+switches[4,3].switch_address=6
+switches[4,3].switch_pullup=1
+switches[4,3].switch_enabled=1
+switches[4,2].switch_address=12
+switches[4,2].switch_pullup=1
+switches[4,2].switch_enabled=1
+switches[4,1].switch_address=13
+switches[4,1].switch_pullup=1
+switches[4,1].switch_enabled=1
+switches[4,0].switch_address=27
+switches[4,0].switch_pullup=1
+switches[4,0].switch_enabled=1
+switches[3,15].switch_address=0
+switches[3,15].switch_pullup=0
+switches[3,15].switch_enabled=0
+switches[3,14].switch_address=0
+switches[3,14].switch_pullup=0
+switches[3,14].switch_enabled=0
+switches[3,13].switch_address=0
+switches[3,13].switch_pullup=0
+switches[3,13].switch_enabled=0
+switches[3,12].switch_address=0
+switches[3,12].switch_pullup=0
+switches[3,12].switch_enabled=0
+switches[3,11].switch_address=0
+switches[3,11].switch_pullup=0
+switches[3,11].switch_enabled=0
+switches[3,10].switch_address=0
+switches[3,10].switch_pullup=0
+switches[3,10].switch_enabled=0
+switches[3,9].switch_address=0
+switches[3,9].switch_pullup=0
+switches[3,9].switch_enabled=0
+switches[3,8].switch_address=0
+switches[3,8].switch_pullup=0
+switches[3,8].switch_enabled=0
+switches[3,7].switch_address=22
+switches[3,7].switch_pullup=1
+switches[3,7].switch_enabled=1
+switches[3,6].switch_address=23
+switches[3,6].switch_pullup=1
+switches[3,6].switch_enabled=1
+switches[3,5].switch_address=24
+switches[3,5].switch_pullup=1
+switches[3,5].switch_enabled=1
+switches[3,4].switch_address=5
+switches[3,4].switch_pullup=1
+switches[3,4].switch_enabled=1
+switches[3,3].switch_address=6
+switches[3,3].switch_pullup=1
+switches[3,3].switch_enabled=1
+switches[3,2].switch_address=12
+switches[3,2].switch_pullup=1
+switches[3,2].switch_enabled=1
+switches[3,1].switch_address=13
+switches[3,1].switch_pullup=1
+switches[3,1].switch_enabled=1
+switches[3,0].switch_address=27
+switches[3,0].switch_pullup=1
+switches[3,0].switch_enabled=1
+switches[2,15].switch_address=0
+switches[2,15].switch_pullup=0
+switches[2,15].switch_enabled=0
+switches[2,14].switch_address=0
+switches[2,14].switch_pullup=0
+switches[2,14].switch_enabled=0
+switches[2,13].switch_address=0
+switches[2,13].switch_pullup=0
+switches[2,13].switch_enabled=0
+switches[2,12].switch_address=0
+switches[2,12].switch_pullup=0
+switches[2,12].switch_enabled=0
+switches[2,11].switch_address=0
+switches[2,11].switch_pullup=0
+switches[2,11].switch_enabled=0
+switches[2,10].switch_address=0
+switches[2,10].switch_pullup=0
+switches[2,10].switch_enabled=0
+switches[2,9].switch_address=0
+switches[2,9].switch_pullup=0
+switches[2,9].switch_enabled=0
+switches[2,8].switch_address=0
+switches[2,8].switch_pullup=0
+switches[2,8].switch_enabled=0
+switches[2,7].switch_address=22
+switches[2,7].switch_pullup=1
+switches[2,7].switch_enabled=1
+switches[2,6].switch_address=23
+switches[2,6].switch_pullup=1
+switches[2,6].switch_enabled=1
+switches[2,5].switch_address=24
+switches[2,5].switch_pullup=1
+switches[2,5].switch_enabled=1
+switches[2,4].switch_address=5
+switches[2,4].switch_pullup=1
+switches[2,4].switch_enabled=1
+switches[2,3].switch_address=6
+switches[2,3].switch_pullup=1
+switches[2,3].switch_enabled=1
+switches[2,2].switch_address=12
+switches[2,2].switch_pullup=1
+switches[2,2].switch_enabled=1
+switches[2,1].switch_address=13
+switches[2,1].switch_pullup=1
+switches[2,1].switch_enabled=1
+switches[2,0].switch_address=27
+switches[2,0].switch_pullup=1
+switches[2,0].switch_enabled=1
+switches[1,15].switch_address=0
+switches[1,15].switch_pullup=0
+switches[1,15].switch_enabled=0
+switches[1,14].switch_address=0
+switches[1,14].switch_pullup=0
+switches[1,14].switch_enabled=0
+switches[1,13].switch_address=0
+switches[1,13].switch_pullup=0
+switches[1,13].switch_enabled=0
+switches[1,12].switch_address=0
+switches[1,12].switch_pullup=0
+switches[1,12].switch_enabled=0
+switches[1,11].switch_address=0
+switches[1,11].switch_pullup=0
+switches[1,11].switch_enabled=0
+switches[1,10].switch_address=0
+switches[1,10].switch_pullup=0
+switches[1,10].switch_enabled=0
+switches[1,9].switch_address=0
+switches[1,9].switch_pullup=0
+switches[1,9].switch_enabled=0
+switches[1,8].switch_address=0
+switches[1,8].switch_pullup=0
+switches[1,8].switch_enabled=0
+switches[1,7].switch_address=22
+switches[1,7].switch_pullup=1
+switches[1,7].switch_enabled=1
+switches[1,6].switch_address=23
+switches[1,6].switch_pullup=1
+switches[1,6].switch_enabled=1
+switches[1,5].switch_address=24
+switches[1,5].switch_pullup=1
+switches[1,5].switch_enabled=1
+switches[1,4].switch_address=5
+switches[1,4].switch_pullup=1
+switches[1,4].switch_enabled=1
+switches[1,3].switch_address=6
+switches[1,3].switch_pullup=1
+switches[1,3].switch_enabled=1
+switches[1,2].switch_address=12
+switches[1,2].switch_pullup=1
+switches[1,2].switch_enabled=1
+switches[1,1].switch_address=13
+switches[1,1].switch_pullup=1
+switches[1,1].switch_enabled=1
+switches[1,0].switch_address=27
+switches[1,0].switch_pullup=1
+switches[1,0].switch_enabled=1
+switches[0,15].switch_address=0
+switches[0,15].switch_pullup=0
+switches[0,15].switch_enabled=0
+switches[0,14].switch_address=0
+switches[0,14].switch_pullup=0
+switches[0,14].switch_enabled=0
+switches[0,13].switch_address=0
+switches[0,13].switch_pullup=0
+switches[0,13].switch_enabled=0
+switches[0,12].switch_address=0
+switches[0,12].switch_pullup=0
+switches[0,12].switch_enabled=0
+switches[0,11].switch_address=0
+switches[0,11].switch_pullup=0
+switches[0,11].switch_enabled=0
+switches[0,10].switch_address=0
+switches[0,10].switch_pullup=0
+switches[0,10].switch_enabled=0
+switches[0,9].switch_address=0
+switches[0,9].switch_pullup=0
+switches[0,9].switch_enabled=0
+switches[0,8].switch_address=0
+switches[0,8].switch_pullup=0
+switches[0,8].switch_enabled=0
+switches[0,7].switch_address=22
+switches[0,7].switch_pullup=1
+switches[0,7].switch_enabled=1
+switches[0,6].switch_address=23
+switches[0,6].switch_pullup=1
+switches[0,6].switch_enabled=1
+switches[0,5].switch_address=24
+switches[0,5].switch_pullup=1
+switches[0,5].switch_enabled=1
+switches[0,4].switch_address=5
+switches[0,4].switch_pullup=1
+switches[0,4].switch_enabled=1
+switches[0,3].switch_address=6
+switches[0,3].switch_pullup=1
+switches[0,3].switch_enabled=1
+switches[0,2].switch_address=12
+switches[0,2].switch_pullup=1
+switches[0,2].switch_enabled=1
+switches[0,1].switch_address=13
+switches[0,1].switch_pullup=1
+switches[0,1].switch_enabled=1
+switches[0,0].switch_address=27
+switches[0,0].switch_pullup=1
+switches[0,0].switch_enabled=1
+encoders[4].switch_address=0
+encoders[4].switch_pullup=1
+encoders[4].switch_enabled=0
+encoders[4].top_encoder_address_b=0
+encoders[4].top_encoder_address_a=0
+encoders[4].top_encoder_pullup=1
+encoders[4].top_encoder_enabled=0
+encoders[4].bottom_encoder_address_b=0
+encoders[4].bottom_encoder_address_a=0
+encoders[4].bottom_encoder_pullup=1
+encoders[4].bottom_encoder_enabled=0
+encoders[3].switch_address=0
+encoders[3].switch_pullup=1
+encoders[3].switch_enabled=0
+encoders[3].top_encoder_address_b=0
+encoders[3].top_encoder_address_a=0
+encoders[3].top_encoder_pullup=1
+encoders[3].top_encoder_enabled=0
+encoders[3].bottom_encoder_address_b=17
+encoders[3].bottom_encoder_address_a=18
+encoders[3].bottom_encoder_pullup=1
+encoders[3].bottom_encoder_enabled=1
+encoders[2].switch_address=7
+encoders[2].switch_pullup=1
+encoders[2].switch_enabled=1
+encoders[2].top_encoder_address_b=0
+encoders[2].top_encoder_address_a=0
+encoders[2].top_encoder_pullup=1
+encoders[2].top_encoder_enabled=0
+encoders[2].bottom_encoder_address_b=21
+encoders[2].bottom_encoder_address_a=4
+encoders[2].bottom_encoder_pullup=1
+encoders[2].bottom_encoder_enabled=1
+encoders[1].switch_address=8
+encoders[1].switch_pullup=1
+encoders[1].switch_enabled=1
+encoders[1].top_encoder_address_b=0
+encoders[1].top_encoder_address_a=0
+encoders[1].top_encoder_pullup=1
+encoders[1].top_encoder_enabled=0
+encoders[1].bottom_encoder_address_b=19
+encoders[1].bottom_encoder_address_a=16
+encoders[1].bottom_encoder_pullup=1
+encoders[1].bottom_encoder_enabled=1
+encoders[0].switch_address=25
+encoders[0].switch_pullup=1
+encoders[0].switch_enabled=1
+encoders[0].top_encoder_address_b=0
+encoders[0].top_encoder_address_a=0
+encoders[0].top_encoder_pullup=1
+encoders[0].top_encoder_enabled=0
+encoders[0].bottom_encoder_address_b=26
+encoders[0].bottom_encoder_address_a=20
+encoders[0].bottom_encoder_pullup=1
+encoders[0].bottom_encoder_enabled=1
+controller=1
diff --git a/i2c.c b/i2c.c
index 5c8353abb253a2932bfe68f4bb90547e9142962e..93d972b19446586aed1db983d6b08f6987702070 100644 (file)
--- a/i2c.c
+++ b/i2c.c
@@ -1,26 +1,14 @@
 #ifdef GPIO
-#include <string.h>
-#include <unistd.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <linux/i2c-dev.h>
-#include <i2c/smbus.h>
-#include <sys/ioctl.h>
-#include <fcntl.h>
-#include <stdbool.h>
-#include <gtk/gtk.h>
-
 #include "i2c.h"
-#include "actions.h"
-#include "gpio.h"
-#include "band.h"
-#include "band_menu.h"
-#include "bandstack.h"
-#include "radio.h"
-#include "toolbar.h"
-#include "vfo.h"
-#include "ext.h"
+#include <errno.h>          // for errno
+#include <fcntl.h>          // for open, O_RDWR
+#include <glib.h>           // for g_print, g_strerror, g_malloc, g_idle_add
+#include <i2c/smbus.h>      // for i2c_smbus_read_word_data, i2c_smbus_write...
+#include <linux/i2c-dev.h>  // for I2C_SLAVE
+#include <stdio.h>          // for fprintf, stderr
+#include <sys/ioctl.h>      // for ioctl
+#include "actions.h"        // for PROCESS_ACTION, process_action, PRESSED
+#include "gpio.h"           // for SWITCH, switches
 
 char *i2c_device="/dev/i2c-1";
 unsigned int i2c_address_1=0X20;
diff --git a/led.c b/led.c
index 98525ba65e0cd835efe0a05329fc85d5f6aca56e..e221c7275380dc08c2f754fd48af655951aeaf29 100644 (file)
--- a/led.c
+++ b/led.c
 *
 */
 
-#include <gtk/gtk.h>
+#include <gdk/gdk.h>           // for GdkRGBA
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, FALSE, gboolean
+#include <gtk/gtk.h>           // for GtkWidget, gtk_drawing_area_new, gtk_w...
+#include <stdio.h>             // for fprintf, stderr
+#include "cairo.h"             // for cairo_paint, cairo_set_source_rgb, cai...
+#include "gobject/gclosure.h"  // for G_CALLBACK
 
 static gboolean draw_led_cb (GtkWidget *widget, cairo_t *cr, gpointer data) {
   GdkRGBA *color=(GdkRGBA *)data;
diff --git a/main.c b/main.c
index 68ebbbddb31e6521a9acf35b75052411bd34ac3c..97fc91b4be26f78557b2c6d39f302b09c7f8dddb 100644 (file)
--- a/main.c
+++ b/main.c
 #define MAX_DISPLAY_WIDTH 1024 // edit
 #define MAX_DISPLAY_HEIGHT 600 // edit
 
-#include <arpa/inet.h>
-#include <gdk/gdk.h>
-#include <gtk/gtk.h>
-#include <math.h>
-#include <netinet/in.h>
-#include <semaphore.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/socket.h>
-#include <sys/types.h>
-#include <unistd.h>
-#include <stdbool.h>
-
-#include "actions.h"
-#include "audio.h"
-#include "band.h"
-#include "bandstack.h"
-#include "channel.h"
-#include "configure.h"
-#include "discovered.h"
 #include "main.h"
-#ifdef GPIO
-#include "gpio.h"
-#endif
-#include "button_text.h"
-#include "new_menu.h"
-#include "radio.h"
-#include "wdsp.h"
-#ifdef I2C
-#include "i2c.h"
-#endif
-#include "discovery.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "css.h"
-#include "ext.h"
-#include "vfo.h"
-
-#include "log.h"
+#include <gdk/gdk.h>           // for gdk_cursor_new, GdkEventKey, gdk_scree...
+#include <gio/gio.h>           // for g_application_run, G_APPLICATION, G_AP...
+#include <glib-object.h>       // for g_object_unref, g_signal_connect
+#include <gtk/gtk.h>           // for GtkWidget, gtk_events_pending, gtk_gri...
+#include <pthread.h>           // for pthread_create, pthread_t
+#include <stdbool.h>           // for bool
+#include <stdio.h>             // for perror
+#include <string.h>            // for strcpy, strlen
+#include <unistd.h>            // for _exit, usleep, getcwd
+#include "audio.h"             // for audio_get_cards
+#include "band.h"              // for canTransmit
+#include "css.h"               // for load_css
+#include "discovered.h"        // for NEW_PROTOCOL, ORIGINAL_PROTOCOL
+#include "ext.h"               // for ext_discovery, ext_vfo_update
+#include "gdk/gdkkeysyms.h"    // for GDK_KEY_d, GDK_KEY_space, GDK_KEY_u
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "gpio.h"              // for gpio_close
+#include "log.h"               // for log_debug, log_warn
+#include "new_protocol.h"      // for setMox, getMox, getTune, new_protocol_...
+#include "old_protocol.h"      // for old_protocol_stop
+#include "radio.h"             // for radioSaveState, radio, step, protocol
+#include "transmitter.h"       // for transmitter_set_out_of_band
+#include "vfo.h"               // for vfo_move
+#include "wdsp.h"              // for WDSPwisdom, wisdom_get_status
 
 struct utsname unameData;
 
diff --git a/main.h b/main.h
index 5b540ddee4dba8c07df886e09266f25411b3e507..b6a1f65686eca0b7b48b37951cda31537eedd833 100644 (file)
--- a/main.h
+++ b/main.h
 #ifndef _MAIN_H
 #define _MAIN_H
 
-#include <sys/utsname.h>
+#include <gdk/gdk.h>      // for GdkEventKey
+#include <glib.h>         // for gpointer
+#include <gtk/gtk.h>      // for GtkWidget
+#include <stdbool.h>      // for bool
+#include <sys/utsname.h>  // for utsname
+
 extern struct utsname unameData;
 
 enum {
index 5196719734caa03af9f708e406d4d2993a495994..871319f2d44c92d4d792ebe01295dbebbe088633 100644 (file)
--- a/memory.c
+++ b/memory.c
@@ -17,9 +17,9 @@
 *
 */
 
-#include <sys/resource.h>
-#include <stdio.h>
-#include "log.h"
+#include <bits/types/struct_rusage.h>  // for rusage, rusage::(anonymous)
+#include <sys/resource.h>              // for getrusage, RUSAGE_SELF
+#include "log.h"                       // for log_trace
 
 void show_memory(char *title) {
   struct rusage r_usage;
diff --git a/meter.c b/meter.c
index 67dd0661d05342f2736b9c0e2184e3b87b0689df..b1aa7eae8f51d3d93ab1a2e422024b7e13859ab5 100644 (file)
--- a/meter.c
+++ b/meter.c
 *
 */
 
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <math.h>
-#include <stdbool.h>
-
-#include "receiver.h"
 #include "meter.h"
-#include "radio.h"
-#include "wdsp.h"
-#include "radio.h"
-#include "mode.h"
-#include "vox.h"
-#include "new_menu.h"
-#include "vfo.h"
+#include <gdk/gdk.h>           // for gdk_window_create_similar_surface, GDK...
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gboolean, gpointer, TRUE, FALSE
+#include <gtk/gtk.h>           // for GtkWidget, gtk_drawing_area_new, gtk_w...
+#include <math.h>              // for M_PI, fmax, sqrt
+#include <stdio.h>             // for sprintf, NULL
+#include "adc.h"               // for ADC
+#include "cairo.h"             // for cairo_move_to, cairo_line_to, cairo_se...
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for start_meter
+#include "radio.h"             // for adc, filter_board, vox_threshold, vox_...
+#include "receiver.h"          // for RECEIVER
+#include "vfo.h"               // for _vfo, vfo
+#include "vox.h"               // for vox_get_peak
 
 static GtkWidget *parent_window;
 
diff --git a/meter.h b/meter.h
index 7c3bfd285f5de592c2a4743e5584adbf3c332a37..08ccfa7a2dff5d22aa2685b483d7a59119db348d 100644 (file)
--- a/meter.h
+++ b/meter.h
@@ -20,7 +20,8 @@
 #ifndef _METER_H
 #define _METER_H
 
-#include <gtk/gtk.h>
+#include <gtk/gtk.h>   // for GtkWidget
+#include "receiver.h"  // for RECEIVER
 
 #define SMETER 0
 #define POWER 1
index f01803143cae9ce0610df8d85ee08a9f6e50e992..b1f21bff5411677db05bf4dcaa34861e6a8db1b8 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <string.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "new_menu.h"
-#include "receiver.h"
 #include "meter_menu.h"
-#include "meter.h"
-#include "radio.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, TRUE, gboolean, FALSE
+#include <glib/gtypes.h>       // for GINT_TO_POINTER, GPOINTER_TO_UINT
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_toggle_button_set...
+#include <stdlib.h>            // for NULL
+#include <wdsp.h>              // for RXA_S_AV, RXA_S_PK, TXA_ALC_AV, TXA_AL...
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu
+#include "radio.h"             // for alc, smeter, analog_meter, with_gain
 
 static GtkWidget *parent_window=NULL;
 static GtkWidget *dialog=NULL;
index cac8ac4af5611e9c9dae6ec1b20925611289d483..d9a1c864b14285eb7ad7384a788b6a3a033dda10 100644 (file)
@@ -16,5 +16,6 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <gtk/gtk.h>  // for GtkWidget
 
 void meter_menu (GtkWidget *parent);
index bd78dae634fde5063456fc8c59fab9fd3efb8171..d03c2f40e503d2543fb48c0657b4d6fd55a860f9 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
-#include "band_menu.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "mode.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, TRUE, gboolean, FALSE
+#include <glib/gtypes.h>       // for GPOINTER_TO_UINT
+#include <gtk/gtk.h>           // for GtkWidget, GTK_GRID, gtk_button_new_wi...
+#include <stdio.h>             // for NULL, sprintf
+#include "button_text.h"       // for set_button_text_color
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "mode.h"              // for MODES, mode_string
+#include "new_menu.h"          // for sub_menu, NO_MENU, active_menu
+#include "radio.h"             // for active_receiver
+#include "receiver.h"          // for RECEIVER
+#include "vfo.h"               // for vfo_mode_changed, _vfo, vfo
 
 static GtkWidget *parent_window=NULL;
 
index 3325f5b4cffc124777a246f98fd0f575ac048c62..125bc3d6dfe0127cfbb1e0a8af2dcc35f110997a 100644 (file)
--- a/nb_menu.c
+++ b/nb_menu.c
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
-#include "noise_menu.h"
-#include "radio.h"
-
-#include <wdsp.h>
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, gboolean, FALSE, TRUE
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_widget_show, GtkW...
+#include <stdio.h>             // for NULL
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu
+#include "noise_menu.h"        // for update_nb
+#include "radio.h"             // for active_receiver
+#include "receiver.h"          // for RECEIVER
 
 static GtkWidget *parent_window = NULL;
 static GtkWidget *dialog = NULL;
index a866d98dacbe698a6f6bf0ff266777f55c51aa64..d3ce165366f1e47464d7f65ade417144c7a97072 100644 (file)
--- a/nb_menu.h
+++ b/nb_menu.h
@@ -17,6 +17,7 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <gtk/gtk.h>
 
 extern void nb_menu(GtkWidget *parent);
 
index 1d860c976a26eb11295ba5001e759b22338afc36..ec43faca0b9e3d462cc4b25c9108c6f1e44af185 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <net/if_arp.h>
-#include <net/if.h>
-#include <netinet/in.h>
-#include <ifaddrs.h>
-#include <string.h>
-#include <errno.h>
-
-#include "discovered.h"
-//#include "discovery.h"
-
+#include <arpa/inet.h>   // for inet_ntoa
+#include <glib.h>        // for gpointer, g_main_context_iteration, g_thread...
+#include <ifaddrs.h>     // for ifaddrs, freeifaddrs, getifaddrs
+#include <net/if.h>      // for IFF_RUNNING, IFF_UP
+#include <netinet/in.h>  // for sockaddr_in, in_addr, htons, INADDR_BROADCAST
+#include <stdio.h>       // for fprintf, perror, stderr, NULL
+#include <stdlib.h>      // for exit
+#include <string.h>      // for strcpy, memcpy
+#include <sys/socket.h>  // for setsockopt, SOL_SOCKET, AF_INET, bind, recvfrom
+#include <sys/time.h>    // for timeval
+#include <unistd.h>      // for close
+#include "discovered.h"  // for DISCOVERED, discovered, devices, _DISCOVERED...
 
 static char interface_name[64];
 static struct sockaddr_in interface_addr={0};
index 38be1ae763c06fefbb8528d23678f71bc1af8d84..e86a4c91cd962e7e570cf53452115f4d4b87fd35 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "audio.h"
 #include "new_menu.h"
-#include "about_menu.h"
-#include "exit_menu.h"
-#include "radio_menu.h"
-#include "rx_menu.h"
-#include "ant_menu.h"
-#include "display_menu.h"
-#include "dsp_menu.h"
-#include "pa_menu.h"
-#include "rigctl_menu.h"
-#include "oc_menu.h"
-#include "cw_menu.h"
-#include "nb_menu.h"
-#include "store_menu.h"
-#include "xvtr_menu.h"
-#include "equalizer_menu.h"
-#include "radio.h"
-#include "step_menu.h"
-#include "meter_menu.h"
-#include "band_menu.h"
-#include "bandstack_menu.h"
-#include "mode_menu.h"
-#include "filter_menu.h"
-#include "noise_menu.h"
-#include "agc_menu.h"
-#include "vox_menu.h"
-#include "diversity_menu.h"
-#include "tx_menu.h"
-#include "ps_menu.h"
-#include "encoder_menu.h"
-#include "switch_menu.h"
-#include "toolbar_menu.h"
-#include "vfo_menu.h"
-#include "fft_menu.h"
-#include "main.h"
-#include "actions.h"
-#include "gpio.h"
-#include "old_protocol.h"
-#include "new_protocol.h"
-#ifdef CLIENT_SERVER
-#include "server_menu.h"
-#endif
-#ifdef MIDI
-#include "midi_menu.h"
-#endif
+#include <gdk/gdk.h>           // for GdkEventButton, GdkRGBA, GdkEvent
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for TRUE, gboolean, gpointer, FALSE
+#include <gtk/gtk.h>           // for gtk_button_new_with_label, gtk_grid_at...
+#include <stdio.h>             // for NULL
+#include "about_menu.h"        // for about_menu
+#include "agc_menu.h"          // for agc_menu
+#include "ant_menu.h"          // for ant_menu
+#include "band_menu.h"         // for band_menu
+#include "bandstack_menu.h"    // for bandstack_menu
+#include "cw_menu.h"           // for cw_menu
+#include "discovered.h"        // for NEW_PROTOCOL, ORIGINAL_PROTOCOL
+#include "display_menu.h"      // for display_menu
+#include "diversity_menu.h"    // for diversity_menu
+#include "dsp_menu.h"          // for dsp_menu
+#include "encoder_menu.h"      // for encoder_menu
+#include "equalizer_menu.h"    // for equalizer_menu
+#include "exit_menu.h"         // for exit_menu
+#include "fft_menu.h"          // for fft_menu
+#include "filter_menu.h"       // for filter_menu
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "main.h"              // for top_window, CONTROLLER1, CONTROLLER2_V1
+#include "meter_menu.h"        // for meter_menu
+#include "mode_menu.h"         // for mode_menu
+#include "nb_menu.h"           // for nb_menu
+#include "noise_menu.h"        // for noise_menu
+#include "oc_menu.h"           // for oc_menu
+#include "pa_menu.h"           // for pa_menu
+#include "radio.h"             // for can_transmit, protocol, RECEIVERS, n_adc
+#include "radio_menu.h"        // for radio_menu
+#include "rigctl_menu.h"       // for rigctl_menu
+#include "rx_menu.h"           // for rx_menu
+#include "step_menu.h"         // for step_menu
+#include "store_menu.h"        // for store_menu
+#include "switch_menu.h"       // for switch_menu
+#include "toolbar_menu.h"      // for toolbar_menu
+#include "tx_menu.h"           // for tx_menu
+#include "vfo_menu.h"          // for vfo_menu
+#include "vox_menu.h"          // for vox_menu
+#include "xvtr_menu.h"         // for xvtr_menu
 
 static GtkWidget *dialog=NULL;
 
index 977c564e34596dfa96b6689ab0e3adfb0fab509b..a4d728c0a2afd8d6c074309fd6a77c73a9cf299c 100644 (file)
@@ -1,3 +1,5 @@
+#include <gtk/gtk.h>
+
 extern GtkWidget *sub_menu;
 
 extern void new_menu();
index 755874ffbca0bff39d326535d3832e8c237d636d..4b4c98540e6ac1a9cd99f96d6c5a0eebab5216db 100644 (file)
 
 //#define ECHO_MIC
 
-#include <gtk/gtk.h>
-
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <net/if_arp.h>
-#include <net/if.h>
-#include <ifaddrs.h>
-#include <semaphore.h>
-#include <math.h>
-#include <sys/select.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "alex.h"
-#include "audio.h"
-#include "band.h"
 #include "new_protocol.h"
-#include "channel.h"
-#include "discovered.h"
-#include "mode.h"
-#include "filter.h"
-#include "radio.h"
-#include "receiver.h"
-#include "transmitter.h"
-#include "signal.h"
-#include "vfo.h"
-#include "toolbar.h"
-#include "vox.h"
-#include "ext.h"
-#include "iambic.h"
+#include <arpa/inet.h>    // for inet_ntoa
+#include <errno.h>        // for errno
+#include <glib.h>         // for g_print, gpointer, g_thread_new, GThread
+#include <glib/gtypes.h>  // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <math.h>         // for sqrt
+#include <netinet/in.h>   // for sockaddr_in, htons, ntohs, IPPROTO_UDP
+#include <pthread.h>      // for pthread_mutex_lock, pthread_mutex_unlock
+#include <semaphore.h>    // for sem_init, sem_post, sem_wait, sem_t
+#include <stdio.h>        // for NULL
+#include <stdlib.h>       // for exit, free, malloc, abort
+#include <string.h>       // for memset, memcpy
+#include <sys/select.h>   // for select, FD_SET, FD_ZERO, fd_set
+#include <sys/socket.h>   // for sendto, recvfrom, setsockopt, bind, socket
+#include <sys/time.h>     // for timeval, gettimeofday
+#include <unistd.h>       // for usleep, close
+#include "adc.h"          // for ADC
+#include "alex.h"         // for ALEX_RX_ANTENNA_BYPASS, ALEX_RX_ANTENNA_EXT1
+#include "audio.h"        // for audio_get_next_mic_sample, audio_open_input
+#include "band.h"         // for band_get_band, BAND
+#include "discovered.h"   // for DISCOVERED, _DISCOVERED::(anonymous), network
+#include "ext.h"          // for ext_mox_update
+#include "iambic.h"       // for keyer_event
+#include "mode.h"         // for modeCWL, modeCWU
+#include "radio.h"        // for isTransmitting, radio, receiver, transmitter
+#include "receiver.h"     // for RECEIVER, add_iq_samples, add_div_iq_samples
+#include "transmitter.h"  // for TRANSMITTER, add_mic_sample, add_ps_iq_samples
+#include "vfo.h"          // for _vfo, vfo, get_tx_mode, get_tx_vfo, VFO_A
 
 #define min(x,y) (x<y?x:y)
 
index 1b2651955fd00c45fe7e901729b642acc9dbb82e..338dcfd7958f64a812a3c61cf8a21f1505b7f605 100644 (file)
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <net/if_arp.h>
-#include <net/if.h>
-#include <sys/stat.h>
-#include <ifaddrs.h>
-#include <pthread.h>
-#include <semaphore.h>
-#include <time.h>
-#include <math.h>
-#include <errno.h>
-
-#include <gtk/gtk.h>
-
-#include "discovered.h"
-#include "new_protocol.h"
+#include <errno.h>         // for errno, ETIMEDOUT
+#include <netinet/in.h>    // for sockaddr_in, htons
+#include <pthread.h>       // for pthread_create, pthread_t
+#include <semaphore.h>     // for sem_timedwait
+#include <stdio.h>         // for fprintf, stderr, fseek, NULL, fclose, fopen
+#include <stdlib.h>        // for exit, malloc
+#include <string.h>        // for memcpy, memset
+#include <sys/socket.h>    // for sendto
+#include <time.h>          // for clock_gettime, timespec, CLOCK_REALTIME
+#include "discovered.h"    // for DISCOVERED, _DISCOVERED::(anonymous), network
+#include "new_protocol.h"  // for response, response_sem, data_socket, PROGR...
 
 static long sequence;
 static long block_sequence;
index d15f424cc78212b4f3da6a3aadd19e971c919826..0b5e7e7ca46f2e9b99d7c65651c9338ced5b0840 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "new_menu.h"
 #include "noise_menu.h"
-#include "channel.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "mode.h"
-#include "radio.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "ext.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, TRUE, g_idle_add, gboolean
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_widget_show, gtk_...
+#include <stdio.h>             // for NULL, sprintf
+#include <wdsp.h>              // for SetEXTANBAdvtime, SetEXTANBHangtime
+#include "ext.h"               // for ext_vfo_update
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu, NO_MENU, active_menu
+#include "radio.h"             // for active_receiver
+#include "receiver.h"          // for RECEIVER
+#include "vfo.h"               // for _mode_settings, _vfo, mode_settings, vfo
 
 static GtkWidget *parent_window=NULL;
 
index be535b424007e2ee80851af78b5788c110ad55e1..4993bc0b1c667ab2832738a3f56dc2c2877bbf0b 100644 (file)
@@ -16,6 +16,7 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <gtk/gtk.h>  // for GtkWidget
 
 extern void noise_menu(GtkWidget *parent);
 
index aa91f4b3fe5870283c843515c762925a6d4af08e..78df601ec2fccefa43bd158bdd68699ac7e634e9 100644 (file)
--- a/oc_menu.c
+++ b/oc_menu.c
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
 #include "oc_menu.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "radio.h"
-#include "new_protocol.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, g_print, gboolean, FALSE, TRUE
+#include <glib/gtypes.h>       // for GPOINTER_TO_UINT
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_widget_show, GtkW...
+#include <stdio.h>             // for NULL, fprintf, sprintf, stderr
+#include <string.h>            // for strlen
+#include "band.h"              // for BAND, band_get_band, BANDS, band10, band6
+#include "discovered.h"        // for NEW_PROTOCOL, DEVICE_HERMES_LITE, DEVI...
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu
+#include "new_protocol.h"      // for schedule_high_priority
+#include "radio.h"             // for OCtune, protocol, OCfull_tune_time
 
 static GtkWidget *parent_window=NULL;
 
index 6988a5915398f7c890df9d7d7e6620e599f449fe..c509250b534ed40f89252c1d603c5ee6bce4e138 100644 (file)
--- a/oc_menu.h
+++ b/oc_menu.h
@@ -16,5 +16,6 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <gtk/gtk.h>  // for GtkWidget
 
 extern void oc_menu(GtkWidget *parent);
index 8c8cfc045c909e07a0dab2feba613f37566299cc..6eeacae2cbf580a1dde3812f3b5ced3d4733177a 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <net/if_arp.h>
-#include <net/if.h>
-#include <ifaddrs.h>
-#include <string.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <sys/select.h>
-
-#include "discovered.h"
-#include "discovery.h"
 #include "old_discovery.h"
-#include "log.h"
+#include <arpa/inet.h>   // for inet_ntoa, inet_aton
+#include <errno.h>       // for errno, EINPROGRESS
+#include <fcntl.h>       // for fcntl, F_SETFL, O_NONBLOCK, F_GETFL
+#include <glib.h>        // for gpointer, g_main_context_iteration, g_thread...
+#include <ifaddrs.h>     // for ifaddrs, freeifaddrs, getifaddrs
+#include <net/if.h>      // for IFF_RUNNING, IFF_UP
+#include <netinet/in.h>  // for sockaddr_in, in_addr, htons, INADDR_BROADCAST
+#include <stdio.h>       // for perror, NULL, size_t
+#include <stdlib.h>      // for exit
+#include <string.h>      // for strcpy, memcpy, memset, strerror
+#include <sys/select.h>  // for timeval, select, FD_SET, FD_ZERO, fd_set
+#include <sys/socket.h>  // for setsockopt, socket, AF_INET, SOL_SOCKET, bind
+#include <unistd.h>      // for close
+#include "discovered.h"  // for DISCOVERED, discovered, devices, _DISCOVERED...
+#include "discovery.h"   // for ipaddr_tcp
+#include "log.h"         // for log_trace, log_error, log_debug
 
 static char interface_name[64];
 static struct sockaddr_in interface_addr={0};
index f8f29f720280b716fa622881f34c719a4793a682..2b7e4cf87b1ddad4ab17097eec49fafe7c7eae5e 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <sys/time.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <net/if_arp.h>
-#include <net/if.h>
-#include <ifaddrs.h>
-#include <semaphore.h>
-#include <string.h>
-#include <errno.h>
-#include <math.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "audio.h"
-#include "band.h"
-#include "channel.h"
-#include "discovered.h"
-#include "mode.h"
-#include "filter.h"
 #include "old_protocol.h"
-#include "radio.h"
-#include "receiver.h"
-#include "transmitter.h"
-#include "signal.h"
-#include "toolbar.h"
-#include "vfo.h"
-#include "ext.h"
-#include "iambic.h"
-#include "error_handler.h"
-#include "log.h"
+#include <arpa/inet.h>    // for inet_ntoa
+#include <errno.h>        // for errno, EAGAIN
+#include <glib.h>         // for gpointer, g_idle_add, g_thread_new, GThread
+#include <math.h>         // for sqrt
+#include <netinet/in.h>   // for sockaddr_in, htons, ntohs, IPPROTO_UDP
+#include <stdint.h>       // for uint32_t
+#include <stdio.h>        // for perror, NULL, size_t
+#include <stdlib.h>       // for exit
+#include <string.h>       // for memcpy, strerror
+#include <sys/socket.h>   // for setsockopt, SOL_SOCKET, recvfrom, sendto
+#include <sys/time.h>     // for timeval, gettimeofday
+#include <unistd.h>       // for usleep, close
+#include "adc.h"          // for ADC
+#include "audio.h"        // for audio_get_next_mic_sample, audio_open_input
+#include "band.h"         // for band_get_band, BAND, band_get_current, band...
+#include "discovered.h"   // for DISCOVERED, _DISCOVERED::(anonymous), network
+#include "ext.h"          // for ext_mox_update
+#include "iambic.h"       // for keyer_event
+#include "log.h"          // for log_error, log_trace, log_info, log_debug
+#include "mode.h"         // for modeCWL, modeCWU
+#include "radio.h"        // for isTransmitting, transmitter, receiver, device
+#include "receiver.h"     // for RECEIVER, add_iq_samples, add_div_iq_samples
+#include "transmitter.h"  // for TRANSMITTER, add_mic_sample, add_ps_iq_samples
+#include "vfo.h"          // for _vfo, vfo, get_tx_vfo, get_tx_mode, VFO_A
 
 #define min(x,y) (x<y?x:y)
 
@@ -404,7 +391,7 @@ static void open_udp_socket() {
     }
 
     // bind to the interface
-    log_trace("binding UDP socket to %s:%d\n",inet_ntoa(radio->info.network.interface_address.sin_addr),ntohs(radio->info.network.interface_address.sin_port));
+    log_trace("binding UDP socket to %s:%d",inet_ntoa(radio->info.network.interface_address.sin_addr),ntohs(radio->info.network.interface_address.sin_port));
     if(bind(tmp,(struct sockaddr*)&radio->info.network.interface_address,radio->info.network.interface_length)<0) {
        log_error("old_protocol: bind socket failed for data_socket: %s", strerror(errno));
        exit(-1);
index 49f6e7c146aeb61fe7b0b841a26d6a3f52f9533a..e09b071e1219bd4d1ef81f333b8620fc2e10fe30 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef _OLD_PROTOCOL_H
 #define _OLD_PROTOCOL_H
 
+#include "receiver.h"  // for RECEIVER
+
 extern void old_protocol_stop();
 extern void old_protocol_run();
 
index fc9c8d2d70fc9c40473414fe06bd3dcce64c7e83..d8ac776f3833593177a1f873b50e2e4244332c8f 100644 (file)
--- a/pa_menu.c
+++ b/pa_menu.c
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
 #include "pa_menu.h"
-#include "band.h"
-#include "radio.h"
-#include "vfo.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for FALSE, TRUE, gpointer, gboolean, g_print
+#include <glib/gtypes.h>       // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <gtk/gtk.h>           // for gtk_grid_attach, GtkWidget, gtk_combo_...
+#include <stdio.h>             // for NULL, sprintf
+#include <string.h>            // for strlen
+#include "band.h"              // for BAND, band_get_band, BANDS, band10, band6
+#include "discovered.h"        // for DEVICE_HERMES_LITE, DEVICE_HERMES_LITE2
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu
+#include "radio.h"             // for pa_trim, pa_power, calcDriveLevel, tx_...
+#include "vfo.h"               // for get_tx_vfo, _vfo, vfo
 
 static GtkWidget *parent_window=NULL;
 
index 03f440bab6c9a5369297f22aec170d94bddcb76f..63e47c7da0943e069d515e6184eeac574edc0f92 100644 (file)
--- a/pa_menu.h
+++ b/pa_menu.h
@@ -18,7 +18,5 @@
 */
 
 #include <gtk/gtk.h>
-#include <stdio.h>
-#include <string.h>
 
 extern void pa_menu(GtkWidget *parent);
index e52096150be8a5cf37c3288f9252f0b1246ac82d..1679d8753a4d387473a7db3ea15ac9307fc140d7 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
 #include "property.h"
-#include "log.h"
+#include <stdio.h>   // for NULL, fclose, fopen, sprintf, fgets, fwrite, FILE
+#include <stdlib.h>  // for malloc, free, atof
+#include <string.h>  // for strlen, strcpy, strcmp, strtok
+#include "log.h"     // for log_error
 
 PROPERTY* properties=NULL;
 
index ae419799b5057a11d570246896c251bfa18067ef..a0d9e121aec335188548035b8027e6486e799f3d 100644 (file)
@@ -22,6 +22,7 @@
 
 #define PROPERTY_VERSION 3.0
 
+struct _PROPERTY;
 typedef struct _PROPERTY PROPERTY;
 
 /* --------------------------------------------------------------------------*/
index 0b23f8bf994631f57e03156bb70a409e43327c10..3be1b338cdda2b912db9bc05ae205b0715569f28 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <math.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <semaphore.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
 #include "protocols.h"
-#include "property.h"
-
+#include <gdk/gdk.h>           // for GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <gtk/gtk.h>           // for gtk_grid_attach, GtkWidget, gtk_check_...
+#include <stdio.h>             // for sprintf
+#include <stdlib.h>            // for atoi, NULL
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "property.h"          // for getProperty, setProperty, clearProperties
 
 static GtkWidget *dialog;
 
index 3d3571eb45884c5509f33ce1fba8ea6ce7379987..a19bc1dc4c4ea2b1435e48caa394e97c8ac9e685 100644 (file)
@@ -17,6 +17,9 @@
 *
 */
 
+#include <glib.h>     // for gboolean
+#include <gtk/gtk.h>  // for GtkWidget
+
 extern gboolean enable_protocol_1;
 extern gboolean enable_protocol_2;
 extern gboolean autostart;
diff --git a/radio.c b/radio.c
index 5eceae4ac0c0bb0708af09174e5e5ef65e980df6..1cd5cefaadef5cf658cb903be3b1b8ff18542456 100644 (file)
--- a/radio.c
+++ b/radio.c
  *
  */
 
-#include <arpa/inet.h>
-#include <gtk/gtk.h>
-#include <math.h>
-#include <netdb.h>
-#include <netinet/in.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "adc.h"
-#include "audio.h"
-#include "dac.h"
-#include "discovered.h"
-// #include "discovery.h"
-#include "actions.h"
-#include "agc.h"
-#include "band.h"
-#include "channel.h"
-#include "ext.h"
-#include "filter.h"
-#include "gpio.h"
-#include "main.h"
-#include "meter.h"
-#include "mode.h"
-#include "new_menu.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "property.h"
 #include "radio.h"
-#include "receiver.h"
-#include "rigctl.h"
-#include "rx_panadapter.h"
-#include "screen.h"
-#include "sliders.h"
-#include "store.h"
-#include "toolbar.h"
-#include "transmitter.h"
-#include "tx_panadapter.h"
-#include "vfo.h"
-#include "vox.h"
-#include "waterfall.h"
-#include "zoompan.h"
-#include "log.h"
-
-#ifdef LOCALCW
-#include "iambic.h"
-#endif
-#ifdef MIDI
-#include "alsa_midi.h"
-#include "midi_menu.h"
-// rather than including MIDI.h with all its internal stuff
-// (e.g. enum components) we just declare the single bit thereof
-// we need here to make a strict compiler happy.
-// extern void MIDIstartup();
-#endif
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
+#include <arpa/inet.h>         // for inet_ntoa
+#include <gdk/gdk.h>           // for gdk_cursor_new, gdk_window_set_cursor
+#include <glib-object.h>       // for g_object_ref, g_signal_connect
+#include <gtk/gtk.h>           // for gtk_fixed_put, gtk_container_remove
+#include <math.h>              // for fmin, pow, exp, log10, sqrt
+#include <netinet/in.h>        // for sockaddr_in
+#include <stdio.h>             // for sprintf, NULL
+#include <stdlib.h>            // for atoi, atof, atoll
+#include <string.h>            // for strcpy
+#include <sys/time.h>          // for gettimeofday, timeval
+#include <unistd.h>            // for usleep
+#include <wdsp.h>              // for SetChannelState, CloseChannel, SetTXAP...
+#include "adc.h"               // for ADC, ANTENNA_1, AUTOMATIC, HPF_13, HPF...
+#include "band.h"              // for bandstack60, get_band_from_frequency
+#include "bandstack.h"         // for BANDSTACK
+#include "channel.h"           // for CHANNEL_TX
+#include "dac.h"               // for DAC
+#include "discovered.h"        // for DISCOVERED, NEW_PROTOCOL, _DISCOVERED:...
+#include "ext.h"               // for ext_vfo_update
+#include "filter.h"            // for filterRestoreState, filterSaveState
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "gpio.h"              // for gpio_init, gpio_restore_actions, gpio_...
+#include "iambic.h"            // for keyer_update
+#include "log.h"               // for log_trace, log_error
+#include "main.h"              // for display_width, top_window, display_height
+#include "meter.h"             // for meter_init
+#include "mode.h"              // for modeUSB, modeCWL, modeCWU, modeLSB
+#include "new_menu.h"          // for new_menu
+#include "new_protocol.h"      // for schedule_high_priority, schedule_recei...
+#include "old_protocol.h"      // for old_protocol_run, old_protocol_stop
+#include "pango/pango-font.h"  // for pango_font_description_from_string
+#include "property.h"          // for setProperty, getProperty, clearProperties
+#include "receiver.h"          // for RECEIVER, set_displaying, set_offset
+#include "rigctl.h"            // for close_rigctl_ports, launch_rigctl, lau...
+#include "screen.h"            // for SLIDERS_HEIGHT, ZOOMPAN_HEIGHT, TOOLBA...
+#include "sliders.h"           // for sliders_init, att_type_changed
+#include "store.h"             // for memRestoreState, memSaveState
+#include "toolbar.h"           // for toolbar_init
+#include "transmitter.h"       // for TRANSMITTER, tx_set_mode, create_trans...
+#include "vfo.h"               // for _vfo, vfo, get_tx_mode, get_tx_vfo
+#include "vox.h"               // for vox_cancel
+#include "zoompan.h"           // for zoompan_init
 
 #define min(x, y) (x < y ? x : y)
 #define max(x, y) (x < y ? y : x)
diff --git a/radio.h b/radio.h
index 2cc368a4f3b247bd5dc4dd71ce9be712be46edf2..8d7cb7a44cefa02cd3cb5e96f4580f481981dccb 100644 (file)
--- a/radio.h
+++ b/radio.h
 #ifndef _RADIO_H
 #define _RADIO_H
 
-#include "adc.h"
-#include "dac.h"
-#include "discovered.h"
-#include "receiver.h"
-#include "transmitter.h"
+#include <glib.h>         // for gboolean, gint, GMutex
+#include <gtk/gtk.h>      // for GtkWidget
+#include "adc.h"          // for ADC
+#include "dac.h"          // for DAC
+#include "discovered.h"   // for DISCOVERED
+#include "receiver.h"     // for RECEIVER
+#include "transmitter.h"  // for TRANSMITTER
 
 #define NEW_MIC_IN 0x00
 #define NEW_LINE_IN 0x01
index 0a70f4c97edf4da9241f0445cb37c9af99a20414..c47a1b2e0e5171989c8f05929aacf6d9193afd82 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "discovered.h"
-#include "new_menu.h"
 #include "radio_menu.h"
-#include "adc.h"
-#include "band.h"
-#include "filter.h"
-#include "radio.h"
-#include "receiver.h"
-#include "sliders.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "actions.h"
-#ifdef GPIO
-#include "gpio.h"
-#endif
-#include "vfo.h"
-#include "ext.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, g_idle_add, FALSE, gboolean
+#include <glib/gtypes.h>       // for GPOINTER_TO_INT
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_toggle_button_set...
+#include <stdio.h>             // for NULL
+#include "band.h"              // for band_get_band, BAND, band_get_current_...
+#include "discovered.h"        // for NEW_PROTOCOL, ORIGINAL_PROTOCOL, DISCO...
+#include "ext.h"               // for ext_vfo_update, ext_split_toggle
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "main.h"              // for display_width, display_height
+#include "new_menu.h"          // for sub_menu
+#include "new_protocol.h"      // for filter_board_changed, schedule_high_pr...
+#include "radio.h"             // for filter_board, protocol, active_receiver
+#include "receiver.h"          // for RECEIVER
+#include "sliders.h"           // for att_type_changed
+#include "transmitter.h"       // for reconfigure_transmitter, TRANSMITTER
 
 static GtkWidget *parent_window=NULL;
 static GtkWidget *dialog=NULL;
index b2d495d231aa4a805e907bd7d4c976bf846ce23b..a101522f7dce901fd347ceebe39b2724b650f209 100644 (file)
@@ -17,6 +17,8 @@
 *
 */
 
+#include <gtk/gtk.h>  // for GtkWidget
+
 extern void radio_menu(GtkWidget *parent);
 extern void setDuplex(void);
 extern void load_filters(void);
index c5b6b655e19fb41950e84eb93174a816c34a05ee..f34dc1e70feddf3f19613f5d95a6c9b282518eba 100644 (file)
  *
  */
 
-#include <gtk/gtk.h>
-#include <math.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "agc.h"
-#include "audio.h"
-#include "band.h"
-#include "bandstack.h"
-#include "channel.h"
-#include "discovered.h"
-#include "ext.h"
-#include "filter.h"
-#include "main.h"
-#include "meter.h"
-#include "mode.h"
-#include "new_menu.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "property.h"
-#include "radio.h"
 #include "receiver.h"
-#include "rx_panadapter.h"
-#include "sliders.h"
-#include "transmitter.h"
-#include "vfo.h"
-#include "waterfall.h"
-#include "zoompan.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
-#include "log.h"
+#include <glib-object.h>    // for g_object_weak_ref, G_OBJECT, GObject
+#include <gtk/gtk.h>        // for gtk_fixed_put, gtk_widget_set_size_request
+#include <math.h>           // for ceil, fmax
+#include <stdio.h>          // for sprintf, NULL
+#include <stdlib.h>         // for atoi, atof, malloc
+#include <string.h>         // for strcpy, strlen
+#include <wdsp.h>           // for SetRXAAGCAttack, SetRXAAGCDecay, SetRXAAG...
+#include "agc.h"            // for AGC_MEDIUM, AGC_FAST, AGC_LONG, AGC_OFF
+#include "audio.h"          // for audio_open_output, audio_write
+#include "band.h"           // for BAND, band_get_band
+#include "discovered.h"     // for NEW_PROTOCOL, ORIGINAL_PROTOCOL, DEVICE_H...
+#include "ext.h"            // for ext_start_rx, ext_vfo_update
+#include "filter.h"         // for FILTER, filters
+#include "log.h"            // for log_trace, log_debug, log_error
+#include "meter.h"          // for meter_update, SMETER
+#include "mode.h"           // for modeCWL, modeCWU, modeFMN
+#include "new_menu.h"       // for menu_active_receiver_changed
+#include "new_protocol.h"   // for new_protocol_audio_samples, schedule_high...
+#include "old_protocol.h"   // for old_protocol_audio_samples
+#include "property.h"       // for getProperty, setProperty
+#include "radio.h"          // for active_receiver, isTransmitting, cw_keyer...
+#include "rx_panadapter.h"  // for rx_panadapter_init, rx_panadapter_update
+#include "sliders.h"        // for sliders_active_receiver_changed
+#include "transmitter.h"    // for tx_set_filter, tx_set_mode, TRANSMITTER
+#include "vfo.h"            // for _vfo, vfo, vfo_move, vfo_step, get_tx_mode
+#include "waterfall.h"      // for waterfall_init, waterfall_update
+#include "zoompan.h"        // for set_pan, zoompan_active_receiver_changed
 
 #define min(x, y) (x < y ? x : y)
 #define max(x, y) (x < y ? y : x)
index 59b53de39ad984f510038e3d3bf8ff3135e8a6e0..bcc56d0eab0339521c61955bf6f725daf0a80bb1 100644 (file)
 #ifndef _RECEIVER_H
 #define _RECEIVER_H
 
-#include <gtk/gtk.h>
-#ifdef PORTAUDIO
-#include "portaudio.h"
-#else
-#include <pulse/pulseaudio.h>
-#include <pulse/simple.h>
-#endif
+#include <gdk-pixbuf/gdk-pixbuf.h>  // for GdkPixbuf
+#include <gdk/gdk.h>                // for GdkEventButton, GdkEventMotion
+#include <glib.h>                   // for gint, gdouble, gboolean, gpointer
+#include <glib/gtypes.h>            // for gint64, guint32
+#include <gtk/gtk.h>                // for GtkWidget
+#include <pulse/simple.h>           // for pa_simple
+#include "cairo.h"                  // for cairo_surface_t
 
 enum _audio_t {
     STEREO=0,
index e36303e74ea194be5dc47059b33bee0455bb87ce..a1fd6f15eacdeaa7902a2654ce02a3dadd575a94 100644 (file)
--- a/rigctl.c
+++ b/rigctl.c
  * greatly with hamlib integration!
  */
 
-#include <stdbool.h>
-
-#include <errno.h>
-#include <fcntl.h>
-#include <gdk/gdk.h>
-#include <gtk/gtk.h>
-#include <string.h>
-#include <termios.h>
-#include <unistd.h>
-// #include <semaphore.h>
-#include "agc.h"
-#include "band.h"
-#include "band_menu.h"
-#include "bandstack.h"
-#include "channel.h"
-#include "ext.h"
-#include "filter.h"
-#include "filter_menu.h"
-#include "mode.h"
-#include "new_menu.h"
-#include "new_protocol.h"
-#include "noise_menu.h"
-#include "old_protocol.h"
-#include "radio.h"
-#include "receiver.h"
 #include "rigctl.h"
-#include "rigctl_menu.h"
-#include "rx_menu.h"
-#include "sliders.h"
-#include "store.h"
-#include "toolbar.h"
-#include "transmitter.h"
-#include "vfo.h"
-#include "zoompan.h"
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <wdsp.h>
-#ifdef LOCALCW
-#include "iambic.h" // declare keyer_update()
-#endif
-#include <math.h>
-#include "log.h"
+#include <termios.h>
+#include <errno.h>                 // for errno
+#include <fcntl.h>                 // for fcntl, O_NONBLOCK, open, F_GETFL
+#include <glib/gtypes.h>           // for GPOINTER_TO_INT
+#include <math.h>                  // for fmin, fmax, round
+#include <netinet/in.h>            // for sockaddr_in, INADDR_ANY, htons
+#include <stdbool.h>               // for false, true, bool
+#include <stdio.h>                 // for sprintf, NULL, perror, FILE, ssize_t
+#include <stdlib.h>                // for atoi, strtol, atoll, abs, atof
+#include <string.h>                // for strcpy, strerror, strncpy, memset
+#include <sys/socket.h>            // for setsockopt, linger, SOL_SOCKET
+#include <termios.h>               // for tcgetattr, tcsetattr, cc_t, cfseti...
+#include <unistd.h>                // for usleep, close, _exit, read, write
+#include <wdsp.h>                  // for SetRXAANFRun
+#include "adc.h"                   // for ADC
+#include "band.h"                  // for band20, band10, band12, band136
+#include "discovered.h"            // for ORIGINAL_PROTOCOL
+#include "ext.h"                   // for local_set_frequency, band_minus
+#include "filter.h"                // for FILTER, filterVar1, filters, FILTERS
+#include "iambic.h"                // for keyer_update
+#include "log.h"                   // for log_error, log_debug, log_trace
+#include "mode.h"                  // for modeLSB, modeAM, modeCWL, modeCWU
+#include "new_menu.h"              // for start_bandstack
+#include "new_protocol.h"          // for new_protocol_stop
+#include "noise_menu.h"            // for update_noise
+#include "old_protocol.h"          // for old_protocol_stop
+#include "radio.h"                 // for receiver, active_receiver, transmi...
+#include "receiver.h"              // for RECEIVER, set_agc
+#include "rigctl_menu.h"           // for rigctl_debug, ser_port, disable_se...
+#include "rx_menu.h"               // for toggle_audio_output_device
+#include "sliders.h"               // for update_af_gain, set_agc_gain, set_...
+#include "toolbar.h"               // for mox_update, tune_update
+#include "transmitter.h"           // for TRANSMITTER, tx_set_mode, cw_not_r...
+#include "vfo.h"                   // for _vfo, vfo_update, vfo, VFO_A, vfo_...
+#include "zoompan.h"               // for set_zoom
 
 #define NEW_PARSER
 
index f0b4d3163d65aaf64dab4f48a6c18d19efc1ff03..f45ff8d8915a5b87a07969ea1567d6772d1d06f4 100644 (file)
--- a/rigctl.h
+++ b/rigctl.h
@@ -1,7 +1,9 @@
 #ifndef RIGCTL_H
 #define RIGCTL_H
 
-#include <stdbool.h>
+#include <glib.h>     // for gpointer
+#include <stdbool.h>  // for bool
+#include <stdint.h>   // for uint32_t
 
 void launch_rigctl ();
 int launch_serial ();
index 469e6790c0488a8b158855f1073b09169e8bd51a..4d92c23bd1dd5e2655d337ed442a653f49687226 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <string.h>
-#include <termios.h>
-#include <unistd.h>
-
-#include "new_menu.h"
 #include "rigctl_menu.h"
-#include "rigctl.h"
-#include "band.h"
-#include "radio.h"
-#include "vfo.h"
-#include "log.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib/gtypes.h>       // for GPOINTER_TO_INT
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_widget_show, GtkW...
+#include <stdio.h>             // for NULL
+#include <string.h>            // for strcpy
+#include <termios.h>           // for B9600, B19200, B38400, B4800
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "log.h"               // for log_trace, log_debug
+#include "new_menu.h"          // for sub_menu
+#include "radio.h"             // for disable_rigctl
+#include "rigctl.h"            // for launch_rigctl, launch_serial, rigctl_e...
 
 gboolean  serial_enable = TRUE; // edit (enable serial at startup)
 char ser_port[64]="/dev/ttyACM0";
index 64a9d27664bb5dd6c09d349199b9def289d61a5e..f40994052d55a6aa0a217f0fa922f06a5de9e20a 100644 (file)
@@ -17,9 +17,8 @@
 *
 */
 
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <string.h>
+#include <glib.h>     // for gboolean
+#include <gtk/gtk.h>  // for GtkWidget
 
 extern void rigctl_menu(GtkWidget *parent);
 extern char ser_port[];
index fb15bf13d1703aa5f3394cd46e4586778c0d86d0..a24aace2d0e684356aacb3152b73ebcb8afb5282 100644 (file)
--- a/rx_menu.c
+++ b/rx_menu.c
  *
  */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "audio.h"
-#include "band.h"
-#include "discovered.h"
-#include "filter.h"
-#include "new_menu.h"
-#include "new_protocol.h"
-#include "radio.h"
-#include "receiver.h"
 #include "rx_menu.h"
-#include "sliders.h"
-#include "log.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, g_malloc, g_free, g_malloc_n
+#include <glib/gtypes.h>       // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_toggle_button_set...
+#include <stdint.h>            // for intptr_t
+#include <stdio.h>             // for NULL, sprintf, size_t
+#include <string.h>            // for strcpy, strlen, strcmp
+#include "audio.h"             // for AUDIO_DEVICE, audio_close_output, audi...
+#include "discovered.h"        // for NEW_PROTOCOL, ORIGINAL_PROTOCOL, DEVIC...
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "log.h"               // for log_trace, log_error
+#include "new_menu.h"          // for sub_menu
+#include "new_protocol.h"      // for schedule_high_priority
+#include "radio.h"             // for active_receiver, protocol, device, set...
+#include "receiver.h"          // for RECEIVER, receiver_change_adc, receive...
+#include "sliders.h"           // for update_att_preamp
 
 static GtkWidget *parent_window = NULL;
 static GtkWidget *dialog = NULL;
index 1342234f62dce8ffc833f0724f2770005b0608a8..ac58e702474a075b0df2255e565f874f684f982e 100644 (file)
--- a/rx_menu.h
+++ b/rx_menu.h
@@ -17,5 +17,7 @@
  *
  */
 
+#include <gtk/gtk.h>  // for GtkWidget
+
 extern void rx_menu(GtkWidget *parent);
 extern void toggle_audio_output_device(void);
index 78b3988bc11abca931ddca7ca541dcfff2528da8..72a7ea3306b2154c08abd3baa2c62f1c72e7e07d 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <math.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <semaphore.h>
-#include <arpa/inet.h>
-#include <stdbool.h>
-
-#include <wdsp.h>
-
-#include "agc.h"
-#include "band.h"
-#include "channel.h"
-#include "discovered.h"
-#include "radio.h"
-#include "receiver.h"
-#include "transmitter.h"
 #include "rx_panadapter.h"
-#include "vfo.h"
-#include "mode.h"
-#include "actions.h"
-#ifdef GPIO
-#include "gpio.h"
-#endif
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
+#include <gdk/gdk.h>           // for gdk_window_create_similar_surface, Gdk...
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gboolean, gpointer, gfloat, FALSE, TRUE
+#include <gtk/gtk.h>           // for GtkWidget, gtk_widget_get_allocated_he...
+#include <math.h>              // for floor
+#include <stdio.h>             // for sprintf
+#include <stdlib.h>            // for abs, NULL
+#include "adc.h"               // for ADC
+#include "agc.h"               // for AGC_FAST, AGC_MEDIUM, AGC_OFF
+#include "band.h"              // for BAND, CHANNEL, band_channels_60m, band...
+#include "cairo.h"             // for cairo_move_to, cairo_set_source_rgb
+#include "discovered.h"        // for DEVICE_HERMES_LITE2, ORIGINAL_PROTOCOL
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "mode.h"              // for modeCWL, modeCWU
+#include "radio.h"             // for adc, filter_board, ALEX, cw_keyer_side...
+#include "receiver.h"          // for RECEIVER, receiver_button_press_event
+#include "vfo.h"               // for _vfo, vfo
 
 #define LINE_WIDTH 0.5
 
index 3481d8a1911e31a6d7a92245e6ad585ce029bbc2..45846c8262a5397bb89fac6aa0c0cae6b12878bd 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef _PANADAPTER_H
 #define _PANADAPTER_H
 
+#include "receiver.h"  // for RECEIVER
+
 void rx_panadapter_update(RECEIVER* rx);
 
 void rx_panadapter_init(RECEIVER *rx,int width,int height);
index 9b71c40923fdc1054bd4e0541c1bdc06b0af877a..700e51d183cae686334b980a392841505278ba73 100644 (file)
--- a/sliders.c
+++ b/sliders.c
 //#define COMPRESSION_SLIDER_INSTEAD_OF_SQUELCH 1
 //
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>
-#include <stdbool.h>
-
-#include "receiver.h"
 #include "sliders.h"
-#include "mode.h"
-#include "filter.h"
-#include "bandstack.h"
-#include "band.h"
-#include "discovered.h"
-#include "new_protocol.h"
-#include "vfo.h"
-#include "alex.h"
-#include "agc.h"
-#include "channel.h"
-#include "wdsp.h"
-#include "radio.h"
-#include "transmitter.h"
-#include "property.h"
-#include "main.h"
-#include "ext.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
-#include "actions.h"
-#include "log.h"
+#include <glib-object.h>       // for g_signal_connect, G_OBJECT
+#include <gtk/gtk.h>           // for gtk_range_set_value, gtk_widget_show
+#include <math.h>              // for pow
+#include <stdio.h>             // for NULL, sprintf
+#include <stdlib.h>            // for atoi, free
+#include "actions.h"           // for AF_GAIN, AGC_GAIN, ATTENUATION, COMPRE...
+#include "adc.h"               // for ADC
+#include "ext.h"               // for ext_vfo_update
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "log.h"               // for log_trace
+#include "main.h"              // for top_window
+#include "pango/pango-font.h"  // for pango_font_description_from_string
+#include "radio.h"             // for active_receiver, adc, receiver, displa...
+#include "receiver.h"          // for RECEIVER
+#include "transmitter.h"       // for TRANSMITTER
+#include "wdsp.h"              // for GetRXAAGCHangLevel, GetRXAAGCThresh
 
 static int width;
 static int height;
index c532bdb96834e63b5bb728e69de12b26326b6dd0..ca03299fc840b1be8f66142f674f76e68ccf3280 100644 (file)
--- a/sliders.h
+++ b/sliders.h
@@ -18,9 +18,9 @@
 #ifndef _SLIDERS_H
 #define _SLIDERS_H
 
-// include these since we are using RECEIVER and TRANSMITTER
-#include "receiver.h"
-#include "transmitter.h"
+#include <glib.h>         // for gint, gpointer
+#include <gtk/gtk.h>      // for GtkWidget
+#include "transmitter.h"  // for TRANSMITTER
 
 enum {
   NO_FUNCTION=0,
index 711bc2101f4d1930beaf85f783004c5750f0019b..3923e42fff748eb6413479181863594007521e4d 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
-#include "radio.h"
-#include "vfo.h"
-#include "ext.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, TRUE, g_idle_add, gboolean
+#include <glib/gtypes.h>       // for GPOINTER_TO_INT
+#include <gtk/gtk.h>           // for GtkWidget, gtk_grid_attach, GTK_GRID
+#include <stdio.h>             // for NULL
+#include "ext.h"               // for ext_vfo_update
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu
+#include "pango/pango-font.h"  // for pango_font_description_from_string
+#include "radio.h"             // for step
+#include "vfo.h"               // for step_labels, steps, STEPS
 
 static GtkWidget *parent_window=NULL;
 
index 45fff2264cfb7e4fd0b7bb1f602c3814fa477fed..97200493ee32b2e17028add1cece307de72ae081 100644 (file)
@@ -16,5 +16,6 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <gtk/gtk.h>
 
 extern void step_menu(GtkWidget *parent);
diff --git a/store.c b/store.c
index 49f653b643b778bbf7b68e8c5981740416268794..f4b6d56f64ce6d1119ed620ec64a46ff96ef6d1d 100644 (file)
--- a/store.c
+++ b/store.c
 *
 */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "bandstack.h"
-#include "band.h"
-#include "filter.h"
-#include "mode.h"
-#include "alex.h"
-#include "property.h"
 #include "store.h"
-#include "store_menu.h"
-#include "log.h"
+#include <stdio.h>       // for sprintf
+#include <stdlib.h>      // for atoi, atoll
+#include <string.h>      // for strcpy, strlen
+#include "filter.h"      // for filterF0
+#include "log.h"         // for log_trace
+#include "mode.h"        // for modeCWU
+#include "property.h"    // for getProperty, setProperty
+#include "store_menu.h"  // for NUM_OF_MEMORYS
 
 /*
 struct MEM {
index bc75ad6494816ad7d3e454e9fe5c1166f325427e..88f6ede2f7650f76f25b5c1f014b0957431e3ed7 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
 #include "store_menu.h"
-#include "band.h"
-#include "bandstack.h"
-#include "filter.h"
-#include "mode.h"
-#include "radio.h"
-#include "rigctl.h"
-#include "band.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "store.h"
-#include "ext.h"
-#include "log.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, gboolean, FALSE, TRUE, g_idl...
+#include <glib/gtypes.h>       // for GPOINTER_TO_INT
+#include <gtk/gtk.h>           // for GtkWidget, gtk_button_new_with_label
+#include <stdio.h>             // for sprintf, NULL
+#include <string.h>            // for strcpy
+#include "band.h"              // for get_band_from_frequency
+#include "ext.h"               // for ext_vfo_update
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "log.h"               // for log_debug, log_trace
+#include "new_menu.h"          // for sub_menu
+#include "radio.h"             // for active_receiver
+#include "receiver.h"          // for RECEIVER
+#include "store.h"             // for MEM, mem, memSaveState
+#include "vfo.h"               // for _vfo, vfo, vfo_filter_changed, vfo_mod...
 
 static GtkWidget *parent_window=NULL;
 
index 4f2d1d89b57ccca81abf40e3bcca22d33b29da3d..93d4bd74b85bf1e59e3ff66896276c8b7d181a8d 100644 (file)
@@ -16,5 +16,9 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+
 #define NUM_OF_MEMORYS 5
+
+#include <gtk/gtk.h>  // for GtkWidget
+
 extern void store_menu(GtkWidget *parent);
index 7b1e1ff941f40e1cb6b391f15ad97fcd884c9dd6..1d97208e1fc70ab3dc2de8f75019d0dd4e341b33 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <glib/gprintf.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "new_menu.h"
-#include "agc_menu.h"
-#include "agc.h"
-#include "band.h"
-#include "channel.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "toolbar.h"
-#include "actions.h"
-#include "action_dialog.h"
-#include "gpio.h"
-#include "i2c.h"
+#include <gdk/gdk.h>           // for GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gint, gpointer, TRUE, g_print, gboolean
+#include <glib/gprintf.h>      // for g_sprintf
+#include <glib/gtypes.h>       // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <gtk/gtk.h>           // for gtk_button_new_with_label, gtk_grid_at...
+#include <stdio.h>             // for NULL
+#include "action_dialog.h"     // for action_dialog
+#include "actions.h"           // for ACTION_TABLE, ActionTable, CONTROLLER_...
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "gpio.h"              // for SWITCH, switches_controller1, MAX_FUNC...
+#include "main.h"              // for controller, CONTROLLER1, NO_CONTROLLER
+#include "new_menu.h"          // for sub_menu, NO_MENU, active_menu
+#include "toolbar.h"           // for update_toolbar_labels
 
 static GtkWidget *parent_window=NULL;
 
index 9c01366a0335c75af0f5d5f3afd6d33ac376eaf3..201127bd0a128aa8c2fa2ceedb540ed5f7a6dcf6 100644 (file)
--- a/toolbar.c
+++ b/toolbar.c
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "actions.h"
-#include "gpio.h"
 #include "toolbar.h"
-#include "mode.h"
-#include "filter.h"
-#include "bandstack.h"
-#include "band.h"
-#include "discovered.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "vfo.h"
-#include "alex.h"
-#include "agc.h"
-#include "channel.h"
-#include "wdsp.h"
-#include "radio.h"
-#include "receiver.h"
-#include "transmitter.h"
-#include "property.h"
-#include "new_menu.h"
-#include "button_text.h"
-#include "ext.h"       
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
-#include "log.h"
+#include <gdk/gdk.h>           // for GdkRGBA
+#include <glib-object.h>       // for G_OBJECT, g_signal_connect
+#include <glib/gtypes.h>       // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <gtk/gtk.h>           // for GtkWidget, gtk_button_new_with_label
+#include <stdio.h>             // for NULL
+#include "actions.h"           // for ACTION_TABLE, ActionTable, PROCESS_ACTION
+#include "band.h"              // for canTransmit
+#include "ext.h"               // for ext_vfo_update
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "gpio.h"              // for SWITCH, switches_controller1
+#include "log.h"               // for log_trace
+#include "new_menu.h"          // for start_agc, start_band, start_bandstack
+#include "radio.h"             // for setTune, setMox, getMox, getTune, tran...
+#include "receiver.h"          // for set_offset, RECEIVER
+#include "transmitter.h"       // for transmitter_set_out_of_band
+#include "vfo.h"               // for _vfo, vfo
 
 int function=0;
 
index ea9063a5b696cfac184b78060f8c7388ec774c03..d0da67f00ef7b5b0466c13f0faaa675f84ec6f27 100644 (file)
--- a/toolbar.h
+++ b/toolbar.h
 #ifndef _TOOLBAR_H
 #define _TOOLBAR_H
 
-#include "gpio.h"
+#include <glib.h>     // for gpointer
+#include <gtk/gtk.h>  // for GtkWidget
+#include "gpio.h"     // for SWITCH
+
 #define MAX_FUNCTION 5
 
 extern int function;
index d0637e6cacc0f719611ff457170a3c3252b5d23b..acafba6975bfe2edb6f0723fd3969c1c671998a1 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <glib/gprintf.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "new_menu.h"
-#include "agc_menu.h"
-#include "agc.h"
-#include "band.h"
-#include "channel.h"
-#include "radio.h"
-#include "receiver.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "toolbar.h"
-#include "actions.h"
-#include "action_dialog.h"
-#include "gpio.h"
-#include "i2c.h"
+#include <gdk/gdk.h>           // for GdkEvent
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gint, gpointer, TRUE, FALSE, gboolean
+#include <glib/gprintf.h>      // for g_sprintf
+#include <glib/gtypes.h>       // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <gtk/gtk.h>           // for GtkWidget, gtk_button_new_with_label
+#include <stdio.h>             // for NULL
+#include "action_dialog.h"     // for action_dialog
+#include "actions.h"           // for ACTION_TABLE, ActionTable, CONTROLLER_...
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "gpio.h"              // for SWITCH, switches_controller1, MAX_FUNC...
+#include "main.h"              // for top_window
+#include "new_menu.h"          // for sub_menu, NO_MENU, active_menu
+#include "toolbar.h"           // for update_toolbar_labels
 
 static GtkWidget *dialog=NULL;
 static SWITCH *temp_switches;
index eb74d516d350ed3b062abc92da0a6cb8317d74ee..5dbdd923e06836bfbc3b4e67aded773e9adeff78 100644 (file)
  *
  */
 
-#include <gtk/gtk.h>
-#include <math.h>
-#include <stdbool.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <wdsp.h>
-
-#include "alex.h"
-#include "audio.h"
-#include "band.h"
-#include "bandstack.h"
-#include "channel.h"
-#include "ext.h"
-#include "filter.h"
-#include "log.h"
-#include "main.h"
-#include "meter.h"
-#include "mode.h"
-#include "new_protocol.h"
-#include "old_protocol.h"
-#include "property.h"
-#include "radio.h"
-#include "receiver.h"
-#include "toolbar.h"
 #include "transmitter.h"
-#include "tx_panadapter.h"
-#include "vfo.h"
-#include "vox.h"
-#include "waterfall.h"
+#include <gdk/gdk.h>           // for gdk_threads_add_timeout_full, GDK_KEY_...
+#include <glib-object.h>       // for g_signal_connect, g_object_ref
+#include <glib/gtypes.h>       // for GINT_TO_POINTER
+#include <gtk/gtk.h>           // for gtk_widget_set_size_request, GTK_WINDOW
+#include <math.h>              // for ceil, floor, sin, pow, sqrt
+#include <stdio.h>             // for sprintf, NULL
+#include <stdlib.h>            // for atoi, atof, atoll
+#include <string.h>            // for strcpy, strlen
+#include <wdsp.h>              // for SetTXAPostGenRun, SetTXAAMCarrierLevel
+#include "alex.h"              // for ALEX_TX_ANTENNA_1
+#include "audio.h"             // for cw_audio_write
+#include "discovered.h"        // for NEW_PROTOCOL, ORIGINAL_PROTOCOL, DEVIC...
+#include "ext.h"               // for ext_vfo_update, ext_mox_update
+#include "filter.h"            // for FILTER, filters
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "log.h"               // for log_trace, log_error, log_warn
+#include "main.h"              // for display_width, keypress_cb, display_he...
+#include "meter.h"             // for meter_update, POWER
+#include "mode.h"              // for modeCWL, modeCWU, modeDIGL, modeFMN
+#include "new_protocol.h"      // for new_protocol_iq_samples, new_protocol_...
+#include "old_protocol.h"      // for old_protocol_iq_samples, old_protocol_...
+#include "property.h"          // for getProperty, setProperty
+#include "radio.h"             // for transmitter, protocol, active_receiver
+#include "receiver.h"          // for RECEIVER
+#include "tx_panadapter.h"     // for tx_panadapter_init, tx_panadapter_update
+#include "vfo.h"               // for get_tx_mode, _vfo, vfo
+#include "vox.h"               // for update_vox
 
 double getNextSideToneSample();
 double getNextInternalSideToneSample();
index 2e9fc288d64129bce3b23b2b919159613356d587..cde0ae0350a3a5585badff089d5f07791e5d0577 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef _TRANSMITTER_H
 #define _TRANSMITTER_H
 
-#include <gtk/gtk.h>
+#include <glib.h>     // for gint, gboolean, gchar
+#include <gtk/gtk.h>  // for GtkWidget
+#include "cairo.h"    // for cairo_surface_t
 
 #define CTCSS_FREQUENCIES 38
 extern double ctcss_frequencies[CTCSS_FREQUENCIES];
index de2e19a2ec08c063a3a018a882eca83a594233cc..ab8d18321543482f66f935c2f4222a34cb989aab 100644 (file)
--- a/tx_menu.c
+++ b/tx_menu.c
 *
 */
 
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "audio.h"
-#include "new_menu.h"
-#include "radio.h"
-#include "sliders.h"
-#include "transmitter.h"
-#include "ext.h"
-#include "filter.h"
-#include "mode.h"
-#include "vfo.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for gpointer, g_malloc, g_idle_add, g_mall...
+#include <gtk/gtk.h>           // for gtk_grid_attach, gtk_widget_show, GtkW...
+#include <stdio.h>             // for NULL, sprintf
+#include <string.h>            // for strcpy, strlen, strcmp
+#include "audio.h"             // for AUDIO_DEVICE, input_devices, audio_clo...
+#include "discovered.h"        // for NEW_PROTOCOL, ORIGINAL_PROTOCOL, DEVIC...
+#include "ext.h"               // for ext_sliders_update, ext_vfo_update
+#include "filter.h"            // for FILTER, filters
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "mode.h"              // for modeFMN
+#include "new_menu.h"          // for sub_menu
+#include "radio.h"             // for transmitter, tx_filter_high, tx_filter...
+#include "receiver.h"          // for RECEIVER
+#include "transmitter.h"       // for TRANSMITTER, tx_set_filter, transmitte...
+#include "vfo.h"               // for _vfo, vfo
 
 static GtkWidget *parent_window=NULL;
 static GtkWidget *dialog=NULL;
index 7920fe3b73f9df2ced3b7dfe15935cd6fcd00758..82427f0d815c72b7d23824b019d2f9b04f2d8ffc 100644 (file)
--- a/tx_menu.h
+++ b/tx_menu.h
@@ -14,6 +14,7 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <gtk/gtk.h>  // for GtkWidget
 
 extern void tx_menu(GtkWidget *parent);
 extern void set_tune(double value);
index 58068c0638dba8cd0ab168ee2d0c33d72109257e..b62232cbe5307d6c9ea869a7d56afd8a26170483 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <math.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <semaphore.h>
-#include <stdbool.h>
-#include <wdsp.h>
-
-#include "agc.h"
-#include "band.h"
-#include "channel.h"
-#include "discovered.h"
-#include "radio.h"
-#include "receiver.h"
-#include "transmitter.h"
 #include "tx_panadapter.h"
-#include "vfo.h"
-#include "mode.h"
-#include "actions.h"
-#ifdef GPIO
-#include "gpio.h"
-#endif
-#include "ext.h"
-#include "new_menu.h"
-#include "log.h"
+#include <gdk/gdk.h>           // for GdkEventButton, GdkEventMotion, gdk_wi...
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for TRUE, gboolean, FALSE, gpointer, g_idl...
+#include <gtk/gtk.h>           // for gtk_widget_get_allocated_width, GtkWidget
+#include <math.h>              // for floor
+#include <stdio.h>             // for sprintf
+#include <stdlib.h>            // for abs, NULL
+#include "band.h"              // for BAND, band_get_band
+#include "cairo.h"             // for cairo_move_to, cairo_set_source_rgb
+#include "discovered.h"        // for DEVICE_HERMES_LITE2, ORIGINAL_PROTOCOL
+#include "ext.h"               // for ext_start_tx
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "log.h"               // for log_trace
+#include "mode.h"              // for modeCWL, modeCWU
+#include "radio.h"             // for transmitter, cw_keyer_sidetone_frequency
+#include "transmitter.h"       // for TRANSMITTER
+#include "vfo.h"               // for vfo_move, _vfo, vfo, get_tx_mode, get_...
 
 static gint last_x;
 static gboolean has_moved=FALSE;
index dfa8071ce05414bd3c6efcebe6d5a5195040bde2..3846b2c3b31026cee8a8390c06bb69f884dc12b6 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef _PANADAPTER_H
 #define _PANADAPTER_H
 
+#include "transmitter.h"  // for TRANSMITTER
+
 void tx_panadapter_update(TRANSMITTER *tx);
 
 void tx_panadapter_init(TRANSMITTER *tx,int width,int height);
diff --git a/vfo.c b/vfo.c
index 56262749da7563934eb6a6db739a17ee19ec6d80..31ef51e21123df6dbdc54b236a374db10a37f9a4 100644 (file)
--- a/vfo.c
+++ b/vfo.c
  *
  */
 
-#include <arpa/inet.h>
-#include <ifaddrs.h>
-#include <math.h>
-#include <net/if.h>
-#include <net/if_arp.h>
-#include <netdb.h>
-#include <netinet/in.h>
-#include <semaphore.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <stdbool.h>
-#include <gtk/gtk.h>
-
-#include "agc.h"
-#include "band.h"
-#include "bandstack.h"
-#include "channel.h"
-#include "discovered.h"
-#include "filter.h"
-#include "main.h"
-#include "mode.h"
-#include "new_menu.h"
-#include "new_protocol.h"
-#include "property.h"
-#include "radio.h"
-#include "receiver.h"
-#include "rigctl.h"
-#include "toolbar.h"
-#include "transmitter.h"
 #include "vfo.h"
-#include "wdsp.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
-#include "ext.h"
-#include "screen.h"
-#include "log.h"
+#include <gdk/gdk.h>           // for GdkEventButton, gdk_window_create_simi...
+#include <glib-object.h>       // for g_signal_connect
+#include <gtk/gtk.h>           // for GtkWidget, gtk_drawing_area_new, gtk_w...
+#include <stdio.h>             // for sprintf
+#include <stdlib.h>            // for atoi, malloc, NULL, atoll, free, size_t
+#include <string.h>            // for memset, strncpy, strlen
+#include <sys/types.h>         // for uint
+#include "band.h"              // for BAND, band_get_band, bandstack_get_ban...
+#include "bandstack.h"         // for BANDSTACK_ENTRY, BANDSTACK
+#include "cairo.h"             // for cairo_set_source_rgb, cairo_show_text
+#include "discovered.h"        // for NEW_PROTOCOL
+#include "ext.h"               // for ext_vfo_update, ext_update_noise
+#include "filter.h"            // for FILTER, filterF6, filters
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "log.h"               // for log_trace, log_debug
+#include "mode.h"              // for modeCWU, modeCWL, mode_string, MODES
+#include "new_menu.h"          // for start_vfo
+#include "new_protocol.h"      // for schedule_general, schedule_high_priority
+#include "property.h"          // for getProperty, setProperty
+#include "radio.h"             // for active_receiver, receiver, step, recei...
+#include "receiver.h"          // for RECEIVER, receiver_frequency_changed
+#include "screen.h"            // for widget_props_t, colour_t, default_widg...
+#include "transmitter.h"       // for tx_set_mode, TRANSMITTER
 
 static GtkWidget *parent_window;
 static int my_width;
diff --git a/vfo.h b/vfo.h
index 53246ff38779d4eaf6c16221863640d1ec2abd45..8c3f2d1745c6807174f2b2c8caf970a668610329 100644 (file)
--- a/vfo.h
+++ b/vfo.h
@@ -20,7 +20,9 @@
 #ifndef _VFO_H
 #define _VFO_H
 
-#include "mode.h"
+#include <glib.h>         // for gboolean
+#include <glib/gtypes.h>  // for gint64
+#include <gtk/gtk.h>      // for GtkWidget
 
 enum { VFO_A = 0, VFO_B, MAX_VFOS };
 
index 012307f19dc68a65213275deb7141d77400235c0..8d54876c73e7546478f0619a1cbde39e31b11b7c 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <ctype.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <wdsp.h>
-#include <stdbool.h>
-
-#include "new_menu.h"
-#include "band.h"
-#include "filter.h"
-#include "mode.h"
-#include "radio.h"
-#include "receiver.h"
-#include "transmitter.h"
-#include "vfo.h"
-#include "button_text.h"
-#include "ext.h"
+#include <ctype.h>             // for isdigit
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for g_idle_add, gpointer, g_malloc, gchar
+#include <gtk/gtk.h>           // for gtk_grid_attach, GtkWidget, gtk_label_...
+#include <stdio.h>             // for sprintf, NULL
+#include <stdlib.h>            // for atof
+#include <string.h>            // for strcmp, strcpy, strlen
+#include "button_text.h"       // for set_button_text_color
+#include "ext.h"               // for ext_vfo_update, ext_set_frequency
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "new_menu.h"          // for sub_menu, NO_MENU, active_menu
+#include "radio.h"             // for locked, rit_increment, active_receiver
+#include "receiver.h"          // for RECEIVER
+#include "vfo.h"               // for SET_FREQUENCY, steps, STEPS, step_labels
 
 static GtkWidget *parent_window=NULL;
 static gint v;
diff --git a/vox.c b/vox.c
index d2b40d259b3dda79ea3d17eb3b915d793843f126..cfacf294251f642af087a7f6dc85536661ddb0b6 100644 (file)
--- a/vox.c
+++ b/vox.c
 *
 */
 
-#include <gtk/gtk.h>
-#include <stdbool.h>
-
-#include "radio.h"
-#include "transmitter.h"
 #include "vox.h"
-#include "vfo.h"
-#include "ext.h"
+#include <glib.h>         // for g_idle_add, g_source_remove, g_timeout_add
+#include <glib/gtypes.h>  // for GINT_TO_POINTER
+#include <stddef.h>       // for NULL
+#include "ext.h"          // for ext_vfo_update, ext_vox_changed
+#include "radio.h"        // for vox_enabled, vox_hang, vox_threshold
+#include "transmitter.h"  // for TRANSMITTER
 
 static guint vox_timeout=0;
 
diff --git a/vox.h b/vox.h
index 34bd48e24c85a00ed01a955f5a4297b1c66879f1..a1d9c4c55d75c7820e07f66c18f2ee8dfcc1004f 100644 (file)
--- a/vox.h
+++ b/vox.h
@@ -17,6 +17,8 @@
 *
 */
 
+#include "transmitter.h"  // for TRANSMITTER
+
 extern void update_vox(TRANSMITTER *tx);
 extern void vox_cancel();
 extern double vox_get_peak();
index bd8fa30dfc65cfd3b85d92291fe188094226d706..87479cf1699100642361731881753bff3212860c 100644 (file)
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "led.h"
-#include "new_menu.h"
-#include "radio.h"
-#include "transmitter.h"
-#include "vfo.h"
 #include "vox_menu.h"
-#include "vox.h"
-#include "ext.h"
-#include "log.h"
+#include <glib-object.h>       // for g_signal_connect, G_OBJECT
+#include <glib/gtypes.h>       // for GINT_TO_POINTER
+#include <gtk/gtk.h>           // for gtk_grid_attach, GtkWidget, gtk_widget...
+#include <stdio.h>             // for NULL
+#include <unistd.h>            // for usleep
+#include "ext.h"               // for ext_vfo_update
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "led.h"               // for led_set_color, create_led
+#include "log.h"               // for log_debug
+#include "new_menu.h"          // for sub_menu
+#include "radio.h"             // for vox_enabled, vox_hang, vox_threshold
+#include "vox.h"               // for vox_get_peak
 
 static GtkWidget *parent_window=NULL;
 
index 8dfc38d24308225b42079f5a27716a48906600e7..44af7a5edc061270de19dd37708e444a1c87f196 100644 (file)
@@ -16,6 +16,9 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
+#include <gdk/gdk.h>  // for GdkEventButton
+#include <glib.h>     // for gboolean, gpointer
+#include <gtk/gtk.h>  // for GtkWidget
 
 void vox_menu(GtkWidget *parent);
 gboolean vox_cb (GtkWidget *widget, GdkEventButton *event, gpointer data);
index a117f4b53d53edb8d0ab0bcd77db78b37ded47e3..1f3aa847d539158f7dab8eb8c8c0bab49f2d1e4d 100644 (file)
  *
  */
 
-#include <gdk/gdk.h>
-#include <gtk/gtk.h>
-#include <math.h>
-#include <semaphore.h>
-#include <string.h>
-#include <unistd.h>
-#include <stdbool.h>
-
-#include "radio.h"
-#include "vfo.h"
 #include "waterfall.h"
+#include <gdk-pixbuf/gdk-pixbuf.h>  // for gdk_pixbuf_get_pixels, gdk_pixbuf...
+#include <gdk/gdk.h>                // for gdk_cairo_set_source_pixbuf, GdkE...
+#include <glib-object.h>            // for g_signal_connect
+#include <glib.h>                   // for gboolean, gpointer, FALSE, g_mute...
+#include <gtk/gtk.h>                // for GtkWidget, gtk_drawing_area_new
+#include <string.h>                 // for memset, memmove, size_t, NULL
+#include "adc.h"                    // for ADC
+#include "cairo.h"                  // for cairo_paint, cairo_t
+#include "gobject/gclosure.h"       // for G_CALLBACK
+#include "radio.h"                  // for adc, have_rx_gain, rx_gain_calibr...
+#include "vfo.h"                    // for _vfo, vfo
 
 #ifdef CLIENT_SERVER
 #include "client_server.h"
index 3d41f52bd9585c0eba9e19bfd4af5e1d50f3532e..b3e2ec03657457f12e0861cf1ca070389cec3789 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef _WATERFALL_H
 #define _WATERFALL_H
 
+#include "receiver.h"  // for RECEIVER
+
 extern void waterfall_update(RECEIVER *rx);
 extern void waterfall_init(RECEIVER *rx,int width,int height);
 
index 7bd28dc362f7975bd6f0a240f6920e8056ba73e5..bc3216d1cfecc8946df0f0f990e59e2a0f85062d 100644 (file)
  *
  */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "band.h"
-#include "filter.h"
-#include "mode.h"
-#include "new_menu.h"
-#include "radio.h"
-#include "vfo.h"
 #include "xvtr_menu.h"
+#include <gdk/gdk.h>           // for GdkRGBA, GdkEvent, GdkEventButton
+#include <glib-object.h>       // for g_signal_connect
+#include <glib.h>              // for FALSE, gpointer, TRUE, gboolean
+#include <glib/gtypes.h>       // for GINT_TO_POINTER, GPOINTER_TO_INT
+#include <gtk/gtk.h>           // for GtkWidget, gtk_grid_attach, gtk_entry_...
+#include <stdio.h>             // for NULL, sprintf
+#include <stdlib.h>            // for atof, atoll
+#include <string.h>            // for strcpy, strlen
+#include "band.h"              // for BAND, band_get_band, BANDS, XVTRS
+#include "bandstack.h"         // for BANDSTACK_ENTRY, BANDSTACK
+#include "filter.h"            // for filterF6
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "mode.h"              // for modeUSB
+#include "new_menu.h"          // for sub_menu
+#include "radio.h"             // for frequency_changed, active_receiver
+#include "receiver.h"          // for RECEIVER
+#include "vfo.h"               // for _vfo, vfo, vfo_xvtr_changed
 
 static GtkWidget *parent_window = NULL;
 static GtkWidget *dialog = NULL;
index 8beb3cc2d7212bafc061b9df7d2e2aa4048a4eb3..e45970d45f1252b854ede34c28c1e5022158833d 100644 (file)
@@ -16,5 +16,6 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  *
  */
+#include <gtk/gtk.h>  // for GtkWidget
 
 void xvtr_menu(GtkWidget *parent);
index 106f26de9fe7a5a301a2e0429f1deb85ec970109..f2ef92c089af098743791dfa3130d0c98519a76a 100644 (file)
--- a/zoompan.c
+++ b/zoompan.c
 *
 */
 
-#include <gtk/gtk.h>
-#include <semaphore.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>
-#include <stdbool.h>
-
-#include "main.h"
-#include "receiver.h"
-#include "radio.h"
-#include "vfo.h"
-#include "sliders.h"
 #include "zoompan.h"
-#ifdef CLIENT_SERVER
-#include "client_server.h"
-#endif
-#include "actions.h"
-#include "log.h"
+#include <gdk/gdk.h>           // for GdkRGBA
+#include <glib-object.h>       // for g_signal_handler_block, g_signal_handl...
+#include <glib.h>              // for g_print, g_mutex_lock, g_mutex_unlock
+#include <gtk/gtk.h>           // for gtk_range_set_value, GTK_RANGE, gtk_wi...
+#include <stdio.h>             // for NULL, sprintf
+#include "actions.h"           // for PAN, ZOOM
+#include "gobject/gclosure.h"  // for G_CALLBACK
+#include "log.h"               // for log_trace
+#include "main.h"              // for top_window
+#include "pango/pango-font.h"  // for pango_font_description_from_string
+#include "radio.h"             // for active_receiver, receiver, display_zoo...
+#include "receiver.h"          // for RECEIVER, receiver_change_pan, receive...
+#include "sliders.h"           // for scale_status, scale_dialog, scale_time...
+#include "vfo.h"               // for vfo_update
 
 static int width;
 static int height;
index c4f36df35df0d151686b656bf5facb751f393aa3..bb50eca68e75c776814b1c58ebfeb195cd23226d 100644 (file)
--- a/zoompan.h
+++ b/zoompan.h
@@ -18,6 +18,8 @@
 #ifndef _ZOOMPAN_H
 #define _ZOOMPAN_H
 
+#include <gtk/gtk.h>  // for GtkWidget
+
 #define MAX_ZOOM 8
 
 extern GtkWidget *zoompan_init(int my_width, int my_height);