From 16ea9e2e883cc219d15fa57e34a4e1d31f3ea6af Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 22 Nov 2016 10:54:53 +0100 Subject: 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. --- src/lib/cdap.proto | 25 +++++++++++++++++++++++++ src/lib/dif_config.proto | 25 +++++++++++++++++++++++++ src/lib/ipcpd_messages.proto | 25 +++++++++++++++++++++++++ src/lib/irmd_messages.proto | 7 +++++-- 4 files changed, 80 insertions(+), 2 deletions(-) (limited to 'src/lib') 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 + * Sander Vrijders + * + * 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 + * Sander Vrijders + * + * 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 + * Sander Vrijders + * + * 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 + * Dimitri Staessens + * Sander Vrijders * * 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 { -- cgit v1.2.3