diff --git a/src/common/lookups/RadioIdLookup.h b/src/common/lookups/RadioIdLookup.h index 54afb475..51c42ce0 100644 --- a/src/common/lookups/RadioIdLookup.h +++ b/src/common/lookups/RadioIdLookup.h @@ -175,6 +175,17 @@ namespace lookups * @param id Unique ID to erase. */ void eraseEntry(uint32_t id); + + /** + * @brief Helper to return the lookup table. + * @returns std::unordered_map Table. + */ + std::unordered_map table() override + { + std::lock_guard lock(s_mutex); + return m_table; + } + /** * @brief Finds a table entry in this lookup table. * @param id Unique identifier for table entry.