Skip to content

Commit 96b5986

Browse files
committed
playback: IWYU
1 parent ffa79ac commit 96b5986

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

src/playback.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <[email protected]>
44
*/
55
/*
6-
* Copyright (c) 2019-2023 CESNET, z. s. p. o.
6+
* Copyright (c) 2019-2025 CESNET, zájmové sdružení právnických osob
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -35,21 +35,21 @@
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
38+
#include "playback.h"
4339

44-
#include <sys/types.h>
45-
#include <sys/stat.h>
46-
#include <unistd.h>
40+
#include <fcntl.h> // for S_IFDIR
41+
#include <stdbool.h> // for bool, false, true
42+
#include <stdio.h> // for snprintf, perror
43+
#include <stdlib.h> // for free
44+
#include <string.h> // for strchr, strcmp, strdup, strstr
45+
#include <sys/stat.h> // for stat
4746

48-
#include "debug.h"
49-
#include "keyboard_control.h"
50-
#include "playback.h"
51-
#include "utils/color_out.h"
52-
#include "utils/text.h"
47+
#include "debug.h" // for log_msg, LOG_LEVEL_ERROR, LOG_LEVEL_INFO
48+
#include "keyboard_control.h" // for keycontrol_register_key, K_DOWN, K_LEFT
49+
#include "utils/color_out.h" // for color_printf, TBOLD, TERM_BOLD, TERM_R...
50+
#include "utils/text.h" // for wrap_paragraph
51+
52+
struct module;
5353

5454
#define MOD_NAME "[playback] "
5555

src/playback.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Abstraction of import and file video capture.
55
*/
66
/*
7-
* Copyright (c) 2019 CESNET, z. s. p. o.
7+
* Copyright (c) 2019-2025 CESNET, zájmové sdružení právnických osob
88
* All rights reserved.
99
*
1010
* Redistribution and use in source and binary forms, with or without
@@ -39,8 +39,12 @@
3939
#ifndef PLAYBACK_H_
4040
#define PLAYBACK_H_
4141

42+
#include <stddef.h> // for size_t
43+
4244
#include "utils/macros.h"
4345

46+
struct module;
47+
4448
EXTERN_C int playback_set_device(char *device_string, size_t buf_len, const char *optarg);
4549
EXTERN_C void playback_register_keyboard_ctl(struct module *mod);
4650

0 commit comments

Comments
 (0)