2014-04-29 12:26:51 +00:00
|
|
|
/* Automatically generated nanopb constant definitions */
|
2015-01-26 13:02:14 +00:00
|
|
|
/* Generated by nanopb-0.2.9.2 */
|
2014-04-29 12:26:51 +00:00
|
|
|
|
|
|
|
#include "storage.pb.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-02-04 20:27:07 +00:00
|
|
|
const pb_field_t Storage_fields[11] = {
|
2014-12-27 13:32:25 +00:00
|
|
|
PB_FIELD2( 1, UINT32 , REQUIRED, STATIC , FIRST, Storage, version, version, 0),
|
|
|
|
PB_FIELD2( 2, MESSAGE , OPTIONAL, STATIC , OTHER, Storage, node, version, &HDNodeType_fields),
|
|
|
|
PB_FIELD2( 3, STRING , OPTIONAL, STATIC , OTHER, Storage, mnemonic, node, 0),
|
|
|
|
PB_FIELD2( 4, BOOL , OPTIONAL, STATIC , OTHER, Storage, passphrase_protection, mnemonic, 0),
|
|
|
|
PB_FIELD2( 5, UINT32 , OPTIONAL, STATIC , OTHER, Storage, pin_failed_attempts, passphrase_protection, 0),
|
|
|
|
PB_FIELD2( 6, STRING , OPTIONAL, STATIC , OTHER, Storage, pin, pin_failed_attempts, 0),
|
|
|
|
PB_FIELD2( 7, STRING , OPTIONAL, STATIC , OTHER, Storage, language, pin, 0),
|
|
|
|
PB_FIELD2( 8, STRING , OPTIONAL, STATIC , OTHER, Storage, label, language, 0),
|
|
|
|
PB_FIELD2( 9, BOOL , OPTIONAL, STATIC , OTHER, Storage, imported, label, 0),
|
2015-02-04 20:27:07 +00:00
|
|
|
PB_FIELD2( 10, BYTES , OPTIONAL, STATIC , OTHER, Storage, homescreen, imported, 0),
|
2014-04-29 12:26:51 +00:00
|
|
|
PB_LAST_FIELD
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* Check that field information fits in pb_field_t */
|
|
|
|
#if !defined(PB_FIELD_32BIT)
|
|
|
|
/* If you get an error here, it means that you need to define PB_FIELD_32BIT
|
|
|
|
* compile-time option. You can do that in pb.h or on compiler command line.
|
|
|
|
*
|
|
|
|
* The reason you need to do this is that some of your messages contain tag
|
|
|
|
* numbers or field sizes that are larger than what can fit in 8 or 16 bit
|
|
|
|
* field descriptors.
|
|
|
|
*/
|
2014-12-27 13:32:25 +00:00
|
|
|
STATIC_ASSERT((pb_membersize(Storage, node) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_Storage)
|
2014-04-29 12:26:51 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
|
2015-02-04 20:27:07 +00:00
|
|
|
#error Field descriptor for Storage.homescreen is too large. Define PB_FIELD_16BIT to fix this.
|
2014-04-29 12:26:51 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|