aboutsummaryrefslogtreecommitdiffstats
path: root/api/direct_bt/DBTManager.hpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-05-03 05:44:57 +0200
committerSven Gothel <[email protected]>2020-05-03 05:44:57 +0200
commit4125c66a021ee2a5f57bdbe9305d8e056516dd7d (patch)
tree8229f486b8a2b06c6037bcb6d7bbb831e3c20615 /api/direct_bt/DBTManager.hpp
parente9df1ba4b677766e6b56e611bbaa3efd394502a6 (diff)
ClassFunction -> FunctionDef generalization, adding plain function (non-class-member) support
To support on-the-fly lambda non-member functions for callbacks, we need to bind to same non-member plain functions. Hence rename ClassFunction -> FunctionDef and add PlainInvocationFunc for this purpose. Tested via C++ unit test test_basictypes01.cpp
Diffstat (limited to 'api/direct_bt/DBTManager.hpp')
-rw-r--r--api/direct_bt/DBTManager.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/direct_bt/DBTManager.hpp b/api/direct_bt/DBTManager.hpp
index 8b0ba483..9c933791 100644
--- a/api/direct_bt/DBTManager.hpp
+++ b/api/direct_bt/DBTManager.hpp
@@ -42,11 +42,11 @@
#include "JavaUplink.hpp"
#include "MgmtTypes.hpp"
#include "LFRingbuffer.hpp"
-#include "ClassFunction.hpp"
+#include "FunctionDef.hpp"
namespace direct_bt {
- typedef ClassFunction<bool, std::shared_ptr<MgmtEvent>> MgmtEventCallback;
+ typedef FunctionDef<bool, std::shared_ptr<MgmtEvent>> MgmtEventCallback;
class MgmtAdapterEventCallback {
private: