diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-11-15 11:24:59 -0500 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2022-11-15 13:25:51 -0500 |
commit | 05f41382bb527fbf2bb47340ad065b36f2e7409f (patch) | |
tree | 3da51238f398d92fc289351837cd26699bdad21f /Userland/Libraries/LibDNS/Answer.h | |
parent | b1ea418d14b4392741720914b834c61322cdb5b4 (diff) | |
download | serenity-05f41382bb527fbf2bb47340ad065b36f2e7409f.zip |
Userland: Properly define IPC::encode and IPC::decode specializations
In order to avoid the base encode/decode methods from being used (and
failing a static assertion), we must be sure to declare/define the
custom type implementations as template specializations.
After this, LibIPC is no longer sensitive to include order.
Diffstat (limited to 'Userland/Libraries/LibDNS/Answer.h')
-rw-r--r-- | Userland/Libraries/LibDNS/Answer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibDNS/Answer.h b/Userland/Libraries/LibDNS/Answer.h index a3d0ea7063..a8592ed749 100644 --- a/Userland/Libraries/LibDNS/Answer.h +++ b/Userland/Libraries/LibDNS/Answer.h @@ -94,7 +94,10 @@ struct AK::Formatter<DNS::RecordClass> : StandardFormatter { namespace IPC { +template<> bool encode(Encoder&, DNS::Answer const&); + +template<> ErrorOr<void> decode(Decoder&, DNS::Answer&); } |