From f4d75800fdc05529a1758c8fec498c8036561979 Mon Sep 17 00:00:00 2001 From: Adam Lock Date: Sat, 16 May 2020 19:45:53 +0100 Subject: [PATCH] Put a copyright at the top of sample files --- samples/chess-server/src/game.rs | 4 ++++ samples/chess-server/src/main.rs | 4 ++++ samples/demo-server/src/control.rs | 4 ++++ samples/demo-server/src/historical.rs | 4 ++++ samples/demo-server/src/machine.rs | 4 ++++ samples/demo-server/src/main.rs | 4 ++++ samples/demo-server/src/methods.rs | 4 ++++ samples/demo-server/src/scalar.rs | 4 ++++ samples/discovery-client/src/main.rs | 4 ++++ samples/modbus-server/src/config.rs | 4 ++++ samples/modbus-server/src/main.rs | 4 ++++ samples/modbus-server/src/master.rs | 4 ++++ samples/modbus-server/src/opcua.rs | 4 ++++ samples/modbus-server/src/slave.rs | 4 ++++ samples/mqtt-client/src/main.rs | 4 ++++ samples/simple-client/src/main.rs | 4 ++++ samples/simple-server/src/main.rs | 4 ++++ samples/web-client/src/main.rs | 4 ++++ 18 files changed, 72 insertions(+) diff --git a/samples/chess-server/src/game.rs b/samples/chess-server/src/game.rs index 55fdbf217..9b4c7a3bb 100644 --- a/samples/chess-server/src/game.rs +++ b/samples/chess-server/src/game.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use uci::Engine; /// The piece on a square diff --git a/samples/chess-server/src/main.rs b/samples/chess-server/src/main.rs index 755c51ae6..0bf250ef6 100644 --- a/samples/chess-server/src/main.rs +++ b/samples/chess-server/src/main.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::env; use std::path::PathBuf; use std::sync::{Arc, Mutex}; diff --git a/samples/demo-server/src/control.rs b/samples/demo-server/src/control.rs index 043264ca6..c2c3894a4 100644 --- a/samples/demo-server/src/control.rs +++ b/samples/demo-server/src/control.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use opcua_server::{ prelude::*, }; diff --git a/samples/demo-server/src/historical.rs b/samples/demo-server/src/historical.rs index 8af14f946..451b222c8 100644 --- a/samples/demo-server/src/historical.rs +++ b/samples/demo-server/src/historical.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Implementations of HistoricalDataProvider and HistoricalEventProvider use std::sync::{Arc, RwLock}; diff --git a/samples/demo-server/src/machine.rs b/samples/demo-server/src/machine.rs index 5d799b1fe..216d74932 100644 --- a/samples/demo-server/src/machine.rs +++ b/samples/demo-server/src/machine.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::sync::{Arc, atomic::{AtomicU16, AtomicU32, Ordering}}; use chrono; diff --git a/samples/demo-server/src/main.rs b/samples/demo-server/src/main.rs index ac24b9d93..133b38fea 100644 --- a/samples/demo-server/src/main.rs +++ b/samples/demo-server/src/main.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! This is a demo server for OPC UA. It demonstrates most of the features of OPC UA for Rust. //! //! * Variables for each type diff --git a/samples/demo-server/src/methods.rs b/samples/demo-server/src/methods.rs index 2728c2c12..50da0d121 100644 --- a/samples/demo-server/src/methods.rs +++ b/samples/demo-server/src/methods.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! A sample method use opcua_server::{ diff --git a/samples/demo-server/src/scalar.rs b/samples/demo-server/src/scalar.rs index ce0cde090..5e7eaa3bf 100644 --- a/samples/demo-server/src/scalar.rs +++ b/samples/demo-server/src/scalar.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use rand::distributions::Alphanumeric; use rand::Rng; diff --git a/samples/discovery-client/src/main.rs b/samples/discovery-client/src/main.rs index f227dca98..2e5a5c315 100644 --- a/samples/discovery-client/src/main.rs +++ b/samples/discovery-client/src/main.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! This is a sample that calls find servers on a OPC UA discovery server use std::str::FromStr; diff --git a/samples/modbus-server/src/config.rs b/samples/modbus-server/src/config.rs index 1bade02ba..61555399a 100644 --- a/samples/modbus-server/src/config.rs +++ b/samples/modbus-server/src/config.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::{ fs::File, io::Read, diff --git a/samples/modbus-server/src/main.rs b/samples/modbus-server/src/main.rs index 08101069d..fefa84655 100644 --- a/samples/modbus-server/src/main.rs +++ b/samples/modbus-server/src/main.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! This is a OPC UA server that is a MODBUS master - in MODBUS parlance the master is the thing //! requesting information from a slave device. //! diff --git a/samples/modbus-server/src/master.rs b/samples/modbus-server/src/master.rs index 59d5c4382..bbab74cc0 100644 --- a/samples/modbus-server/src/master.rs +++ b/samples/modbus-server/src/master.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::{ sync::{Arc, RwLock}, thread, diff --git a/samples/modbus-server/src/opcua.rs b/samples/modbus-server/src/opcua.rs index 5fa180b97..6e81eebfa 100644 --- a/samples/modbus-server/src/opcua.rs +++ b/samples/modbus-server/src/opcua.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::{ f32, f64, i16, i32, i64, i8, path::PathBuf, sync::{Arc, Mutex, RwLock}, diff --git a/samples/modbus-server/src/slave.rs b/samples/modbus-server/src/slave.rs index 2cba9760c..da1afc29f 100644 --- a/samples/modbus-server/src/slave.rs +++ b/samples/modbus-server/src/slave.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use futures::{ future::{self, FutureResult}, }; diff --git a/samples/mqtt-client/src/main.rs b/samples/mqtt-client/src/main.rs index e13883f28..69f5f64fd 100644 --- a/samples/mqtt-client/src/main.rs +++ b/samples/mqtt-client/src/main.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! This is a sample OPC UA Client that connects to the specified server, fetches some //! values before exiting. use std::{ diff --git a/samples/simple-client/src/main.rs b/samples/simple-client/src/main.rs index bf44f8b75..471fe8d88 100644 --- a/samples/simple-client/src/main.rs +++ b/samples/simple-client/src/main.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! This simple OPC UA client will do the following: //! //! 1. Read a configuration file (either default or the one specified using --config) diff --git a/samples/simple-server/src/main.rs b/samples/simple-server/src/main.rs index e07dde968..0d7a6db67 100644 --- a/samples/simple-server/src/main.rs +++ b/samples/simple-server/src/main.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! This is a simple server for OPC UA. Our sample creates a server with the default settings //! adds some variables to the address space and the listeners for connections. It also has //! a timer that updates those variables so anything monitoring variables sees the values changing. diff --git a/samples/web-client/src/main.rs b/samples/web-client/src/main.rs index 046d1de1f..2dfeb43bd 100644 --- a/samples/web-client/src/main.rs +++ b/samples/web-client/src/main.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + #[macro_use] extern crate serde_derive;