Save/Open Session - Defined the file format for a session file

This commit is contained in:
Srivats P 2016-03-27 11:23:56 +05:30
parent 72a6381c88
commit 5b46bdd8fc

View File

@ -24,6 +24,7 @@ package OstProto;
enum FileType {
kReservedFileType = 0;
kStreamsFileType = 1;
kSessionFileType = 10;
}
message FileMetaData {
@ -36,8 +37,28 @@ message FileMetaData {
required string generator_revision = 7;
}
message PortContent {
optional Port port_config = 1;
repeated Stream streams = 2;
repeated DeviceGroup device_groups = 3;
}
message PortGroupContent {
optional string server_name = 1;
repeated PortContent ports = 2;
}
message SessionContent {
repeated PortGroupContent port_groups = 1;
}
message FileContentMatter {
optional StreamConfigList streams = 1;
// TODO: optional DeviceGroupConfigList device_groups = 2;
// TODO: optional PortContent port = 3;
// FIXME: (single) portgroup? is there a usecase for this?
optional SessionContent session = 10;
}
/*