Add a basic IPC setup with Channel Object.
Pass a process a channel endpoint on startup that it will use to get it's initial capabilities.
This commit is contained in:
parent
b79ec07636
commit
81b925eea0
15 changed files with 341 additions and 20 deletions
|
|
@ -34,3 +34,11 @@ RefPtr<MemoryObject> Capability::obj<MemoryObject>() {
|
|||
}
|
||||
return StaticCastRefPtr<MemoryObject>(obj_);
|
||||
}
|
||||
|
||||
template <>
|
||||
RefPtr<Channel> Capability::obj<Channel>() {
|
||||
if (type_ != CHANNEL) {
|
||||
panic("Accessing %u cap as object.", type_);
|
||||
}
|
||||
return StaticCastRefPtr<Channel>(obj_);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue