From c725630e1c84f962b7de51daae673f95d07fe8fa Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 11 Aug 2025 07:54:23 +0200 Subject: [PATCH] acap/{none,sdi}: IWYU --- src/audio/capture/none.c | 22 +++++++++------------- src/audio/capture/sdi.cpp | 37 +++++++++++++++++-------------------- 2 files changed, 26 insertions(+), 33 deletions(-) diff --git a/src/audio/capture/none.c b/src/audio/capture/none.c index 23df3d668..29941da2b 100644 --- a/src/audio/capture/none.c +++ b/src/audio/capture/none.c @@ -8,7 +8,7 @@ * Dalibor Matura <255899@mail.muni.cz> * Ian Wesley-Smith * - * Copyright (c) 2005-2023 CESNET z.s.p.o. + * Copyright (c) 2005-2025 CESNET * * Redistribution and use in source and binary forms, with or without * modification, is permitted provided that the following conditions @@ -46,18 +46,14 @@ * */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#include "config_unix.h" -#include "config_win32.h" -#endif - -#include "audio/audio_capture.h" -#include "debug.h" -#include "lib_common.h" -#include -#include -#include +#include // for assert +#include // for uint32_t +#include // for free, NULL, malloc +#include "audio/audio_capture.h" // for AUDIO_CAPTURE_ABI_VERSION, audio_ca... +#include "debug.h" // for UNUSED +#include "lib_common.h" // for REGISTER_MODULE, library_class +struct device_info; +struct module; #define AUDIO_CAPTURE_NONE_MAGIC 0x43fb99ccu diff --git a/src/audio/capture/sdi.cpp b/src/audio/capture/sdi.cpp index ecbc2837a..3f58a6fe9 100644 --- a/src/audio/capture/sdi.cpp +++ b/src/audio/capture/sdi.cpp @@ -3,7 +3,7 @@ * @author Martin Pulec */ /* - * Copyright (c) 2011-2023 CESNET, z. s. p. o. + * Copyright (c) 2011-2025 CESNET * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -35,27 +35,24 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#include "config_unix.h" -#include "config_win32.h" -#endif // HAVE_CONFIG_H - -#include "audio/audio_capture.h" #include "audio/capture/sdi.h" -#include "audio/types.h" -#include "debug.h" -#include "host.h" -#include "lib_common.h" -#include "types.h" -#include -#include -#include -#include -#include -#include -#include +#include // for milliseconds +#include // for condition_variable +#include // for printf, snprintf, NULL +#include // for free, calloc, malloc +#include // for memcpy, strcmp, strncpy +#include // for mutex, unique_lock +#include // for basic_ostream, operator<<, basic_ios +#include // for basic_string, char_traits, hash +#include // for unordered_map, operator!= + +#include "audio/audio_capture.h" // for AUDIO_CAPTURE_ABI_VERSION, audio_ca... +#include "audio/types.h" // for audio_frame +#include "debug.h" // for LOG, LOG_LEVEL_WARNING, UNUSED +#include "host.h" // for commandline_params, INIT_NOERR +#include "lib_common.h" // for REGISTER_MODULE, library_class +#include "types.h" // for device_info, frame_flags_common #define DEFAULT_BUF_SIZE_MS 100L