unleashed-firmware/lib/lfrfid/lfrfid_dict_file.h
hedger ffa3996a5e
[FL-3867] Code formatting update (#3765)
* clang-format: AllowShortEnumsOnASingleLine: false
* clang-format: InsertNewlineAtEOF: true
* clang-format: Standard:        c++20
* clang-format: AlignConsecutiveBitFields
* clang-format: AlignConsecutiveMacros
* clang-format: RemoveParentheses: ReturnStatement
* clang-format: RemoveSemicolon: true
* Restored RemoveParentheses: Leave, retained general changes for it
* formatting: fixed logging TAGs
* Formatting update for dev

Co-authored-by: あく <alleteam@gmail.com>
2024-07-15 13:38:49 +09:00

31 lines
606 B
C

#pragma once
#include <toolbox/protocols/protocol_dict.h>
#include "protocols/lfrfid_protocols.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Save protocol from dictionary to file
*
* @param dict
* @param protocol
* @param filename
* @return true
* @return false
*/
bool lfrfid_dict_file_save(ProtocolDict* dict, ProtocolId protocol, const char* filename);
/**
* @brief Load protocol from file to dictionary
*
* @param dict
* @param filename
* @return ProtocolId
*/
ProtocolId lfrfid_dict_file_load(ProtocolDict* dict, const char* filename);
#ifdef __cplusplus
}
#endif