From 5b46bdd8fc8d3f04c20c203875b0133709abf64a Mon Sep 17 00:00:00 2001 From: Srivats P Date: Sun, 27 Mar 2016 11:23:56 +0530 Subject: [PATCH] Save/Open Session - Defined the file format for a session file --- common/fileformat.proto | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/common/fileformat.proto b/common/fileformat.proto index ce2a688..18e7d97 100644 --- a/common/fileformat.proto +++ b/common/fileformat.proto @@ -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; } /*