mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibIPC+Services: Support URL as a native IPC type
This commit is contained in:
parent
b81b2a85c4
commit
3654710c41
10 changed files with 26 additions and 16 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue