From fc7d231b004e6d141caf880dc837b701dd1898f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Tue, 1 Feb 2022 20:49:29 +0100 Subject: LibIPC: Allow transporting a SharedCircularQueue over IPC --- Userland/Libraries/LibIPC/Encoder.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Userland/Libraries/LibIPC/Encoder.h') diff --git a/Userland/Libraries/LibIPC/Encoder.h b/Userland/Libraries/LibIPC/Encoder.h index b207e73ccd..4c39ebd64b 100644 --- a/Userland/Libraries/LibIPC/Encoder.h +++ b/Userland/Libraries/LibIPC/Encoder.h @@ -8,6 +8,7 @@ #include #include +#include #include #include @@ -77,6 +78,13 @@ public: return *this; } + template + Encoder& operator<<(Core::SharedSingleProducerCircularQueue const& queue) + { + *this << IPC::File(queue.fd()); + return *this; + } + template Encoder& operator<<(T const& enum_value) { -- cgit v1.2.3