diff options
author | Sven Gothel <[email protected]> | 2020-10-16 04:31:06 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-10-16 04:31:06 +0200 |
commit | b477d8d7057d367feb0d87cccb212221b5992f82 (patch) | |
tree | 6fb66f2349363f871d15a121bd583841b2b39c39 /examples | |
parent | 50fcf6a3781b4f3be7899c0e4a42c7b4a1505833 (diff) |
Extract common C++ Support Library inclusive Java JNI Binding to sub-project jaucpp, namespace jau
Diffstat (limited to 'examples')
-rw-r--r-- | examples/CMakeLists.txt | 5 | ||||
-rw-r--r-- | examples/direct_bt_scanner00/dbt_scanner00.cpp | 6 | ||||
-rw-r--r-- | examples/direct_bt_scanner01/dbt_scanner01.cpp | 6 | ||||
-rw-r--r-- | examples/direct_bt_scanner10/dbt_scanner10.cpp | 5 |
4 files changed, 16 insertions, 6 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index e20ff993..94f08e8f 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,4 +1,7 @@ -include_directories(${PROJECT_SOURCE_DIR}/api) +include_directories( + ${PROJECT_SOURCE_DIR}/jaucpp/include + ${PROJECT_SOURCE_DIR}/api +) #include_directories( # ${PROJECT_SOURCE_DIR}/api diff --git a/examples/direct_bt_scanner00/dbt_scanner00.cpp b/examples/direct_bt_scanner00/dbt_scanner00.cpp index db42d2e6..0468ba6d 100644 --- a/examples/direct_bt_scanner00/dbt_scanner00.cpp +++ b/examples/direct_bt_scanner00/dbt_scanner00.cpp @@ -23,16 +23,18 @@ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include <direct_bt/DirectBT.hpp> #include <cinttypes> -#include "direct_bt/dfa_utf8_decode.hpp" +#include <jau/dfa_utf8_decode.hpp> + +#include <direct_bt/DirectBT.hpp> extern "C" { #include <unistd.h> } using namespace direct_bt; +using namespace jau; /** * This C++ direct_bt scanner example is a TinyB backward compatible and not fully event driven. diff --git a/examples/direct_bt_scanner01/dbt_scanner01.cpp b/examples/direct_bt_scanner01/dbt_scanner01.cpp index 7c666b28..1aed365a 100644 --- a/examples/direct_bt_scanner01/dbt_scanner01.cpp +++ b/examples/direct_bt_scanner01/dbt_scanner01.cpp @@ -23,14 +23,18 @@ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include <direct_bt/DirectBT.hpp> #include <cinttypes> +#include <jau/dfa_utf8_decode.hpp> + +#include <direct_bt/DirectBT.hpp> + extern "C" { #include <unistd.h> } using namespace direct_bt; +using namespace jau; /** * This C++ direct_bt scanner example is a TinyB backward compatible and not fully event driven. diff --git a/examples/direct_bt_scanner10/dbt_scanner10.cpp b/examples/direct_bt_scanner10/dbt_scanner10.cpp index 3ea3e0dc..a1dbf9a7 100644 --- a/examples/direct_bt_scanner10/dbt_scanner10.cpp +++ b/examples/direct_bt_scanner10/dbt_scanner10.cpp @@ -33,15 +33,16 @@ #include <pthread.h> -#include <direct_bt/DirectBT.hpp> +#include <jau/dfa_utf8_decode.hpp> -#include "direct_bt/dfa_utf8_decode.hpp" +#include <direct_bt/DirectBT.hpp> extern "C" { #include <unistd.h> } using namespace direct_bt; +using namespace jau; /** * This C++ scanner example uses the Direct-BT fully event driven workflow |