Skip to content

Commit

Permalink
chore: add BSD license to copyright headers
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jan 19, 2022
1 parent 6c87b4f commit 2a8be57
Show file tree
Hide file tree
Showing 54 changed files with 216 additions and 432 deletions.
12 changes: 4 additions & 8 deletions example/dart_wot_example.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

import 'dart:io';

Expand Down
12 changes: 4 additions & 8 deletions lib/binding_coap.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

/// Protocol binding for the Constrained Application Protocol (CoAP). Follows
/// the [WoT Binding Templates Specification][spec link] for CoAP.
Expand Down
12 changes: 4 additions & 8 deletions lib/binding_http.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2022 The NAMIB Project Developers
// Copyright 2022 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

/// Protocol binding for the Hypertext Transfer Protocol (HTTP). Follows
/// the [WoT Binding Templates Specification][spec link] for HTTP.
Expand Down
12 changes: 4 additions & 8 deletions lib/core.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

/// Core implementation providing Scripting API implementations, interfaces
/// for protocol bindings, and the `Servient` class which provides the WoT
Expand Down
12 changes: 4 additions & 8 deletions lib/dart_wot.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

/// A W3C Web of Things implementation written in Dart.
library dart_wot;
Expand Down
12 changes: 4 additions & 8 deletions lib/definitions.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

/// Provides Thing Description and Thing Model Definitions that follow the
/// [WoT Thing Description Specification][spec link].
Expand Down
12 changes: 4 additions & 8 deletions lib/scripting_api.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2012 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

/// Defines interfaces that follow the
/// [WoT Scripting API Specification][spec link].
Expand Down
12 changes: 4 additions & 8 deletions lib/src/binding_coap/coap_client.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

import 'dart:convert';
import 'dart:io';
Expand Down
12 changes: 4 additions & 8 deletions lib/src/binding_coap/coap_client_factory.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

import '../core/protocol_interfaces/protocol_client.dart';
import '../core/protocol_interfaces/protocol_client_factory.dart';
Expand Down
12 changes: 4 additions & 8 deletions lib/src/binding_coap/coap_config.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

/// Allows for configuring the behavior of CoAP clients and servers.
class CoapConfig {
Expand Down
12 changes: 4 additions & 8 deletions lib/src/binding_coap/coap_server.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

import '../core/credentials.dart';
import '../core/protocol_interfaces/protocol_server.dart';
Expand Down
12 changes: 4 additions & 8 deletions lib/src/binding_http/http_client.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2022 The NAMIB Project Developers
// Copyright 2022 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

import 'dart:convert';

Expand Down
12 changes: 4 additions & 8 deletions lib/src/binding_http/http_client_factory.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2022 The NAMIB Project Developers
// Copyright 2022 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

import '../core/protocol_interfaces/protocol_client.dart';
import '../core/protocol_interfaces/protocol_client_factory.dart';
Expand Down
12 changes: 4 additions & 8 deletions lib/src/binding_http/http_config.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2022 The NAMIB Project Developers
// Copyright 2022 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

/// Allows for configuring the behavior of HTTP clients and servers.
class HttpConfig {
Expand Down
12 changes: 4 additions & 8 deletions lib/src/binding_http/http_server.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2022 The NAMIB Project Developers
// Copyright 2022 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

import 'package:dart_wot/src/binding_http/http_config.dart';

Expand Down
12 changes: 4 additions & 8 deletions lib/src/core/codecs/cbor_codec.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

import 'dart:convert';
import 'dart:typed_data';
Expand Down
12 changes: 4 additions & 8 deletions lib/src/core/codecs/content_codec.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

import 'dart:typed_data';

Expand Down
12 changes: 4 additions & 8 deletions lib/src/core/codecs/json_codec.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

import 'dart:convert';
import 'dart:typed_data';
Expand Down
12 changes: 4 additions & 8 deletions lib/src/core/consumed_thing.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

import '../../scripting_api.dart' as scripting_api;
import '../../scripting_api.dart' hide ConsumedThing, InteractionOutput;
Expand Down
12 changes: 4 additions & 8 deletions lib/src/core/content.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

import 'dart:typed_data';

Expand Down
12 changes: 4 additions & 8 deletions lib/src/core/content_serdes.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

import 'dart:convert';
import 'dart:typed_data';
Expand Down
12 changes: 4 additions & 8 deletions lib/src/core/credentials.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

/// Class used for defining credentials for Thing Interactions.
// TODO(JKRhb): Add implementation.
Expand Down
12 changes: 4 additions & 8 deletions lib/src/core/exposed_thing.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Copyright 2021 The NAMIB Project Developers
// Copyright 2021 The NAMIB Project Developers. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

import '../../definitions.dart';
import '../../scripting_api.dart' hide ExposedThing;
Expand Down
Loading

0 comments on commit 2a8be57

Please sign in to comment.