Browse Source

TT#59703 add build test for dtmf_rx_fillin()

closes #787

Change-Id: I26ec7ebef74dad03192019b788e7c7ae17715783
changes/27/30427/6
Richard Fuchs 7 years ago
parent
commit
f960799cdd
9 changed files with 37 additions and 1 deletions
  1. +1
    -0
      daemon/.gitignore
  2. +4
    -0
      daemon/Makefile
  3. +1
    -0
      daemon/codec.c
  4. +1
    -1
      lib/common.Makefile
  5. +7
    -0
      lib/dtmf_rx_fillin-01.h
  6. +12
    -0
      lib/dtmf_rx_fillin-02.h
  7. +6
    -0
      lib/dtmf_rx_fillin-test.c
  8. +1
    -0
      t/.gitignore
  9. +4
    -0
      t/Makefile

+ 1
- 0
daemon/.gitignore View File

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

+ 4
- 0
daemon/Makefile View File

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

+ 1
- 0
daemon/codec.c View File

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


+ 1
- 1
lib/common.Makefile View File

@ -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.*


+ 7
- 0
lib/dtmf_rx_fillin-01.h View File

@ -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>

+ 12
- 0
lib/dtmf_rx_fillin-02.h View File

@ -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
}

+ 6
- 0
lib/dtmf_rx_fillin-test.c View File

@ -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
- 0
t/.gitignore View File

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

+ 4
- 0
t/Makefile View File

@ -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