diff --git a/.gitignore b/.gitignore index cd17050f6..050e5cfbe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .*.sw? *.strhash.c docs/_* +bencode.c diff --git a/daemon/Makefile b/daemon/Makefile index 6cd7711ad..731775897 100644 --- a/daemon/Makefile +++ b/daemon/Makefile @@ -88,7 +88,7 @@ endif include ../lib/mqtt.Makefile SRCS= main.c kernel.c helpers.c control_tcp.c call.c control_udp.c redis.c \ - bencode.c cookie_cache.c udp_listener.c control_ng_flags_parser.c control_ng.strhash.c sdp.strhash.c stun.c rtcp.c \ + cookie_cache.c udp_listener.c control_ng_flags_parser.c control_ng.strhash.c sdp.strhash.c stun.c rtcp.c \ crypto.c rtp.c call_interfaces.strhash.c dtls.c log.c cli.c graphite.c ice.c \ media_socket.c homer.c recording.c statistics.c cdr.c ssrc.c iptables.c tcp_listener.c \ codec.c load.c dtmf.c timerthread.c media_player.c jitter_buffer.c t38.c websocket.c \ @@ -97,7 +97,7 @@ ifneq ($(without_nftables),yes) SRCS+= nftables.c endif LIBSRCS= loglib.c auxlib.c rtplib.c str.c socket.c streambuf.c ssllib.c dtmflib.c mix_buffer.c poller.c \ - bufferpool.c + bufferpool.c bencode.c ifeq ($(with_transcoding),yes) LIBSRCS+= codeclib.strhash.c resample.c LIBASM= mvr2s_x64_avx2.S mvr2s_x64_avx512.S mix_in_x64_avx2.S mix_in_x64_avx512bw.S mix_in_x64_sse2.S diff --git a/daemon/bencode.c b/lib/bencode.c similarity index 100% rename from daemon/bencode.c rename to lib/bencode.c diff --git a/include/bencode.h b/lib/bencode.h similarity index 100% rename from include/bencode.h rename to lib/bencode.h