@ -50,47 +50,47 @@ void sha256_hash__free_unpacked
assert ( message - > base . descriptor = = & sha256_hash__descriptor ) ;
assert ( message - > base . descriptor = = & sha256_hash__descriptor ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
}
}
void rval __init
void preimage __init
( Rval * message )
( Preimage * message )
{
{
static Rval init_value = RVAL __INIT;
static Preimage init_value = PREIMAGE __INIT;
* message = init_value ;
* message = init_value ;
}
}
size_t rval __get_packed_size
size_t preimage __get_packed_size
( const Rval * message )
( const Preimage * message )
{
{
assert ( message - > base . descriptor = = & rval __descriptor) ;
assert ( message - > base . descriptor = = & preimage __descriptor) ;
return protobuf_c_message_get_packed_size ( ( const ProtobufCMessage * ) ( message ) ) ;
return protobuf_c_message_get_packed_size ( ( const ProtobufCMessage * ) ( message ) ) ;
}
}
size_t rval __pack
size_t preimage __pack
( const Rval * message ,
( const Preimage * message ,
uint8_t * out )
uint8_t * out )
{
{
assert ( message - > base . descriptor = = & rval __descriptor) ;
assert ( message - > base . descriptor = = & preimage __descriptor) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
}
}
size_t rval __pack_to_buffer
size_t preimage __pack_to_buffer
( const Rval * message ,
( const Preimage * message ,
ProtobufCBuffer * buffer )
ProtobufCBuffer * buffer )
{
{
assert ( message - > base . descriptor = = & rval __descriptor) ;
assert ( message - > base . descriptor = = & preimage __descriptor) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
}
}
Rval *
Preimage *
rval __unpack
preimage __unpack
( ProtobufCAllocator * allocator ,
( ProtobufCAllocator * allocator ,
size_t len ,
size_t len ,
const uint8_t * data )
const uint8_t * data )
{
{
return ( Rval * )
return ( Preimage * )
protobuf_c_message_unpack ( & rval __descriptor,
protobuf_c_message_unpack ( & preimage __descriptor,
allocator , len , data ) ;
allocator , len , data ) ;
}
}
void rval __free_unpacked
void preimage __free_unpacked
( Rval * message ,
( Preimage * message ,
ProtobufCAllocator * allocator )
ProtobufCAllocator * allocator )
{
{
assert ( message - > base . descriptor = = & rval __descriptor) ;
assert ( message - > base . descriptor = = & preimage __descriptor) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
}
}
void signature__init
void signature__init
@ -1288,7 +1288,7 @@ const ProtobufCMessageDescriptor sha256_hash__descriptor =
( ProtobufCMessageInit ) sha256_hash__init ,
( ProtobufCMessageInit ) sha256_hash__init ,
NULL , NULL , NULL /* reserved[123] */
NULL , NULL , NULL /* reserved[123] */
} ;
} ;
static const ProtobufCFieldDescriptor rval __field_descriptors[ 4 ] =
static const ProtobufCFieldDescriptor preimage __field_descriptors[ 4 ] =
{
{
{
{
" a " ,
" a " ,
@ -1296,7 +1296,7 @@ static const ProtobufCFieldDescriptor rval__field_descriptors[4] =
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_FIXED64 ,
PROTOBUF_C_TYPE_FIXED64 ,
0 , /* quantifier_offset */
0 , /* quantifier_offset */
offsetof ( Rval , a ) ,
offsetof ( Preimage , a ) ,
NULL ,
NULL ,
NULL ,
NULL ,
0 , /* flags */
0 , /* flags */
@ -1308,7 +1308,7 @@ static const ProtobufCFieldDescriptor rval__field_descriptors[4] =
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_FIXED64 ,
PROTOBUF_C_TYPE_FIXED64 ,
0 , /* quantifier_offset */
0 , /* quantifier_offset */
offsetof ( Rval , b ) ,
offsetof ( Preimage , b ) ,
NULL ,
NULL ,
NULL ,
NULL ,
0 , /* flags */
0 , /* flags */
@ -1320,7 +1320,7 @@ static const ProtobufCFieldDescriptor rval__field_descriptors[4] =
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_FIXED64 ,
PROTOBUF_C_TYPE_FIXED64 ,
0 , /* quantifier_offset */
0 , /* quantifier_offset */
offsetof ( Rval , c ) ,
offsetof ( Preimage , c ) ,
NULL ,
NULL ,
NULL ,
NULL ,
0 , /* flags */
0 , /* flags */
@ -1332,37 +1332,37 @@ static const ProtobufCFieldDescriptor rval__field_descriptors[4] =
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_FIXED64 ,
PROTOBUF_C_TYPE_FIXED64 ,
0 , /* quantifier_offset */
0 , /* quantifier_offset */
offsetof ( Rval , d ) ,
offsetof ( Preimage , d ) ,
NULL ,
NULL ,
NULL ,
NULL ,
0 , /* flags */
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ,
} ;
} ;
static const unsigned rval __field_indices_by_name[ ] = {
static const unsigned preimage __field_indices_by_name[ ] = {
0 , /* field[0] = a */
0 , /* field[0] = a */
1 , /* field[1] = b */
1 , /* field[1] = b */
2 , /* field[2] = c */
2 , /* field[2] = c */
3 , /* field[3] = d */
3 , /* field[3] = d */
} ;
} ;
static const ProtobufCIntRange rval __number_ranges[ 1 + 1 ] =
static const ProtobufCIntRange preimage __number_ranges[ 1 + 1 ] =
{
{
{ 1 , 0 } ,
{ 1 , 0 } ,
{ 0 , 4 }
{ 0 , 4 }
} ;
} ;
const ProtobufCMessageDescriptor rval __descriptor =
const ProtobufCMessageDescriptor preimage __descriptor =
{
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC ,
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC ,
" rval " ,
" preimage " ,
" Rval " ,
" Preimage " ,
" Rval " ,
" Preimage " ,
" " ,
" " ,
sizeof ( Rval ) ,
sizeof ( Preimage ) ,
4 ,
4 ,
rval __field_descriptors,
preimage __field_descriptors,
rval __field_indices_by_name,
preimage __field_indices_by_name,
1 , rval __number_ranges,
1 , preimage __number_ranges,
( ProtobufCMessageInit ) rval __init,
( ProtobufCMessageInit ) preimage __init,
NULL , NULL , NULL /* reserved[123] */
NULL , NULL , NULL /* reserved[123] */
} ;
} ;
static const ProtobufCFieldDescriptor signature__field_descriptors [ 8 ] =
static const ProtobufCFieldDescriptor signature__field_descriptors [ 8 ] =
@ -2288,7 +2288,7 @@ static const ProtobufCFieldDescriptor update_fulfill_htlc__field_descriptors[2]
PROTOBUF_C_TYPE_MESSAGE ,
PROTOBUF_C_TYPE_MESSAGE ,
0 , /* quantifier_offset */
0 , /* quantifier_offset */
offsetof ( UpdateFulfillHtlc , r ) ,
offsetof ( UpdateFulfillHtlc , r ) ,
& rval __descriptor,
& preimage __descriptor,
NULL ,
NULL ,
0 , /* flags */
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */