summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-11-22 10:54:53 +0100
committerSander Vrijders <[email protected]>2016-11-22 11:13:24 +0100
commit16ea9e2e883cc219d15fa57e34a4e1d31f3ea6af (patch)
treeece13a41da1752c4775d851ef588e6ed4de60ddf /src/lib
parentcad42bc85f351362894810aae1a5018ccb5e3c9f (diff)
downloadouroboros-16ea9e2e883cc219d15fa57e34a4e1d31f3ea6af.tar.gz
ouroboros-16ea9e2e883cc219d15fa57e34a4e1d31f3ea6af.zip
ipcpd, lib: Add syntax version to protobuf files
This adds a syntax version to the protobuf files. The latest version of protobuf otherwise complains that it is missing. The GPL license is also added on files where it was missing.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cdap.proto25
-rw-r--r--src/lib/dif_config.proto25
-rw-r--r--src/lib/ipcpd_messages.proto25
-rw-r--r--src/lib/irmd_messages.proto7
4 files changed, 80 insertions, 2 deletions
diff --git a/src/lib/cdap.proto b/src/lib/cdap.proto
index f641fc65..ba3654bc 100644
--- a/src/lib/cdap.proto
+++ b/src/lib/cdap.proto
@@ -1,3 +1,28 @@
+/*
+ * Ouroboros - Copyright (C) 2016
+ *
+ * CDAP message
+ *
+ * Dimitri Staessens <[email protected]>
+ * Sander Vrijders <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+syntax = "proto2";
+
enum opcode {
CREATE = 1;
DELETE = 2;
diff --git a/src/lib/dif_config.proto b/src/lib/dif_config.proto
index 7eff28ba..64811abb 100644
--- a/src/lib/dif_config.proto
+++ b/src/lib/dif_config.proto
@@ -1,3 +1,28 @@
+/*
+ * Ouroboros - Copyright (C) 2016
+ *
+ * DIF config message
+ *
+ * Dimitri Staessens <[email protected]>
+ * Sander Vrijders <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+syntax = "proto2";
+
message dif_config_msg {
required string dif_name = 1;
required int32 ipcp_type = 2;
diff --git a/src/lib/ipcpd_messages.proto b/src/lib/ipcpd_messages.proto
index 147d40c6..5751b71d 100644
--- a/src/lib/ipcpd_messages.proto
+++ b/src/lib/ipcpd_messages.proto
@@ -1,3 +1,28 @@
+/*
+ * Ouroboros - Copyright (C) 2016
+ *
+ * IPCPd message
+ *
+ * Dimitri Staessens <[email protected]>
+ * Sander Vrijders <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+syntax = "proto2";
+
import "dif_config.proto";
enum ipcp_msg_code {
diff --git a/src/lib/irmd_messages.proto b/src/lib/irmd_messages.proto
index 61c27d01..20de7165 100644
--- a/src/lib/irmd_messages.proto
+++ b/src/lib/irmd_messages.proto
@@ -1,9 +1,10 @@
/*
* Ouroboros - Copyright (C) 2016
*
- * IRM messages
+ * IRMd message
*
- * Sander Vrijders <[email protected]>
+ * Dimitri Staessens <[email protected]>
+ * Sander Vrijders <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -20,6 +21,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+syntax = "proto2";
+
import "dif_config.proto";
enum irm_msg_code {