mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibIPC: Add some type aliases and MessageBuffer helpers
To re-use some of these wordy types outside of LibIPC, let's add some aliases.
This commit is contained in:
parent
8dd259b8d8
commit
fd6d868ae2
Notes:
github-actions[bot]
2025-07-18 14:11:24 +00:00
Author: https://github.com/trflynn89
Commit: fd6d868ae2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5492
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/shannonbooth
4 changed files with 30 additions and 5 deletions
|
@ -10,6 +10,7 @@
|
|||
|
||||
namespace IPC {
|
||||
|
||||
class AutoCloseFileDescriptor;
|
||||
class Decoder;
|
||||
class Encoder;
|
||||
class Message;
|
||||
|
@ -23,4 +24,7 @@ ErrorOr<void> encode(Encoder&, T const&);
|
|||
template<typename T>
|
||||
ErrorOr<T> decode(Decoder&);
|
||||
|
||||
using MessageDataType = Vector<u8, 1024>;
|
||||
using MessageFileType = Vector<NonnullRefPtr<AutoCloseFileDescriptor>, 1>;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue