app_api_table.cpp 675 B

12345678910111213141516171819
  1. #include <flipper_application/api_hashtable/api_hashtable.h>
  2. #include <flipper_application/api_hashtable/compilesort.hpp>
  3. #include "app_api_interface.h"
  4. #include "app_api_table_i.h"
  5. static_assert(!has_hash_collisions(app_api_table), "Detected API method hash collision!");
  6. constexpr HashtableApiInterface applicaton_hashtable_api_interface{
  7. {
  8. .api_version_major = 0,
  9. .api_version_minor = 0,
  10. .resolver_callback = &elf_resolve_from_hashtable,
  11. },
  12. .table_cbegin = app_api_table.cbegin(),
  13. .table_cend = app_api_table.cend(),
  14. };
  15. extern "C" const ElfApiInterface* const application_api_interface =
  16. &applicaton_hashtable_api_interface;