15 lines
377 B
C++
15 lines
377 B
C++
#pragma once
|
|
#include <cstdint>
|
|
#include <span>
|
|
#include <vector>
|
|
#include "w6300.h"
|
|
|
|
struct handler_entry {
|
|
int8_t type_id;
|
|
std::vector<std::vector<uint8_t>> (*handle)(uint32_t message_id);
|
|
};
|
|
|
|
void dispatch_init();
|
|
[[noreturn]] void dispatch_run(std::span<const handler_entry> handlers,
|
|
std::span<const w6300::socket_id> sockets = {});
|