subghz_keystore.h 583 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <m-string.h>
  3. #include <m-array.h>
  4. #include <stdint.h>
  5. typedef struct {
  6. string_t name;
  7. uint64_t key;
  8. uint16_t type;
  9. } SubGhzKey;
  10. ARRAY_DEF(SubGhzKeyArray, SubGhzKey, M_POD_OPLIST)
  11. #define M_OPL_SubGhzKeyArray_t() ARRAY_OPLIST(SubGhzKeyArray, M_POD_OPLIST)
  12. typedef struct SubGhzKeystore SubGhzKeystore;
  13. SubGhzKeystore* subghz_keystore_alloc();
  14. void subghz_keystore_free(SubGhzKeystore* instance);
  15. void subghz_keystore_load(SubGhzKeystore* instance, const char* filename);
  16. SubGhzKeyArray_t* subghz_keystore_get_data(SubGhzKeystore* instance);