TT#59703 add build test for dtmf_rx_fillin()

closes #787

Change-Id: I26ec7ebef74dad03192019b788e7c7ae17715783
changes/27/30427/6
Richard Fuchs 6 years ago
parent 7803930d21
commit f960799cdd

1
daemon/.gitignore vendored

@ -17,3 +17,4 @@ streambuf.c
ssllib.c
dtmflib.c
*-test
dtmf_rx_fillin.h

@ -139,4 +139,8 @@ MANS= $(PODS:.pod=.8)
include ../lib/common.Makefile
ifeq ($(with_transcoding),yes)
.depend: dtmf_rx_fillin.h
endif
include .depend

@ -17,6 +17,7 @@
#include "dtmf.h"
#include "resample.h"
#include "dtmflib.h"
#include "dtmf_rx_fillin.h"

@ -11,7 +11,7 @@ debug:
dep: .depend
BUILD_TEST_ALTS = fix_frame_channel_layout.h
BUILD_TEST_ALTS = fix_frame_channel_layout.h dtmf_rx_fillin.h
clean:
rm -f $(OBJS) $(TARGET) $(LIBSRCS) $(DAEMONSRCS) $(MANS) $(ADD_CLEAN) .depend core core.*

@ -0,0 +1,7 @@
#include <sys/types.h>
#include <inttypes.h>
#include <stdio.h>
#include <spandsp/telephony.h>
#include <spandsp/super_tone_rx.h>
#include <spandsp/logging.h>
#include <spandsp/dtmf.h>

@ -0,0 +1,12 @@
#include <sys/types.h>
#include <inttypes.h>
#include <stdio.h>
#include <spandsp/telephony.h>
#include <spandsp/super_tone_rx.h>
#include <spandsp/logging.h>
#include <spandsp/dtmf.h>
#include "compat.h"
INLINE void dtmf_rx_fillin(dtmf_rx_state_t *dsp, int n) {
// stub
}

@ -0,0 +1,6 @@
#include "dtmf_rx_fillin.h"
int main(void) {
dtmf_rx_state_t *dsp = NULL;
dtmf_rx_fillin(dsp, 0);
return 0;
}

1
t/.gitignore vendored

@ -51,3 +51,4 @@ media_player.c
dtmflib.c
test-dtmf-detect
*-test
dtmf_rx_fillin.h

@ -133,3 +133,7 @@ const_str_hash-test.strhash: const_str_hash-test.strhash.o $(COMMONOBJS)
tests-preload.so: tests-preload.c
$(CC) -g -D_GNU_SOURCE -std=c99 -o $@ -Wall -shared -fPIC $<
ifeq ($(with_transcoding),yes)
.depend: dtmf_rx_fillin.h
endif

Loading…
Cancel
Save