Add nodisplay.c stubs to permit compiling without USE_X11

This commit is contained in:
Geoffrey Thomas 2014-07-20 19:43:51 -07:00
parent d2bf855fd6
commit 37829b6d75
2 changed files with 51 additions and 0 deletions

View File

@ -15,6 +15,8 @@ PROG= lm
ifdef USE_X11
OBJS += display.o
LDFLAGS += -L/usr/X11R6/lib -lX11
else
OBJS += nodisplay.o
endif
all: $(PROG)

49
nodisplay.c Normal file
View File

@ -0,0 +1,49 @@
/*
* Stubs for X11 interface for linmodem
*
* Copyright (c) 2000 Fabrice Bellard, 2014 Geoffrey Thomas
*
* This code is released under the GNU General Public License version
* 2. Please read the file COPYING to know the exact terms of the
* license.
*/
#include "lm.h"
int lm_display_init(void)
{
return 0;
}
void lm_display_close(void)
{
}
void lm_dump_qam(float si, float sq)
{
}
void draw_samples(int channel)
{
}
void lm_dump_sample(int channel, float val)
{
}
void lm_dump_equalizer(s32 eq_filter1[][2], int norm, int size)
{
}
void lm_dump_agc(float gain)
{
}
void lm_dump_linesim_power(float tx_db, float rx_db, float noise_db)
{
}
int lm_display_poll_event(void)
{
return 0;
}