From 7e4a19bd71aa38cb6b2e6be544638dbacc29985f Mon Sep 17 00:00:00 2001 From: Ronald Schaten Date: Sun, 10 Apr 2016 00:34:59 +0200 Subject: [PATCH] replaced function pointer with function object --- src/Homie/Datatypes/Callbacks.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Homie/Datatypes/Callbacks.hpp b/src/Homie/Datatypes/Callbacks.hpp index e81b7d8c..f3c6b9b5 100644 --- a/src/Homie/Datatypes/Callbacks.hpp +++ b/src/Homie/Datatypes/Callbacks.hpp @@ -1,13 +1,14 @@ #pragma once #include "../../HomieEvent.h" +#include namespace HomieInternals { typedef void (*OperationFunction)(); typedef bool (*GlobalInputHandler)(String nodeId, String property, String value); typedef bool (*NodeInputHandler)(String property, String value); - typedef bool (*PropertyInputHandler)(String value); + typedef std::function PropertyInputHandler; typedef void (*EventHandler)(HomieEvent event);