summaryrefslogtreecommitdiff
path: root/src/leap/common/ipc/notification.proto
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-03-19 11:23:58 -0300
committerdrebs <drebs@leap.se>2013-03-22 17:02:56 -0300
commitad101705ae1a16036404092848789472cd70e006 (patch)
tree4a5c1f7e6b47b27964c4725ff9271d4fa267ba63 /src/leap/common/ipc/notification.proto
parenta32ced65294adab1eab199b7d6df4c4a5794e82f (diff)
Add notification .proto file.
Diffstat (limited to 'src/leap/common/ipc/notification.proto')
-rw-r--r--src/leap/common/ipc/notification.proto23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/leap/common/ipc/notification.proto b/src/leap/common/ipc/notification.proto
new file mode 100644
index 0000000..4ae0406
--- /dev/null
+++ b/src/leap/common/ipc/notification.proto
@@ -0,0 +1,23 @@
+// https://developers.google.com/protocol-buffers/docs/pythontutorial
+// https://developers.google.com/protocol-buffers/docs/reference/python-generated
+
+package leap.common;
+
+message Notification {
+
+ enum Component {
+ client = 0;
+ soledad = 1;
+ eip = 2;
+ smtp_relay = 3;
+ mx = 4;
+ }
+
+ required int32 id = 1;
+ required Component component = 2;
+ required string content = 3;
+ required string mac_method = 4;
+ required bytes mac = 5;
+ optional string enc_method = 6;
+ optional bool error_occurred = 7;
+}