Cleanup includes

Improved manually with the help of neovim LSP warnings and iwyu:

    iwyu -Ibuilddir/app/ -Iapp/src/ app/src/XXX.c
This commit is contained in:
Romain Vimont
2024-12-20 20:58:41 +01:00
parent 5b1229a55f
commit af15c72f9c
110 changed files with 225 additions and 151 deletions

View File

@@ -3,6 +3,7 @@
#include "common.h"
#include <stddef.h>
#include <stdint.h>
#define SC_HID_MAX_SIZE 15

View File

@@ -2,6 +2,8 @@
#include <assert.h>
#include <inttypes.h>
#include <stddef.h>
#include <sys/types.h>
#include "util/binary.h"
#include "util/log.h"

View File

@@ -4,6 +4,7 @@
#include "common.h"
#include <stdbool.h>
#include <stdint.h>
#include "hid/hid_event.h"
#include "input_events.h"

View File

@@ -1,5 +1,6 @@
#include "hid_keyboard.h"
#include <assert.h>
#include <string.h>
#include "util/log.h"

View File

@@ -4,6 +4,7 @@
#include "common.h"
#include <stdbool.h>
#include <stdint.h>
#include "hid/hid_event.h"
#include "input_events.h"

View File

@@ -1,5 +1,7 @@
#include "hid_mouse.h"
#include <stdint.h>
// 1 byte for buttons + padding, 1 byte for X position, 1 byte for Y position,
// 1 byte for wheel motion
#define SC_HID_MOUSE_INPUT_SIZE 4

View File

@@ -3,8 +3,6 @@
#include "common.h"
#include <stdbool.h>
#include "hid/hid_event.h"
#include "input_events.h"