mirror of
https://gitlab.com/fabinfra/fabaccess/fabaccess-api.git
synced 2025-03-12 14:51:42 +01:00
Added Machine properties
This commit is contained in:
parent
0225e8fdee
commit
78b04ef542
17
api.capnp
17
api.capnp
@ -84,11 +84,22 @@ struct Machine {
|
|||||||
|
|
||||||
responsible @3 :User; # This field may be NULL if nobody is using the machine
|
responsible @3 :User; # This field may be NULL if nobody is using the machine
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct PropertyMap {
|
||||||
|
properties @0 :List(Property)
|
||||||
|
struct Property {
|
||||||
|
key @0 :Text;
|
||||||
|
value @1 :Text;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
read @0 :Read;
|
read @0 :Read;
|
||||||
interface Read $CSharp.name("ReadInterface") {
|
interface Read $CSharp.name("ReadInterface") {
|
||||||
info @0 () -> ( minfo :MInfo, dummy :UInt8 = 0 );
|
info @0 () -> ( minfo :MInfo, dummy :UInt8 = 0 );
|
||||||
# Check the state of a machine.
|
# Check the state of a machine.
|
||||||
|
|
||||||
|
getProperties @1 () -> (properties :PropertyMap, dummy :UInt8 = 0 )
|
||||||
|
# Read Machine Properties
|
||||||
}
|
}
|
||||||
|
|
||||||
write @1 :Write;
|
write @1 :Write;
|
||||||
@ -106,6 +117,12 @@ struct Machine {
|
|||||||
reserve @1 () -> ( ret :GiveBack );
|
reserve @1 () -> ( ret :GiveBack );
|
||||||
# Try to reserve a machine. returns a NULL-ptr if the user does not have the required
|
# Try to reserve a machine. returns a NULL-ptr if the user does not have the required
|
||||||
# permissions to reserve this machine
|
# permissions to reserve this machine
|
||||||
|
|
||||||
|
setProperties @1 (properties :PropertyMap) -> ()
|
||||||
|
# Write all Machine Properties
|
||||||
|
|
||||||
|
setProperty @1 (property :Property) -> ()
|
||||||
|
# Write ONE Machine Property identified by it's key
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user