diff --git a/api.capnp b/api.capnp index b220ef4..1a0e9a6 100644 --- a/api.capnp +++ b/api.capnp @@ -26,6 +26,7 @@ using Rust = import "rust.capnp"; $Rust.parentModule("schema"); using CSharp = import "csharp.capnp"; +$CSharp.namespace("FabAccessAPI.Schema"); struct FabAccess { permissions @0 :Permissions; @@ -42,7 +43,7 @@ interface Machines { listMachines @0 () -> ( machines :List(Machine) ); # List all machines that BFFH knows about the user has been granted at least read access on - getMachine @1 ( uuid :UUID ) -> ( machine :Machine ); + getMachine @1 ( uuid :UUID ) -> ( machine :Machine, dummy :UInt8 = 0 ); # Access a particular machine by known UUID. This may fail for two reasons: The user # has not been granted access to know the machine exists or the machine does in fact # not exist. In both cases the `machine` result will be a NULL-pointer @@ -95,7 +96,7 @@ struct Machine { read @0 :Read; interface Read $CSharp.name("ReadInterface") { - info @0 () -> ( minfo :MInfo ); + info @0 () -> ( minfo :MInfo, dummy :UInt8 = 0 ); # Check the state of a machine. } diff --git a/auth.capnp b/auth.capnp index 61d2f48..6eb4aec 100644 --- a/auth.capnp +++ b/auth.capnp @@ -25,6 +25,9 @@ using Rust = import "rust.capnp"; $Rust.parentModule("schema"); +using CSharp = import "csharp.capnp"; +$CSharp.namespace("FabAccessAPI.Schema"); + struct AuthMessage { union { mechanisms @0 :List(Text); diff --git a/connection.capnp b/connection.capnp index 9f74ba1..a3626f7 100644 --- a/connection.capnp +++ b/connection.capnp @@ -25,6 +25,9 @@ using Rust = import "rust.capnp"; $Rust.parentModule("schema"); +using CSharp = import "csharp.capnp"; +$CSharp.namespace("FabAccessAPI.Schema"); + using Auth = import "auth.capnp"; using Api = import "api.capnp";