$(PTT_OPTIONS) \
$(SERVER_OPTIONS) \
$(AUDIO_OPTIONS) \
- -D GIT_DATE='"$(GIT_DATE)"' -D GIT_VERSION='"$(GIT_VERSION)"' $(DEBUG_OPTION)
+ $(DEBUG_OPTION)
ifeq ($(UNAME_S), Linux)
diversity_menu.c \
tx_menu.c \
vfo_menu.c \
-test_menu.c \
meter.c \
mode.c \
old_discovery.c \
transmitter.c \
zoompan.c \
sliders.c \
-version.c \
vfo.c \
waterfall.c \
button_text.c \
vox.c \
-update.c \
store.c \
store_menu.c \
memory.c \
diversity_menu.h \
tx_menu.h \
vfo_menu.h \
-test_menu.h \
meter.h \
mode.h \
old_discovery.h \
transmitter.h \
zoompan.h \
sliders.h \
-version.h \
vfo.h \
waterfall.h \
button_text.h \
vox.h \
-update.h \
store.h \
store_menu.h \
memory.h \
discovered.o \
discovery.o \
filter.o \
-version.o \
main.o \
new_menu.o \
about_menu.o \
diversity_menu.o \
tx_menu.o \
vfo_menu.o \
-test_menu.o \
meter.o \
mode.o \
old_discovery.o \
waterfall.o \
button_text.o \
vox.o \
-update.o \
store.o \
store_menu.o \
memory.o \
$(MIDI_OBJS) $(SERVER_OBJS) $(LIBS)
.PHONY: all
-all: prebuild $(PROGRAM) $(HEADERS) $(AUDIO_HEADERS) $(USBOZY_HEADERS) \
+all: $(PROGRAM) $(HEADERS) $(AUDIO_HEADERS) $(USBOZY_HEADERS) \
$(LOCALCW_HEADERS) \
$(PURESIGNAL_HEADERS) $(MIDI_HEADERS) $(SERVER_HEADERS) \
$(AUDIO_SOURCES) $(SOURCES) \
$(USBOZY_SOURCES) $(LOCALCW_SOURCE) \
$(PURESIGNAL_SOURCES) $(MIDI_SOURCES) $(SERVER_SOURCES)
-.PHONY: prebuild
-prebuild:
- rm -f version.o
-#
# On some platforms, INCLUDES contains "-pthread" (from a pkg-config output)
# which is not a valid cppcheck option
# Therefore, correct this here. Furthermore, we can add additional options to CPP
#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 "version.h"
static GtkWidget *parent_window=NULL;
static GtkWidget *dialog=NULL;
GtkWidget *grid=gtk_grid_new();
gtk_grid_set_column_homogeneous(GTK_GRID(grid),TRUE);
- //gtk_grid_set_row_homogeneous(GTK_GRID(grid),TRUE);
gtk_grid_set_column_spacing (GTK_GRID(grid),4);
- //gtk_grid_set_row_spacing (GTK_GRID(grid),4);
int row=0;
strcat(text,"\n Ken Hopper, N9VV: Testing and Documentation");
strcat(text,"\n Christoph van Wüllen, DL1YCF: CW, Pure Signal, Diversity, MIDI ");
- sprintf(line,"\n\nBuild date: %s", build_date);
- strcat(text,line);
-
- sprintf(line,"\nBuild version: %s", build_version);
- strcat(text,line);
-
sprintf(line,"\nWDSP version: %d.%02d", GetWDSPVersion()/100, GetWDSPVersion()%100);
strcat(text,line);
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
+#include <stdbool.h>
#include "actions.h"
#include "audio.h"
gint display_height;
gint full_screen = 1;
-static GtkWidget *discovery_dialog;
-
static GdkCursor *cursor_arrow;
static GdkCursor *cursor_watch;
-static GtkWidget *splash;
-
GtkWidget *top_window;
GtkWidget *grid;
-static DISCOVERED *d;
-
static GtkWidget *status;
void status_text(char *text) {
gtk_main_iteration();
}
-static gint save_cb(gpointer data) {
- radioSaveState();
- return TRUE;
-}
-
static pthread_t wisdom_thread_id;
static int wisdom_running = 0;
// code to switch mox copied from mox_cb() in toolbar.c,
// but added the correct return values.
//
-gboolean keypress_cb(GtkWidget *widget, GdkEventKey *event, gpointer data) {
+bool keypress_cb(GtkWidget *widget, GdkEventKey *event, gpointer data) {
if (radio != NULL) {
if (event->keyval == GDK_KEY_space) {
// sem_trywait() is not elegant, replaced this with wisdom_running variable.
//
char *c = getcwd(wisdom_directory, sizeof(wisdom_directory));
+ if (c == NULL) {
+ perror("getcwd");
+ }
strcpy(&wisdom_directory[strlen(wisdom_directory)], "/");
fprintf(stderr, "Securing wisdom file in directory: %s\n", wisdom_directory);
status_text("Checking FFTW Wisdom file ...");
// gtk_init (&argc, &argv);
- fprintf(stderr, "Build: %s %s\n", build_date, version);
-
fprintf(stderr, "GTK+ version %ud.%ud.%ud\n", gtk_major_version,
gtk_minor_version, gtk_micro_version);
uname(&unameData);
fprintf(stderr, "add image to grid\n");
gtk_grid_attach(GTK_GRID(grid), image, 0, 0, 1, 4);
- fprintf(stderr, "create pi label\n");
- char build[128];
- sprintf(build, "build: %s %s", build_date, version);
- GtkWidget *pi_label = gtk_label_new("Verdure RF Technologies");
- gtk_label_set_justify(GTK_LABEL(pi_label), GTK_JUSTIFY_LEFT);
- gtk_widget_show(pi_label);
- fprintf(stderr, "add pi label to grid\n");
- gtk_grid_attach(GTK_GRID(grid), pi_label, 1, 0, 1, 1);
-
- fprintf(stderr, "create build label\n");
- GtkWidget *build_date_label = gtk_label_new(build);
- gtk_label_set_justify(GTK_LABEL(build_date_label), GTK_JUSTIFY_LEFT);
- gtk_widget_show(build_date_label);
- fprintf(stderr, "add build label to grid\n");
- gtk_grid_attach(GTK_GRID(grid), build_date_label, 1, 1, 1, 1);
-
fprintf(stderr, "create status\n");
status = gtk_label_new("");
gtk_label_set_justify(GTK_LABEL(status), GTK_JUSTIFY_LEFT);