From d5c9b726bd86c44eac17dfec461d02771c22e101 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 19 Jan 2024 19:33:11 +0200 Subject: libcamera: signal: Replace object.h inclusion with forward declatation The signal.h header doesn't need to include object.h. Replace it with a forward declaration, and instead include object.h in source files that require it. It can speed up compilation a little bit, but more importantly avoids unintended dependencies from the Signal class to the Object class to be added later as the compiler will catch them. Signed-off-by: Laurent Pinchart Reviewed-by: Milan Zamazal --- test/event-thread.cpp | 1 + test/ipa/ipa_interface_test.cpp | 1 + test/message.cpp | 1 + test/signal-threads.cpp | 1 + test/timer-thread.cpp | 1 + 5 files changed, 5 insertions(+) (limited to 'test') diff --git a/test/event-thread.cpp b/test/event-thread.cpp index ef8a52c3..88a8c07e 100644 --- a/test/event-thread.cpp +++ b/test/event-thread.cpp @@ -11,6 +11,7 @@ #include #include +#include #include #include diff --git a/test/ipa/ipa_interface_test.cpp b/test/ipa/ipa_interface_test.cpp index 051ef96e..56f3cd6d 100644 --- a/test/ipa/ipa_interface_test.cpp +++ b/test/ipa/ipa_interface_test.cpp @@ -16,6 +16,7 @@ #include #include +#include #include #include diff --git a/test/message.cpp b/test/message.cpp index d148a13d..0e76f323 100644 --- a/test/message.cpp +++ b/test/message.cpp @@ -11,6 +11,7 @@ #include #include +#include #include #include "test.h" diff --git a/test/signal-threads.cpp b/test/signal-threads.cpp index d5e2eb66..8c550eb0 100644 --- a/test/signal-threads.cpp +++ b/test/signal-threads.cpp @@ -10,6 +10,7 @@ #include #include +#include #include #include diff --git a/test/timer-thread.cpp b/test/timer-thread.cpp index 61821753..0bcd0d8c 100644 --- a/test/timer-thread.cpp +++ b/test/timer-thread.cpp @@ -9,6 +9,7 @@ #include #include +#include #include #include -- cgit v1.2.1