Skip to content

Commit 755ee51

Browse files
committed
IWYU some more files
1 parent 4259998 commit 755ee51

File tree

5 files changed

+50
-47
lines changed

5 files changed

+50
-47
lines changed

src/audio/audio_playback.c

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <[email protected]>
44
*/
55
/*
6-
* Copyright (c) 2015-2021 CESNET, z. s. p. o.
6+
* Copyright (c) 2015-2025 CESNET
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -35,25 +35,20 @@
3535
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636
*/
3737

38-
#ifdef HAVE_CONFIG_H
39-
#include "config.h"
40-
#include "config_unix.h"
41-
#include "config_win32.h"
42-
#endif
43-
44-
#include <stdio.h>
45-
#include <string.h>
46-
#include <stdlib.h>
47-
4838
#include "audio/audio_playback.h"
49-
#include "audio/playback/sdi.h"
50-
#include "audio/types.h"
51-
#include "debug.h"
52-
#include "host.h"
53-
#include "lib_common.h"
54-
#include "tv.h"
55-
#include "utils/misc.h" // for fmt_number_with_delim
56-
#include "video_display.h" /* flags */
39+
40+
#include <stdio.h> // for printf
41+
#include <stdlib.h> // for free, calloc
42+
#include <string.h> // for strncpy
43+
#include <strings.h> // for strcasecmp
44+
45+
#include "audio/types.h" // for audio_frame, AC_PCM, audio_desc
46+
#include "debug.h" // for log_msg, LOG_LEVEL_ERROR, LOG_LEVEL_INFO
47+
#include "host.h" // for INIT_NOERR
48+
#include "lib_common.h" // for library_class, list_modules, load_library
49+
#include "tv.h" // for tv_diff
50+
#include "utils/misc.h" // for fmt_number_with_delim
51+
#include "video_display.h" // for DISPLAY_FLAG_AUDIO_AESEBU, DISPLAY_FLAG_A...
5752

5853
struct state_audio_playback {
5954
char name[128];

src/audio/audio_playback.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <[email protected]>
44
*/
55
/*
6-
* Copyright (c) 2012-2023 CESNET, z. s. p. o.
6+
* Copyright (c) 2012-2025 CESNET
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -38,8 +38,11 @@
3838
#ifndef AUDIO_AUDIO_PLAYBACK_H_316AA23B_3EFF_4150_83D2_24A2295CB74A
3939
#define AUDIO_AUDIO_PLAYBACK_H_316AA23B_3EFF_4150_83D2_24A2295CB74A
4040

41-
#ifndef __cplusplus
41+
#ifdef __cplusplus
42+
#include <cstddef> // for size_t
43+
#else
4244
#include <stdbool.h>
45+
#include <stddef.h> // for size_t
4346
#endif // ! defined __cplusplus
4447

4548
#include "../types.h"

src/capture_filter.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <[email protected]>
44
*/
55
/*
6-
* Copyright (c) 2014-2021 CESNET, z. s. p. o.
6+
* Copyright (c) 2014-2025 CESNET
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -35,19 +35,19 @@
3535
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636
*/
3737

38-
#ifdef HAVE_CONFIG_H
39-
#include "config.h"
40-
#include "config_unix.h"
41-
#include "config_win32.h"
42-
#endif /* HAVE_CONFIG_H */
43-
4438
#include "capture_filter.h"
45-
#include "debug.h"
46-
#include "lib_common.h"
47-
#include "module.h"
48-
#include "utils/color_out.h"
49-
#include "utils/list.h"
50-
#include "video.h"
39+
40+
#include <cassert> // for assert
41+
#include <cstdio> // for printf, fprintf, stderr
42+
#include <cstdlib> // for free, NULL, atoi, calloc, malloc
43+
#include <cstring> // for strchr, strcmp, strdup, strlen, strncmp
44+
45+
#include "compat/strings.h" // for strcasecmp
46+
#include "lib_common.h" // for get_libraries_for_class, library_class
47+
#include "messaging.h" // for msg_universal, new_response, RESPONSE_I...
48+
#include "module.h" // for module, module_done, module_init_default
49+
#include "utils/color_out.h" // for color_printf, TERM_BOLD, TERM_RESET
50+
#include "utils/list.h" // for simple_linked_list_pop, simple_linked_l...
5151

5252
using namespace std;
5353

src/video_decompress.cpp

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <[email protected]>
44
*/
55
/*
6-
* Copyright (c) 2011-2019 CESNET, z. s. p. o.
6+
* Copyright (c) 2011-2025 CESNET
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -35,19 +35,18 @@
3535
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636
*/
3737

38-
#ifdef HAVE_CONFIG_H
39-
#include "config.h"
40-
#include "config_unix.h"
41-
#include "config_win32.h"
42-
#endif // HAVE_CONFIG_H
43-
44-
#include <stdio.h>
45-
#include <string.h>
46-
#include <string>
47-
#include "debug.h"
48-
#include "video_codec.h"
4938
#include "video_decompress.h"
50-
#include "lib_common.h"
39+
40+
#include <cassert> // for assert
41+
#include <cstdint> // for uint32_t
42+
#include <cstdlib> // for free, calloc
43+
#include <cstring> // for strchr, strdup
44+
#include <string> // for basic_string, char_traits, hash, operator<<
45+
46+
#include "debug.h" // for LOG, LOG_LEVEL_VERBOSE
47+
#include "host.h" // for commandline_params, ADD_TO_PARAM
48+
#include "lib_common.h" // for get_libraries_for_class, library_class
49+
#include "video_codec.h" // for get_codec_from_name
5150

5251
#define DECOMPRESS_MAGIC 0xdff34f21u
5352

src/video_decompress.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@
4848
#ifndef __video_decompress_h
4949
#define __video_decompress_h
5050

51+
#ifdef __cplusplus
52+
#include <cstddef> // for size_t
53+
#else
54+
#include <stddef.h> // for size_t
55+
#endif
56+
5157
#include "types.h"
5258

5359
#ifdef __cplusplus

0 commit comments

Comments
 (0)