diff --git a/daemon/Makefile b/daemon/Makefile index c170923e4..d3edef69a 100644 --- a/daemon/Makefile +++ b/daemon/Makefile @@ -78,7 +78,7 @@ endif include ../lib/mqtt.Makefile -SRCS= main.c kernel.c poller.c aux.c control_tcp.c call.c control_udp.c redis.c \ +SRCS= main.c kernel.c poller.c helpers.c control_tcp.c call.c control_udp.c redis.c \ bencode.c cookie_cache.c udp_listener.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 \ diff --git a/daemon/bencode.c b/daemon/bencode.c index bc678b03a..a1f0c8618 100644 --- a/daemon/bencode.c +++ b/daemon/bencode.c @@ -7,7 +7,7 @@ #include #include #include -#include "aux.h" +#include "helpers.h" /* set to 0 for alloc debugging, e.g. through valgrind */ #define BENCODE_MIN_BUFFER_PIECE_LEN 512 diff --git a/daemon/call.c b/daemon/call.c index 9449fb2d2..076d995fb 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -19,7 +19,7 @@ #include #include "poller.h" -#include "aux.h" +#include "helpers.h" #include "log.h" #include "kernel.h" #include "control_tcp.h" diff --git a/daemon/call_interfaces.c b/daemon/call_interfaces.c index 9dd0c4383..901d542fc 100644 --- a/daemon/call_interfaces.c +++ b/daemon/call_interfaces.c @@ -9,7 +9,7 @@ #include "call_interfaces.h" #include "call.h" -#include "aux.h" +#include "helpers.h" #include "log.h" #include "redis.h" #include "sdp.h" diff --git a/daemon/cli.c b/daemon/cli.c index b2b3f2cd9..f25e5a625 100644 --- a/daemon/cli.c +++ b/daemon/cli.c @@ -11,7 +11,7 @@ #include #include "poller.h" -#include "aux.h" +#include "helpers.h" #include "log.h" #include "log_funcs.h" #include "call.h" diff --git a/daemon/control_tcp.c b/daemon/control_tcp.c index 9c50bb46e..892fa017c 100644 --- a/daemon/control_tcp.c +++ b/daemon/control_tcp.c @@ -11,7 +11,7 @@ #include #include "poller.h" -#include "aux.h" +#include "helpers.h" #include "streambuf.h" #include "log.h" #include "call.h" diff --git a/daemon/control_udp.c b/daemon/control_udp.c index a48fb7fc6..3603eb61d 100644 --- a/daemon/control_udp.c +++ b/daemon/control_udp.c @@ -12,7 +12,7 @@ #include #include "poller.h" -#include "aux.h" +#include "helpers.h" #include "log.h" #include "call.h" #include "udp_listener.h" diff --git a/daemon/cookie_cache.c b/daemon/cookie_cache.c index 4fdbb26e3..aab676579 100644 --- a/daemon/cookie_cache.c +++ b/daemon/cookie_cache.c @@ -4,7 +4,7 @@ #include #include "compat.h" -#include "aux.h" +#include "helpers.h" #include "poller.h" #include "str.h" diff --git a/daemon/crypto.c b/daemon/crypto.c index 06a5b559e..060fc44dc 100644 --- a/daemon/crypto.c +++ b/daemon/crypto.c @@ -8,7 +8,7 @@ #include "xt_RTPENGINE.h" #include "str.h" -#include "aux.h" +#include "helpers.h" #include "rtp.h" #include "rtcp.h" #include "log.h" diff --git a/daemon/dtls.c b/daemon/dtls.c index 5ffb0bcee..a40dfd5ad 100644 --- a/daemon/dtls.c +++ b/daemon/dtls.c @@ -13,7 +13,7 @@ #include #include "str.h" -#include "aux.h" +#include "helpers.h" #include "crypto.h" #include "log.h" #include "call.h" diff --git a/daemon/aux.c b/daemon/helpers.c similarity index 99% rename from daemon/aux.c rename to daemon/helpers.c index 6e6aa65fc..119c3bf43 100644 --- a/daemon/aux.c +++ b/daemon/helpers.c @@ -1,4 +1,4 @@ -#include "aux.h" +#include "helpers.h" #include #include #include diff --git a/daemon/homer.c b/daemon/homer.c index 2b5322710..8ea17ff7f 100644 --- a/daemon/homer.c +++ b/daemon/homer.c @@ -10,7 +10,7 @@ #include #include "log.h" -#include "aux.h" +#include "helpers.h" #include "str.h" diff --git a/daemon/ice.c b/daemon/ice.c index 0368a8bb7..85770c312 100644 --- a/daemon/ice.c +++ b/daemon/ice.c @@ -4,7 +4,7 @@ #include #include "str.h" #include "call.h" -#include "aux.h" +#include "helpers.h" #include "log.h" #include "obj.h" #include "stun.h" diff --git a/daemon/iptables.c b/daemon/iptables.c index 4e99a0d9c..6e5f45563 100644 --- a/daemon/iptables.c +++ b/daemon/iptables.c @@ -20,7 +20,7 @@ int (*iptables_del_rule)(const socket_t *local_sock); #include #include #include -#include "aux.h" +#include "helpers.h" #include "log.h" #include "socket.h" diff --git a/daemon/kernel.c b/daemon/kernel.c index 7dac5ecc9..191d21e52 100644 --- a/daemon/kernel.c +++ b/daemon/kernel.c @@ -11,7 +11,7 @@ #include "xt_RTPENGINE.h" -#include "aux.h" +#include "helpers.h" #include "log.h" diff --git a/daemon/load.c b/daemon/load.c index 61056f136..95b7d698e 100644 --- a/daemon/load.c +++ b/daemon/load.c @@ -5,7 +5,7 @@ #include #include #include -#include "aux.h" +#include "helpers.h" #include "log.h" #include "main.h" diff --git a/daemon/log_funcs.h b/daemon/log_funcs.h index 5155e056d..7c647316a 100644 --- a/daemon/log_funcs.h +++ b/daemon/log_funcs.h @@ -1,7 +1,7 @@ #ifndef __LOG_FUNCS_H__ #define __LOG_FUNCS_H__ -#include "aux.h" +#include "helpers.h" #include "obj.h" #include "call.h" #include "media_socket.h" diff --git a/daemon/main.c b/daemon/main.c index 42395f005..c1bf12576 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -25,7 +25,7 @@ #include "control_tcp.h" #include "control_udp.h" #include "control_ng.h" -#include "aux.h" +#include "helpers.h" #include "log.h" #include "call.h" #include "kernel.h" diff --git a/daemon/media_socket.c b/daemon/media_socket.c index b60342dd4..01bf47b1e 100644 --- a/daemon/media_socket.c +++ b/daemon/media_socket.c @@ -15,7 +15,7 @@ #include "xt_RTPENGINE.h" #include "rtcp.h" #include "sdp.h" -#include "aux.h" +#include "helpers.h" #include "log_funcs.h" #include "poller.h" #include "recording.h" diff --git a/daemon/poller.c b/daemon/poller.c index 8a397dfe6..de1365e1a 100644 --- a/daemon/poller.c +++ b/daemon/poller.c @@ -17,7 +17,7 @@ #include -#include "aux.h" +#include "helpers.h" #include "obj.h" #include "log_funcs.h" diff --git a/daemon/redis.c b/daemon/redis.c index 8c76f1ea5..3b620d658 100644 --- a/daemon/redis.c +++ b/daemon/redis.c @@ -20,7 +20,7 @@ #include #include "compat.h" -#include "aux.h" +#include "helpers.h" #include "call.h" #include "log.h" #include "log_funcs.h" diff --git a/daemon/ssrc.c b/daemon/ssrc.c index 07d177c67..883bc2eed 100644 --- a/daemon/ssrc.c +++ b/daemon/ssrc.c @@ -1,6 +1,6 @@ #include "ssrc.h" #include -#include "aux.h" +#include "helpers.h" #include "call.h" #include "rtplib.h" #include "codeclib.h" diff --git a/daemon/stun.c b/daemon/stun.c index 89a2c6f0e..0bd370be5 100644 --- a/daemon/stun.c +++ b/daemon/stun.c @@ -10,7 +10,7 @@ #include "compat.h" #include "str.h" -#include "aux.h" +#include "helpers.h" #include "log.h" #include "ice.h" #include "ssllib.h" diff --git a/daemon/tcp_listener.c b/daemon/tcp_listener.c index 1bdccd8dc..49c0b9a85 100644 --- a/daemon/tcp_listener.c +++ b/daemon/tcp_listener.c @@ -5,7 +5,7 @@ #include "poller.h" #include "obj.h" #include "socket.h" -#include "aux.h" +#include "helpers.h" #include "log.h" #include "streambuf.h" #include "media_socket.h" diff --git a/daemon/timerthread.c b/daemon/timerthread.c index 28d837383..5650a7cf2 100644 --- a/daemon/timerthread.c +++ b/daemon/timerthread.c @@ -1,5 +1,5 @@ #include "timerthread.h" -#include "aux.h" +#include "helpers.h" #include "log_funcs.h" diff --git a/daemon/udp_listener.c b/daemon/udp_listener.c index b54f5e993..149fdba74 100644 --- a/daemon/udp_listener.c +++ b/daemon/udp_listener.c @@ -8,7 +8,7 @@ #include #include "poller.h" -#include "aux.h" +#include "helpers.h" #include "str.h" #include "log.h" #include "obj.h" diff --git a/include/cdr.h b/include/cdr.h index 2ea19b54f..deb6bc909 100644 --- a/include/cdr.h +++ b/include/cdr.h @@ -8,7 +8,7 @@ #ifndef CDR_H_ #define CDR_H_ -#include "aux.h" +#include "helpers.h" struct call; enum tag_type; diff --git a/include/codec.h b/include/codec.h index a11be1d3a..4a9a28431 100644 --- a/include/codec.h +++ b/include/codec.h @@ -7,7 +7,7 @@ #include #include "str.h" #include "codeclib.h" -#include "aux.h" +#include "helpers.h" #include "rtplib.h" #include "timerthread.h" #include "xt_RTPENGINE.h" diff --git a/include/control_tcp.h b/include/control_tcp.h index 0b5c36268..6d9f60c6f 100644 --- a/include/control_tcp.h +++ b/include/control_tcp.h @@ -10,7 +10,7 @@ #include #include "obj.h" -#include "aux.h" +#include "helpers.h" #include "socket.h" diff --git a/include/control_udp.h b/include/control_udp.h index c5a2170c3..70d4182b7 100644 --- a/include/control_udp.h +++ b/include/control_udp.h @@ -10,7 +10,7 @@ #include #include #include "obj.h" -#include "aux.h" +#include "helpers.h" #include "cookie_cache.h" #include "udp_listener.h" #include "socket.h" diff --git a/include/cookie_cache.h b/include/cookie_cache.h index ff5a8654f..83cb5d3e5 100644 --- a/include/cookie_cache.h +++ b/include/cookie_cache.h @@ -3,7 +3,7 @@ #include #include -#include "aux.h" +#include "helpers.h" #include "str.h" struct cookie_cache_state { diff --git a/include/crypto.h b/include/crypto.h index 26a5be1b8..574b83bc6 100644 --- a/include/crypto.h +++ b/include/crypto.h @@ -7,7 +7,7 @@ #include #include "compat.h" #include "str.h" -#include "aux.h" +#include "helpers.h" #define SRTP_MAX_MASTER_KEY_LEN 32 #define SRTP_MAX_MASTER_SALT_LEN 14 diff --git a/include/aux.h b/include/helpers.h similarity index 99% rename from include/aux.h rename to include/helpers.h index 31660448c..add4a246f 100644 --- a/include/aux.h +++ b/include/helpers.h @@ -1,5 +1,5 @@ -#ifndef __AUX_H__ -#define __AUX_H__ +#ifndef __HELPERS_H__ +#define __HELPERS_H__ diff --git a/include/ice.h b/include/ice.h index 7a9fcf58e..d73f7ad32 100644 --- a/include/ice.h +++ b/include/ice.h @@ -10,7 +10,7 @@ #include #include "str.h" #include "obj.h" -#include "aux.h" +#include "helpers.h" #include "media_socket.h" #include "socket.h" #include "timerthread.h" diff --git a/include/main.h b/include/main.h index b38421f9e..cec7d24a2 100644 --- a/include/main.h +++ b/include/main.h @@ -2,7 +2,7 @@ #define _MAIN_H_ -#include "aux.h" +#include "helpers.h" #include #include "socket.h" #include "auxlib.h" diff --git a/include/media_socket.h b/include/media_socket.h index 574ca49ad..3c77b804e 100644 --- a/include/media_socket.h +++ b/include/media_socket.h @@ -7,7 +7,7 @@ #include #include "str.h" #include "obj.h" -#include "aux.h" +#include "helpers.h" #include "dtls.h" #include "crypto.h" #include "socket.h" diff --git a/include/recording.h b/include/recording.h index fc1f9ac36..aadbb1055 100644 --- a/include/recording.h +++ b/include/recording.h @@ -13,7 +13,7 @@ #include #include #include "str.h" -#include "aux.h" +#include "helpers.h" #include "bencode.h" diff --git a/include/redis.h b/include/redis.h index 8a1a210fe..e28b0f463 100644 --- a/include/redis.h +++ b/include/redis.h @@ -7,7 +7,7 @@ #include #include "compat.h" #include "socket.h" -#include "aux.h" +#include "helpers.h" #include #include diff --git a/include/ssrc.h b/include/ssrc.h index fc361b961..22d37251c 100644 --- a/include/ssrc.h +++ b/include/ssrc.h @@ -5,7 +5,7 @@ #include #include #include "compat.h" -#include "aux.h" +#include "helpers.h" #include "obj.h" #include "codeclib.h" diff --git a/include/statistics.h b/include/statistics.h index 23c301589..5c5624ddc 100644 --- a/include/statistics.h +++ b/include/statistics.h @@ -1,7 +1,7 @@ #ifndef STATISTICS_H_ #define STATISTICS_H_ -#include "aux.h" +#include "helpers.h" #include "bencode.h" #include "rtpengine_config.h" diff --git a/include/t38.h b/include/t38.h index 3eb9a0625..23008d857 100644 --- a/include/t38.h +++ b/include/t38.h @@ -40,7 +40,7 @@ struct t38_options { #include #include "rtplib.h" -#include "aux.h" +#include "helpers.h" #include "obj.h" #include "codeclib.h" diff --git a/include/tcp_listener.h b/include/tcp_listener.h index 664592039..d9fde23b4 100644 --- a/include/tcp_listener.h +++ b/include/tcp_listener.h @@ -3,7 +3,7 @@ #include "socket.h" #include "obj.h" -#include "aux.h" +#include "helpers.h" struct poller; diff --git a/lib/mix_buffer.h b/lib/mix_buffer.h index 9328d5732..f4d8ac009 100644 --- a/lib/mix_buffer.h +++ b/lib/mix_buffer.h @@ -3,7 +3,7 @@ #include #include -#include "aux.h" +#include "helpers.h" enum AVSampleFormat; diff --git a/t/.gitignore b/t/.gitignore index c7283ca96..90c824923 100644 --- a/t/.gitignore +++ b/t/.gitignore @@ -13,7 +13,6 @@ rtplib.c str.c crypto.c aes-crypt -aux.c bencode.c call.c call_interfaces.c @@ -23,6 +22,7 @@ control_ng.c cookie_cache.c dtls.c graphite.c +helpers.c homer.c ice.c iptables.c diff --git a/t/Makefile b/t/Makefile index 42e4018b6..47deaff85 100644 --- a/t/Makefile +++ b/t/Makefile @@ -65,7 +65,7 @@ endif SRCS= test-bitstr.c aes-crypt.c aead-aes-crypt.c test-const_str_hash.strhash.c LIBSRCS= loglib.c auxlib.c str.c rtplib.c ssllib.c mix_buffer.c -DAEMONSRCS= crypto.c ssrc.c aux.c rtp.c +DAEMONSRCS= crypto.c ssrc.c helpers.c rtp.c HASHSRCS= ifeq ($(with_transcoding),yes) @@ -258,7 +258,7 @@ daemon-tests-audio-player-play-media: daemon-test-deps test-bitstr: test-bitstr.o -test-mix-buffer: test-mix-buffer.o $(COMMONOBJS) mix_buffer.o ssrc.o rtp.o crypto.o aux.o +test-mix-buffer: test-mix-buffer.o $(COMMONOBJS) mix_buffer.o ssrc.o rtp.o crypto.o helpers.o spandsp_send_fax_pcm: spandsp_send_fax_pcm.o @@ -280,7 +280,7 @@ aes-crypt: aes-crypt.o $(COMMONOBJS) crypto.o aead-aes-crypt: aead-aes-crypt.o $(COMMONOBJS) crypto.o -test-stats: test-stats.o $(COMMONOBJS) codeclib.strhash.o resample.o codec.o ssrc.o call.o ice.o aux.o \ +test-stats: test-stats.o $(COMMONOBJS) codeclib.strhash.o resample.o codec.o ssrc.o call.o ice.o helpers.o \ kernel.o media_socket.o stun.o bencode.o socket.o poller.o dtls.o recording.o statistics.o \ rtcp.o redis.o iptables.o graphite.o call_interfaces.strhash.o sdp.strhash.o rtp.o crypto.o \ control_ng.strhash.o graphite.o \ @@ -288,7 +288,7 @@ test-stats: test-stats.o $(COMMONOBJS) codeclib.strhash.o resample.o codec.o ssr media_player.o jitter_buffer.o dtmflib.o t38.o tcp_listener.o mqtt.o janus.strhash.o \ websocket.o cli.o mvr2s_x64_avx2.o mvr2s_x64_avx512.o audio_player.o mix_buffer.o -test-transcode: test-transcode.o $(COMMONOBJS) codeclib.strhash.o resample.o codec.o ssrc.o call.o ice.o aux.o \ +test-transcode: test-transcode.o $(COMMONOBJS) codeclib.strhash.o resample.o codec.o ssrc.o call.o ice.o helpers.o \ kernel.o media_socket.o stun.o bencode.o socket.o poller.o dtls.o recording.o statistics.o \ rtcp.o redis.o iptables.o graphite.o call_interfaces.strhash.o sdp.strhash.o rtp.o crypto.o \ control_ng.strhash.o \ @@ -299,7 +299,7 @@ test-transcode: test-transcode.o $(COMMONOBJS) codeclib.strhash.o resample.o cod test-resample: test-resample.o $(COMMONOBJS) codeclib.strhash.o resample.o dtmflib.o mvr2s_x64_avx2.o \ mvr2s_x64_avx512.o -test-payload-tracker: test-payload-tracker.o $(COMMONOBJS) ssrc.o aux.o auxlib.o rtp.o crypto.o codeclib.strhash.o \ +test-payload-tracker: test-payload-tracker.o $(COMMONOBJS) ssrc.o helpers.o auxlib.o rtp.o crypto.o codeclib.strhash.o \ resample.o dtmflib.o mvr2s_x64_avx2.o mvr2s_x64_avx512.o test-kernel-module: test-kernel-module.o $(COMMONOBJS) kernel.o diff --git a/t/log_funcs.h b/t/log_funcs.h index 334a5782a..f2aa31eb5 100644 --- a/t/log_funcs.h +++ b/t/log_funcs.h @@ -1,7 +1,7 @@ #ifndef _LOG_FUNCS_H_ #define _LOG_FUNCS_H_ -#include "aux.h" +#include "helpers.h" #include "str.h" struct call; diff --git a/t/test-transcode.c b/t/test-transcode.c index 4b9dda49d..8b9abdb7c 100644 --- a/t/test-transcode.c +++ b/t/test-transcode.c @@ -4,7 +4,7 @@ #include "log.h" #include "main.h" #include "ssrc.h" -#include "aux.h" +#include "helpers.h" int _log_facility_rtcp; int _log_facility_cdr;