[SEBA-854] Add new API and modify existing
Change-Id: Iea9fd003d122f58a4d45c79d806a2011087d1740
diff --git a/proto/importer.proto b/proto/importer.proto
index 1ec491b..dd85cd1 100644
--- a/proto/importer.proto
+++ b/proto/importer.proto
@@ -14,25 +14,45 @@
string protocol = 4;
}
-message EventList {
+message GivenEventList {
string event_ip_address = 1;
repeated string events = 2;
}
-message SupportedEventList {
+message EventList {
repeated string events = 1;
}
+message FreqInfo {
+ string IpAddress = 1;
+ uint32 Frequency = 2;
+}
+
+message VendorInfo {
+ string Vendor = 1;
+}
+
+message Device {
+ string IpAddress = 1;
+}
+
+
+message Empty {}
service device_management {
rpc SendDeviceInfo(DeviceInfo) returns (google.protobuf.Empty) {}
- rpc SetFrequency(DeviceInfo) returns (google.protobuf.Empty) {}
+ rpc SetFrequency(FreqInfo) returns (google.protobuf.Empty) {}
- rpc GetEventList(DeviceInfo) returns (SupportedEventList) {}
+ rpc GetEventList(VendorInfo) returns (EventList) {}
- rpc SubsrcribeGivenEvents(EventList) returns (google.protobuf.Empty) {}
+ rpc SubsrcribeGivenEvents(GivenEventList) returns (google.protobuf.Empty) {}
- rpc UnSubsrcribeGivenEvents(EventList) returns (google.protobuf.Empty) {}
+ rpc UnSubsrcribeGivenEvents(GivenEventList) returns (google.protobuf.Empty) {}
+
+ rpc GetCurrentEventList(Device) returns (EventList) {}
+
+ rpc ClearCurrentEventList(Device) returns (google.protobuf.Empty) {}
+
}