diff options
author | Sven Gothel <[email protected]> | 2021-10-10 04:44:45 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-10-10 04:44:45 +0200 |
commit | b8a7f626fadcf6b21e5df67cdf0df4369885a6b8 (patch) | |
tree | eb2a05fabe63e8b8ccb61bcdb019459a69eaa251 /java/jni | |
parent | 5295208f805a3389a6a3d91b5cd27404fe3fa01c (diff) |
Removed TinyB API artifacts, fix copyright notice. Add README.md 'Direct-BT Origins'
Removed remaining TinyB API artifacts:
- BTType.java and related search functions (class_type())
- Java's clone()
- BTManager's device/gatt functionality, only covers adapter.
+++
Direct-BT originated from TinyB.
Major TinyB autors were:
- Andrei Vasiliu <[email protected]>
- Petre Eftime <[email protected]>
TinyB Copyright (c) 2016 Intel Corporation.
With the removal of TinyB from Direct-BT
we removed all substantial parts (if not all, i.e. > 99.9%)
of its copyright holder.
This change removes remaining source file Intel (c) notices.
This change does not disregard the author's original work,
on the contrary, we keep attribution about Direct-BT's history
in the README.md file 'Direct-BT Origins' section.
The Intel (c) notice and TinyB authors stay in the COPYING file.
We are grateful for their excellent work.
This change is to clarify authorship and copyright of Direct-BT's work,
as well as to not mislead association with the work of TinyB.
Diffstat (limited to 'java/jni')
-rw-r--r-- | java/jni/helper_base.cxx | 16 | ||||
-rw-r--r-- | java/jni/helper_base.hpp | 7 |
2 files changed, 2 insertions, 21 deletions
diff --git a/java/jni/helper_base.cxx b/java/jni/helper_base.cxx index c154d65b..07799dde 100644 --- a/java/jni/helper_base.cxx +++ b/java/jni/helper_base.cxx @@ -1,7 +1,4 @@ -/* - * Author: Andrei Vasiliu <[email protected]> - * Copyright (c) 2016 Intel Corporation. - * +/** * Author: Sven Gothel <[email protected]> * Copyright (c) 2020 Gothel Software e.K. * Copyright (c) 2020 ZAFENA AB @@ -35,17 +32,6 @@ #define JAVA_MAIN_PACKAGE "org/direct_bt" -jobject get_bluetooth_type(JNIEnv *env, const char *field_name) -{ - jclass b_type_enum = jau::search_class(env, JAVA_MAIN_PACKAGE "/BTType"); - - jfieldID b_type_field = jau::search_field(env, b_type_enum, field_name, "L" JAVA_MAIN_PACKAGE "/BTType;", true); - - jobject result = env->GetStaticObjectField(b_type_enum, b_type_field); - env->DeleteLocalRef(b_type_enum); - return result; -} - void raise_java_exception(JNIEnv *env, const direct_bt::BTException &e, const char* file, int line) { jau::print_native_caught_exception_fwd2java(e, file, line); env->ThrowNew(env->FindClass("org/direct_bt/BTException"), e.what()); diff --git a/java/jni/helper_base.hpp b/java/jni/helper_base.hpp index 2e678236..629e3b78 100644 --- a/java/jni/helper_base.hpp +++ b/java/jni/helper_base.hpp @@ -1,7 +1,4 @@ -/* - * Author: Andrei Vasiliu <[email protected]> - * Copyright (c) 2016 Intel Corporation. - * +/** * Author: Sven Gothel <[email protected]> * Copyright (c) 2020 Gothel Software e.K. * Copyright (c) 2020 ZAFENA AB @@ -38,8 +35,6 @@ #include "direct_bt/BTTypes0.hpp" -jobject get_bluetooth_type(JNIEnv *env, const char *field_name); - void raise_java_exception(JNIEnv *env, const direct_bt::BTException &e, const char* file, int line); /** |