aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* clang-tidy fixes part-1Sven Gothel2022-11-2748-426/+525
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Details - Use 'size_type' instead of 'int', propagate same 'size_type' into 'darray' etc. - Use 'std::make_shared', 'std::make_unique' - Use range-based for loops - Remove redundant 'virtual', use 'override' in derived classes - Use 'nullptr' - Use default impl for dtor, ctor (incomplete) - Use copy and std::move (incomplete) - Explcitly catch std::bad_alloc in 'new' in 'noexcept' -> 'abort' - 'abort' was issued implicitly in noexcept methods - L2CAPServer, L2CAPClient, NopGattServerHandler, DBGattServerHandler, FwdGattServerHandler - Use local close_impl(), usable in virtual destructor - L2CAPClient::read, HCIComm::read - preset 'poll' result 'n', avoid garbage comparison - BTAdapter::enableListening - loop through addMgmtEventCallback() result - JNI code - explicit size_type is cast to jsize or jint w/o check - unchanged semantics
* AttPDUMsg*, SMPPDUMsg*: Place check_range() to final type, avoid ↵Sven Gothel2022-11-272-108/+209
| | | | vtable-mess; Have all msg creation ctor check range.
* jaulib v0.18.0-43-gc472e59Sven Gothel2022-11-271-0/+0
|
* clang-tidy and vscode: Provision w/ initial config (tested by jaulib)Sven Gothel2022-11-2711-6/+979
|
* README.md: Fix 'Further Readings' listSven Gothel2022-11-031-6/+4
|
* README.md: Add 'Further Reading' sectionSven Gothel2022-11-031-0/+7
|
* Bump CHANGES w/ remark on tested platformsv2.9.0Sven Gothel2022-10-171-2/+9
|
* Bump jaulib v0.18.0Sven Gothel2022-10-171-0/+0
|
* PLATFORMS: Update Debian 12 version as of 2022-10-17Sven Gothel2022-10-171-4/+4
|
* BTAdapter.cpp: Workaround gcc 12.2.0-3 Debian 12 Bookworm 2022-10-17 false ↵Sven Gothel2022-10-171-1/+19
| | | | positive '-Werror=stringop-overflow=' using std::atomic_bool::load()
* Fix manual trial/test scripts using capsh: Use `USER` env-varSven Gothel2022-10-173-5/+5
|
* README/PLATFORMS: Add `Alpine Linux` using `musl` C library and mention ↵Sven Gothel2022-10-173-0/+31
| | | | FreeBSD status
* jaulib v0.16.3-1-g3eac600Sven Gothel2022-09-191-0/+0
|
* Bump CHANGES.mdv2.8.2Sven Gothel2022-09-171-1/+1
|
* scripts/run-native-trial.sh: Return proper exit code for ↵Sven Gothel2022-09-172-2/+49
| | | | | | | | | run-native-trial-until.sh (error), long term testing of one trial, triage Passed 20 rounds of debug code w/ valgrind using test_client_server10_NoEnc, after applying jaulib v0.16.2 - fix of jau::service_runner::start(). No leaks and no deadlocks or endless loops occured.
* jaulib v0.16.2Sven Gothel2022-09-171-0/+0
|
* jaulib v0.16.1Sven Gothel2022-09-171-0/+0
|
* Bump CHANGES.mdSven Gothel2022-09-161-0/+1
|
* Change all callback return type: dummy 'bool' -> 'void', now enabled by ↵Sven Gothel2022-09-1612-121/+86
| | | | jau::function<void(A...)>
* Adopt to jau::function<R(A...)> from jau::FunctionDef<>Sven Gothel2022-09-1617-102/+100
|
* jaulib v0.16.0Sven Gothel2022-09-161-0/+0
|
* Bump CHANGES.mdSven Gothel2022-09-151-1/+9
|
* Eclipse CDT setup: Add trial tests to include pathSven Gothel2022-09-151-4/+15
|
* Trial Unit Test: Add adapter reset test_client_server40_resetSven Gothel2022-09-158-4/+275
|
* Trial Unit Tests: Reorg and cleanup to be expanded (for reset test)Sven Gothel2022-09-1511-105/+145
| | | | | - When passing client and server in test8x_fullCycle() overload, expect them to be setup already. - client: KEEP_CONNECTED -> do_disconnect for clarity and along do_disconnect_randomly
* BTAdapter/HCIHandler::toString(): Show dev_id as 1st element w/o explicitly ↵Sven Gothel2022-09-152-4/+3
| | | | naming it.
* HCIHandler::resetAdapter(): Add optional HCIHandler::PostShutdownFunc ↵Sven Gothel2022-09-153-31/+68
| | | | | | | argument, allowing BTAdapter::reset() to wait until all devices are disconnected before powering-up again Waiting for all disconnections within reset after shutdown phase determines the state of all devices before powering up.
* BTAdapter: Align hasDevicesPausingDiscovery() -> ↵Sven Gothel2022-09-152-8/+8
| | | | getDevicesPausingDiscoveryCount() w/ getConnectedDeviceCount(), both return nsize_t
* BTAdapter::poweredOff(): Always use disconnectAllDevices() for proper device ↵Sven Gothel2022-09-151-6/+1
| | | | | | | | | pull-down to clear all its states instead of just deleting all refs if !active BTAdapter::poweredOff()'s active argument shall only impact issuing stopDiscoveryImpl(). Without disconnectAllDevices(), non removed devices will have states uncleared, e.g. isConnected, certain SMP states etc.
* BTAdapter::mgmtEvDeviceDisconnectedHCI(): printDeviceLists() in verbose mode ↵Sven Gothel2022-09-151-0/+3
| | | | if not connected
* BTAdapter::powerOff(): Add msg for debug tracingSven Gothel2022-09-152-14/+14
|
* direct_bt::to_string(<enum_type>): Remove NONE in bitfield enumerationsSven Gothel2022-09-153-10/+0
|
* HCIHandler::reset*(), [start|stop]Adapter(): Rewrap with DBG_PRINT() for tracingSven Gothel2022-09-151-28/+49
|
* HCIHandler: ERR_PRINT remove function header, ensure dev_id shownSven Gothel2022-09-151-56/+44
|
* HCIHandler: DBG_PRINT add function header w/ dev_id, WARN_PRINT remove ↵Sven Gothel2022-09-151-93/+94
| | | | function header, ensure dev_id shown
* jaulib v0.15.0-1-g990271aSven Gothel2022-09-141-0/+0
|
* BTAdapter: Use jau::service_runner to ensure singleton pattern on background ↵Sven Gothel2022-09-142-21/+25
| | | | | | discovery startDiscoveryBackground() -> discovery_service + discoveryServerWork()
* BTAdapter::removeDevicePausingDiscovery(): Drop 'off_thread' argument, ↵Sven Gothel2022-09-142-16/+9
| | | | always perform off thread BTAdapter::startDiscoveryBackground()
* jau::service_runner CB BTAdapter::l2capServer*(): Add 'noexcept'Sven Gothel2022-09-143-7/+7
|
* BTAdapter::mgmtEvDeviceDiscoveringAny(): Drop 'off_thread' argument, which ↵Sven Gothel2022-09-142-16/+12
| | | | | | is always used with value 'true' Hence BTAdapter::startDiscoveryBackground() is always started off-thread.
* BTAdapter::startDiscoveryBackground(): Fix retry==true endless thread: Set ↵Sven Gothel2022-09-141-1/+2
| | | | retry=false @ action block start, then determine retry or not
* Extracting CHANGES.mdv2.8.1Sven Gothel2022-09-102-221/+228
|
* jaulib v0.14.0-104-g78e2ed8Sven Gothel2022-09-071-0/+0
|
* jaulib v0.14.0-102-g43a5fb0Sven Gothel2022-09-061-0/+0
|
* jaulib v0.14.0-101-g093c9d2Sven Gothel2022-09-061-0/+0
|
* Add jaulib base_codec.cpp for file_util.cpp, i.e. encode() integer for copy dirsSven Gothel2022-09-061-0/+1
|
* jaulib v0.14.0-100-gec30a11Sven Gothel2022-09-061-0/+0
|
* jaulib v0.14.0-98-gfc1031dSven Gothel2022-09-061-0/+0
|
* jaulib v0.14.0-97-g8911c03Sven Gothel2022-09-031-0/+0
|
* jaulib v0.14.0-96-gc6629cdSven Gothel2022-09-031-0/+0
|