aboutsummaryrefslogtreecommitdiffstats
path: root/include/Handler.hpp
diff options
context:
space:
mode:
authorset <set>2020-08-28 15:10:57 +0200
committerset <set>2020-08-28 15:10:57 +0200
commit66fe7376737aac50bac4e080b6a71ecddfb553ad (patch)
tree2c62d5b078a43e3e9c1da81308c9dabbd7796bb9 /include/Handler.hpp
parentef986b137f2b5481d35a3b51cf79c4536e06dae8 (diff)
downloadn_core-66fe7376737aac50bac4e080b6a71ecddfb553ad.tar.gz
n_core-66fe7376737aac50bac4e080b6a71ecddfb553ad.zip
make description function pointer, so move should leave it be (hopefully)
Diffstat (limited to 'include/Handler.hpp')
-rw-r--r--include/Handler.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/Handler.hpp b/include/Handler.hpp
index 37f281c..1ae84d1 100644
--- a/include/Handler.hpp
+++ b/include/Handler.hpp
@@ -14,7 +14,7 @@ namespace Handler {
typedef std::function<std::vector<json>()> description_function;
struct CommandHandler {
- CommandHandler(std::string command, handler_function func, description_function desc, void *payload = nullptr);
+ CommandHandler(std::string command, handler_function *func, description_function *desc, void *payload = nullptr);
CommandHandler(CommandHandler &&o) noexcept {
command = std::move(o.command);
@@ -26,10 +26,10 @@ namespace Handler {
[[nodiscard]] json exec(std::string const &arguments, std::string const &session) const;
std::string command;
- handler_function func{nullptr};
- description_function get_description{nullptr};
+ handler_function *func{nullptr};
+ description_function *get_description{nullptr};
void *payload{nullptr};
};
std::vector<std::string> tokenizeArguments(std::string const &arguments, std::string const &delimiter = " ");
-} \ No newline at end of file
+}