LibIPC+Services: Support URL as a native IPC type

This commit is contained in:
Andreas Kling 2020-06-07 22:54:27 +02:00
commit 3654710c41
Notes: sideshowbarker 2024-07-19 05:46:08 +09:00
10 changed files with 26 additions and 16 deletions

View file

@ -25,6 +25,7 @@
*/
#include <AK/String.h>
#include <AK/URL.h>
#include <LibIPC/Dictionary.h>
#include <LibIPC/Encoder.h>
@ -140,6 +141,11 @@ Encoder& Encoder::operator<<(const String& value)
return *this << value.view();
}
Encoder& Encoder::operator<<(const URL& value)
{
return *this << value.to_string();
}
Encoder& Encoder::operator<<(const Dictionary& dictionary)
{
*this << (u64)dictionary.size();