#pragma once #include #include #include #include #include EXPORT_MODULE namespace hex { /** * Cross-instance messaging system * This allows you to send messages to the "main" instance of ImHex running, from any other instance */ namespace ImHexApi::Messaging { namespace impl { using MessagingHandler = std::function &)>; const std::map& getHandlers(); void runHandler(const std::string &eventName, const std::vector &args); } /** * @brief Register the handler for this specific event name */ void registerHandler(const std::string &eventName, const impl::MessagingHandler &handler); } }