| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #pragma once
- #include <m-string.h>
- #include <m-array.h>
- #include <stdint.h>
- typedef struct {
- string_t name;
- uint64_t key;
- uint16_t type;
- } SubGhzKey;
- ARRAY_DEF(SubGhzKeyArray, SubGhzKey, M_POD_OPLIST)
- #define M_OPL_SubGhzKeyArray_t() ARRAY_OPLIST(SubGhzKeyArray, M_POD_OPLIST)
- typedef struct SubGhzKeystore SubGhzKeystore;
- /** Allocate SubGhzKeystore
- *
- * @return SubGhzKeystore*
- */
- SubGhzKeystore* subghz_keystore_alloc();
- /** Free SubGhzKeystore
- *
- * @param instance
- */
- void subghz_keystore_free(SubGhzKeystore* instance);
- /** Loading manufacture key from file
- *
- * @param instance - SubGhzKeystore instance
- * @param filename - const char* full path to the file
- */
- void subghz_keystore_load(SubGhzKeystore* instance, const char* filename);
- /** Get array of keys and names manufacture
- *
- * @param instance - SubGhzKeystore instance
- * @return SubGhzKeyArray_t*
- */
- SubGhzKeyArray_t* subghz_keystore_get_data(SubGhzKeystore* instance);
|