registry.h 634 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include "../types.h"
  3. /**
  4. * Registration by name SubGhzProtocol.
  5. * @param name Protocol name
  6. * @return SubGhzProtocol* pointer to a SubGhzProtocol instance
  7. */
  8. const SubGhzProtocol* subghz_protocol_registry_get_by_name(const char* name);
  9. /**
  10. * Registration protocol by index in array SubGhzProtocol.
  11. * @param index Protocol by index in array
  12. * @return SubGhzProtocol* pointer to a SubGhzProtocol instance
  13. */
  14. const SubGhzProtocol* subghz_protocol_registry_get_by_index(size_t index);
  15. /**
  16. * Getting the number of registered protocols.
  17. * @return Number of protocols
  18. */
  19. size_t subghz_protocol_registry_count();