diff --git a/Libraries/LibCore/AnonymousBuffer.cpp b/Libraries/LibCore/AnonymousBuffer.cpp index 55004c7868f..f009ab0cefb 100644 --- a/Libraries/LibCore/AnonymousBuffer.cpp +++ b/Libraries/LibCore/AnonymousBuffer.cpp @@ -7,7 +7,6 @@ #include #include #include -#include #include #include diff --git a/Libraries/LibCore/AnonymousBuffer.h b/Libraries/LibCore/AnonymousBuffer.h index f82e5837c6b..5604036fe6b 100644 --- a/Libraries/LibCore/AnonymousBuffer.h +++ b/Libraries/LibCore/AnonymousBuffer.h @@ -12,7 +12,6 @@ #include #include #include -#include namespace Core { @@ -75,13 +74,3 @@ private: }; } - -namespace IPC { - -template<> -ErrorOr encode(Encoder&, Core::AnonymousBuffer const&); - -template<> -ErrorOr decode(Decoder&); - -} diff --git a/Libraries/LibCore/DateTime.h b/Libraries/LibCore/DateTime.h index e478ffe8090..3f5a8801155 100644 --- a/Libraries/LibCore/DateTime.h +++ b/Libraries/LibCore/DateTime.h @@ -8,7 +8,6 @@ #include #include -#include #include namespace Core { @@ -107,13 +106,3 @@ struct Formatter : StandardFormatter { }; } - -namespace IPC { - -template<> -ErrorOr encode(Encoder&, Core::DateTime const&); - -template<> -ErrorOr decode(Decoder&); - -} diff --git a/Libraries/LibCore/Forward.h b/Libraries/LibCore/Forward.h index d40a117254f..c78de9f96e1 100644 --- a/Libraries/LibCore/Forward.h +++ b/Libraries/LibCore/Forward.h @@ -49,6 +49,8 @@ class TimeZoneWatcher; class UDPServer; class UDPSocket; +struct ProxyData; + enum class TimerShouldFireWhenNotVisible; #ifdef AK_OS_MACH diff --git a/Libraries/LibCore/Proxy.h b/Libraries/LibCore/Proxy.h index 6ce883c6e7f..43fa7540aca 100644 --- a/Libraries/LibCore/Proxy.h +++ b/Libraries/LibCore/Proxy.h @@ -9,7 +9,6 @@ #include #include #include -#include #include namespace Core { @@ -48,13 +47,3 @@ struct ProxyData { }; } - -namespace IPC { - -template<> -ErrorOr encode(Encoder&, Core::ProxyData const&); - -template<> -ErrorOr decode(Decoder&); - -} diff --git a/Libraries/LibIPC/Decoder.h b/Libraries/LibIPC/Decoder.h index 7fa284c26a2..3666285990e 100644 --- a/Libraries/LibIPC/Decoder.h +++ b/Libraries/LibIPC/Decoder.h @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -117,6 +118,15 @@ ErrorOr decode(Decoder&); template<> ErrorOr decode(Decoder&); +template<> +ErrorOr decode(Decoder&); + +template<> +ErrorOr decode(Decoder&); + +template<> +ErrorOr decode(Decoder&); + template ErrorOr decode(Decoder& decoder) { diff --git a/Libraries/LibIPC/Encoder.h b/Libraries/LibIPC/Encoder.h index 04109393302..b4ebf037d09 100644 --- a/Libraries/LibIPC/Encoder.h +++ b/Libraries/LibIPC/Encoder.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -116,6 +117,15 @@ ErrorOr encode(Encoder&, File const&); template<> ErrorOr encode(Encoder&, Empty const&); +template<> +ErrorOr encode(Encoder&, Core::AnonymousBuffer const&); + +template<> +ErrorOr encode(Encoder&, Core::DateTime const&); + +template<> +ErrorOr encode(Encoder&, Core::ProxyData const&); + template ErrorOr encode(Encoder& encoder, T const& span) {