mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-13 17:05:37 -04:00
Hide MessageHandlerMap.
Definitely didn't belong in message.hpp, saw no reason to expose it outside translation unit (.cpp file).
This commit is contained in:
parent
f731366248
commit
6bd191349a
4 changed files with 41 additions and 40 deletions
|
@ -80,16 +80,13 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
static MessageHandlerMap& message_map() {
|
||||
return message_map_;
|
||||
}
|
||||
static void send_message(Message* const message);
|
||||
|
||||
private:
|
||||
static constexpr auto EVT_MASK_RTC_TICK = EVENT_MASK(0);
|
||||
static constexpr auto EVT_MASK_LCD_FRAME_SYNC = EVENT_MASK(1);
|
||||
static constexpr auto EVT_MASK_APPLICATION = EVENT_MASK(6);
|
||||
|
||||
static MessageHandlerMap message_map_;
|
||||
static Thread* thread_event_loop;
|
||||
|
||||
touch::Manager touch_manager;
|
||||
|
@ -128,7 +125,7 @@ class MessageHandlerRegistration {
|
|||
public:
|
||||
MessageHandlerRegistration(
|
||||
const Message::ID message_id,
|
||||
MessageHandlerMap::MessageHandler&& callback
|
||||
std::function<void(Message* const p)>&& callback
|
||||
);
|
||||
|
||||
~MessageHandlerRegistration();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue