2021-11-22 11:28:30 -05:00
|
|
|
@0xd29582d26b2fb073;
|
|
|
|
|
|
|
|
enum AttachmentState {
|
|
|
|
detached @0;
|
|
|
|
attaching @1;
|
|
|
|
attachedWeak @2;
|
|
|
|
attachedGood @3;
|
|
|
|
attachedStrong @4;
|
|
|
|
fullyAttached @5;
|
|
|
|
overAttached @6;
|
|
|
|
detaching @7;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct VeilidState {
|
|
|
|
# union {
|
|
|
|
attachment @0 :AttachmentState;
|
|
|
|
# }
|
|
|
|
}
|
|
|
|
|
|
|
|
struct AttachmentStateChange {
|
|
|
|
oldState @0 :AttachmentState;
|
|
|
|
newState @1 :AttachmentState;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct VeilidStateChange {
|
|
|
|
# union {
|
|
|
|
attachment @0 :AttachmentStateChange;
|
|
|
|
# }
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Registration {}
|
|
|
|
|
|
|
|
interface VeilidServer {
|
|
|
|
|
|
|
|
register @0 (veilidClient: VeilidClient) -> (registration: Registration);
|
|
|
|
|
2021-12-10 20:14:33 -05:00
|
|
|
attach @1 ();
|
|
|
|
detach @2 ();
|
|
|
|
shutdown @3 ();
|
|
|
|
|
|
|
|
debug @4 (what: Text) -> (output: Text);
|
2021-11-22 11:28:30 -05:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
interface VeilidClient {
|
|
|
|
|
|
|
|
stateChanged @0 (changed: VeilidStateChange);
|
2021-12-10 20:14:33 -05:00
|
|
|
logMessage @1 (message: Text);
|
2021-11-22 11:28:30 -05:00
|
|
|
|
|
|
|
}
|