@ -566,90 +566,90 @@ void update_complete_htlc__free_unpacked
assert ( message - > base . descriptor = = & update_complete_htlc__descriptor ) ;
assert ( message - > base . descriptor = = & update_complete_htlc__descriptor ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
}
}
void update_remove _htlc__init
void update_timedout _htlc__init
( UpdateRemove Htlc * message )
( UpdateTimedout Htlc * message )
{
{
static UpdateRemoveHtlc init_value = UPDATE_REMOVE _HTLC__INIT ;
static UpdateTimedoutHtlc init_value = UPDATE_TIMEDOUT _HTLC__INIT ;
* message = init_value ;
* message = init_value ;
}
}
size_t update_remove _htlc__get_packed_size
size_t update_timedout _htlc__get_packed_size
( const UpdateRemove Htlc * message )
( const UpdateTimedout Htlc * message )
{
{
assert ( message - > base . descriptor = = & update_remove _htlc__descriptor ) ;
assert ( message - > base . descriptor = = & update_timedout _htlc__descriptor ) ;
return protobuf_c_message_get_packed_size ( ( const ProtobufCMessage * ) ( message ) ) ;
return protobuf_c_message_get_packed_size ( ( const ProtobufCMessage * ) ( message ) ) ;
}
}
size_t update_remove _htlc__pack
size_t update_timedout _htlc__pack
( const UpdateRemove Htlc * message ,
( const UpdateTimedout Htlc * message ,
uint8_t * out )
uint8_t * out )
{
{
assert ( message - > base . descriptor = = & update_remove _htlc__descriptor ) ;
assert ( message - > base . descriptor = = & update_timedout _htlc__descriptor ) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
}
}
size_t update_remove _htlc__pack_to_buffer
size_t update_timedout _htlc__pack_to_buffer
( const UpdateRemove Htlc * message ,
( const UpdateTimedout Htlc * message ,
ProtobufCBuffer * buffer )
ProtobufCBuffer * buffer )
{
{
assert ( message - > base . descriptor = = & update_remove _htlc__descriptor ) ;
assert ( message - > base . descriptor = = & update_timedout _htlc__descriptor ) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
}
}
UpdateRemove Htlc *
UpdateTimedout Htlc *
update_remove _htlc__unpack
update_timedout _htlc__unpack
( ProtobufCAllocator * allocator ,
( ProtobufCAllocator * allocator ,
size_t len ,
size_t len ,
const uint8_t * data )
const uint8_t * data )
{
{
return ( UpdateRemove Htlc * )
return ( UpdateTimedout Htlc * )
protobuf_c_message_unpack ( & update_remove _htlc__descriptor ,
protobuf_c_message_unpack ( & update_timedout _htlc__descriptor ,
allocator , len , data ) ;
allocator , len , data ) ;
}
}
void update_remove _htlc__free_unpacked
void update_timedout _htlc__free_unpacked
( UpdateRemove Htlc * message ,
( UpdateTimedout Htlc * message ,
ProtobufCAllocator * allocator )
ProtobufCAllocator * allocator )
{
{
assert ( message - > base . descriptor = = & update_remove _htlc__descriptor ) ;
assert ( message - > base . descriptor = = & update_timedout _htlc__descriptor ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
}
}
void update_remove_htlc_delay __init
void update_routefail_htlc __init
( UpdateRemoveHtlcDelay * message )
( UpdateRoutefailHtlc * message )
{
{
static UpdateRemoveHtlcDelay init_value = UPDATE_REMOVE_HTLC_DELAY __INIT ;
static UpdateRoutefailHtlc init_value = UPDATE_ROUTEFAIL_HTLC __INIT ;
* message = init_value ;
* message = init_value ;
}
}
size_t update_remove_htlc_delay __get_packed_size
size_t update_routefail_htlc __get_packed_size
( const UpdateRemoveHtlcDelay * message )
( const UpdateRoutefailHtlc * message )
{
{
assert ( message - > base . descriptor = = & update_remove_htlc_delay __descriptor ) ;
assert ( message - > base . descriptor = = & update_routefail_htlc __descriptor ) ;
return protobuf_c_message_get_packed_size ( ( const ProtobufCMessage * ) ( message ) ) ;
return protobuf_c_message_get_packed_size ( ( const ProtobufCMessage * ) ( message ) ) ;
}
}
size_t update_remove_htlc_delay __pack
size_t update_routefail_htlc __pack
( const UpdateRemoveHtlcDelay * message ,
( const UpdateRoutefailHtlc * message ,
uint8_t * out )
uint8_t * out )
{
{
assert ( message - > base . descriptor = = & update_remove_htlc_delay __descriptor ) ;
assert ( message - > base . descriptor = = & update_routefail_htlc __descriptor ) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
}
}
size_t update_remove_htlc_delay __pack_to_buffer
size_t update_routefail_htlc __pack_to_buffer
( const UpdateRemoveHtlcDelay * message ,
( const UpdateRoutefailHtlc * message ,
ProtobufCBuffer * buffer )
ProtobufCBuffer * buffer )
{
{
assert ( message - > base . descriptor = = & update_remove_htlc_delay __descriptor ) ;
assert ( message - > base . descriptor = = & update_routefail_htlc __descriptor ) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
}
}
UpdateRemoveHtlcDelay *
UpdateRoutefailHtlc *
update_remove_htlc_delay __unpack
update_routefail_htlc __unpack
( ProtobufCAllocator * allocator ,
( ProtobufCAllocator * allocator ,
size_t len ,
size_t len ,
const uint8_t * data )
const uint8_t * data )
{
{
return ( UpdateRemoveHtlcDelay * )
return ( UpdateRoutefailHtlc * )
protobuf_c_message_unpack ( & update_remove_htlc_delay __descriptor ,
protobuf_c_message_unpack ( & update_routefail_htlc __descriptor ,
allocator , len , data ) ;
allocator , len , data ) ;
}
}
void update_remove_htlc_delay __free_unpacked
void update_routefail_htlc __free_unpacked
( UpdateRemoveHtlcDelay * message ,
( UpdateRoutefailHtlc * message ,
ProtobufCAllocator * allocator )
ProtobufCAllocator * allocator )
{
{
assert ( message - > base . descriptor = = & update_remove_htlc_delay __descriptor ) ;
assert ( message - > base . descriptor = = & update_routefail_htlc __descriptor ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
}
}
void update_accept__init
void update_accept__init
@ -1831,7 +1831,7 @@ const ProtobufCMessageDescriptor update_complete_htlc__descriptor =
( ProtobufCMessageInit ) update_complete_htlc__init ,
( ProtobufCMessageInit ) update_complete_htlc__init ,
NULL , NULL , NULL /* reserved[123] */
NULL , NULL , NULL /* reserved[123] */
} ;
} ;
static const ProtobufCFieldDescriptor update_remove _htlc__field_descriptors [ 2 ] =
static const ProtobufCFieldDescriptor update_timedout _htlc__field_descriptors [ 2 ] =
{
{
{
{
" revocation_hash " ,
" revocation_hash " ,
@ -1839,7 +1839,7 @@ static const ProtobufCFieldDescriptor update_remove_htlc__field_descriptors[2] =
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_MESSAGE ,
PROTOBUF_C_TYPE_MESSAGE ,
0 , /* quantifier_offset */
0 , /* quantifier_offset */
offsetof ( UpdateRemove Htlc , revocation_hash ) ,
offsetof ( UpdateTimedout Htlc , revocation_hash ) ,
& sha256_hash__descriptor ,
& sha256_hash__descriptor ,
NULL ,
NULL ,
0 , /* flags */
0 , /* flags */
@ -1851,74 +1851,88 @@ static const ProtobufCFieldDescriptor update_remove_htlc__field_descriptors[2] =
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_MESSAGE ,
PROTOBUF_C_TYPE_MESSAGE ,
0 , /* quantifier_offset */
0 , /* quantifier_offset */
offsetof ( UpdateRemove Htlc , r_hash ) ,
offsetof ( UpdateTimedout Htlc , r_hash ) ,
& sha256_hash__descriptor ,
& sha256_hash__descriptor ,
NULL ,
NULL ,
0 , /* flags */
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ,
} ;
} ;
static const unsigned update_remove _htlc__field_indices_by_name [ ] = {
static const unsigned update_timedout _htlc__field_indices_by_name [ ] = {
1 , /* field[1] = r_hash */
1 , /* field[1] = r_hash */
0 , /* field[0] = revocation_hash */
0 , /* field[0] = revocation_hash */
} ;
} ;
static const ProtobufCIntRange update_remove _htlc__number_ranges [ 2 + 1 ] =
static const ProtobufCIntRange update_timedout _htlc__number_ranges [ 2 + 1 ] =
{
{
{ 1 , 0 } ,
{ 1 , 0 } ,
{ 3 , 1 } ,
{ 3 , 1 } ,
{ 0 , 2 }
{ 0 , 2 }
} ;
} ;
const ProtobufCMessageDescriptor update_remove _htlc__descriptor =
const ProtobufCMessageDescriptor update_timedout _htlc__descriptor =
{
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC ,
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC ,
" update_remove _htlc " ,
" update_timedout _htlc " ,
" UpdateRemove Htlc " ,
" UpdateTimedout Htlc " ,
" UpdateRemove Htlc " ,
" UpdateTimedout Htlc " ,
" " ,
" " ,
sizeof ( UpdateRemove Htlc ) ,
sizeof ( UpdateTimedout Htlc ) ,
2 ,
2 ,
update_remove _htlc__field_descriptors ,
update_timedout _htlc__field_descriptors ,
update_remove _htlc__field_indices_by_name ,
update_timedout _htlc__field_indices_by_name ,
2 , update_remove _htlc__number_ranges ,
2 , update_timedout _htlc__number_ranges ,
( ProtobufCMessageInit ) update_remove _htlc__init ,
( ProtobufCMessageInit ) update_timedout _htlc__init ,
NULL , NULL , NULL /* reserved[123] */
NULL , NULL , NULL /* reserved[123] */
} ;
} ;
static const ProtobufCFieldDescriptor update_remove_htlc_delay__field_descriptors [ 1 ] =
static const ProtobufCFieldDescriptor update_routefail_htlc__field_descriptors [ 2 ] =
{
{
{
{
" r_hash " ,
" revocation _hash " ,
1 ,
1 ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_MESSAGE ,
PROTOBUF_C_TYPE_MESSAGE ,
0 , /* quantifier_offset */
0 , /* quantifier_offset */
offsetof ( UpdateRemoveHtlcDelay , r_hash ) ,
offsetof ( UpdateRoutefailHtlc , revocation_hash ) ,
& sha256_hash__descriptor ,
NULL ,
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
{
" r_hash " ,
3 ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_MESSAGE ,
0 , /* quantifier_offset */
offsetof ( UpdateRoutefailHtlc , r_hash ) ,
& sha256_hash__descriptor ,
& sha256_hash__descriptor ,
NULL ,
NULL ,
0 , /* flags */
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ,
} ;
} ;
static const unsigned update_remove_htlc_delay__field_indices_by_name [ ] = {
static const unsigned update_routefail_htlc__field_indices_by_name [ ] = {
0 , /* field[0] = r_hash */
1 , /* field[1] = r_hash */
0 , /* field[0] = revocation_hash */
} ;
} ;
static const ProtobufCIntRange update_remove_htlc_delay__number_ranges [ 1 + 1 ] =
static const ProtobufCIntRange update_routefail_htlc__number_ranges [ 2 + 1 ] =
{
{
{ 1 , 0 } ,
{ 1 , 0 } ,
{ 0 , 1 }
{ 3 , 1 } ,
{ 0 , 2 }
} ;
} ;
const ProtobufCMessageDescriptor update_remove_htlc_delay __descriptor =
const ProtobufCMessageDescriptor update_routefail_htlc __descriptor =
{
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC ,
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC ,
" update_remove_htlc_delay " ,
" update_routefail_htlc " ,
" UpdateRemoveHtlcDelay " ,
" UpdateRoutefailHtlc " ,
" UpdateRemoveHtlcDelay " ,
" UpdateRoutefailHtlc " ,
" " ,
" " ,
sizeof ( UpdateRemoveHtlcDelay ) ,
sizeof ( UpdateRoutefailHtlc ) ,
1 ,
2 ,
update_remove_htlc_delay __field_descriptors ,
update_routefail_htlc __field_descriptors ,
update_remove_htlc_delay __field_indices_by_name ,
update_routefail_htlc __field_indices_by_name ,
1 , update_remove_htlc_delay __number_ranges,
2 , update_routefail_htlc __number_ranges,
( ProtobufCMessageInit ) update_remove_htlc_delay __init ,
( ProtobufCMessageInit ) update_routefail_htlc __init ,
NULL , NULL , NULL /* reserved[123] */
NULL , NULL , NULL /* reserved[123] */
} ;
} ;
static const ProtobufCFieldDescriptor update_accept__field_descriptors [ 2 ] =
static const ProtobufCFieldDescriptor update_accept__field_descriptors [ 2 ] =
@ -2252,49 +2266,49 @@ static const ProtobufCFieldDescriptor pkt__field_descriptors[16] =
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ,
{
{
" update_complet e_htlc " ,
" update_declin e_htlc " ,
6 ,
6 ,
PROTOBUF_C_LABEL_OPTIONAL ,
PROTOBUF_C_LABEL_OPTIONAL ,
PROTOBUF_C_TYPE_MESSAGE ,
PROTOBUF_C_TYPE_MESSAGE ,
offsetof ( Pkt , pkt_case ) ,
offsetof ( Pkt , pkt_case ) ,
offsetof ( Pkt , update_complet e_htlc ) ,
offsetof ( Pkt , update_declin e_htlc ) ,
& update_complet e_htlc__descriptor ,
& update_declin e_htlc__descriptor ,
NULL ,
NULL ,
0 | PROTOBUF_C_FIELD_FLAG_ONEOF , /* flags */
0 | PROTOBUF_C_FIELD_FLAG_ONEOF , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ,
{
{
" update_remov e_htlc " ,
" update_complet e_htlc " ,
7 ,
7 ,
PROTOBUF_C_LABEL_OPTIONAL ,
PROTOBUF_C_LABEL_OPTIONAL ,
PROTOBUF_C_TYPE_MESSAGE ,
PROTOBUF_C_TYPE_MESSAGE ,
offsetof ( Pkt , pkt_case ) ,
offsetof ( Pkt , pkt_case ) ,
offsetof ( Pkt , update_remov e_htlc ) ,
offsetof ( Pkt , update_complet e_htlc ) ,
& update_remov e_htlc__descriptor ,
& update_complet e_htlc__descriptor ,
NULL ,
NULL ,
0 | PROTOBUF_C_FIELD_FLAG_ONEOF , /* flags */
0 | PROTOBUF_C_FIELD_FLAG_ONEOF , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ,
{
{
" update_remove_htlc_delay " ,
" update_timedout_htlc " ,
8 ,
8 ,
PROTOBUF_C_LABEL_OPTIONAL ,
PROTOBUF_C_LABEL_OPTIONAL ,
PROTOBUF_C_TYPE_MESSAGE ,
PROTOBUF_C_TYPE_MESSAGE ,
offsetof ( Pkt , pkt_case ) ,
offsetof ( Pkt , pkt_case ) ,
offsetof ( Pkt , update_remove_htlc_delay ) ,
offsetof ( Pkt , update_timedout_htlc ) ,
& update_remove_htlc_delay __descriptor ,
& update_timedout_htlc __descriptor ,
NULL ,
NULL ,
0 | PROTOBUF_C_FIELD_FLAG_ONEOF , /* flags */
0 | PROTOBUF_C_FIELD_FLAG_ONEOF , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ,
{
{
" update_decline _htlc " ,
" update_routefail _htlc " ,
9 ,
9 ,
PROTOBUF_C_LABEL_OPTIONAL ,
PROTOBUF_C_LABEL_OPTIONAL ,
PROTOBUF_C_TYPE_MESSAGE ,
PROTOBUF_C_TYPE_MESSAGE ,
offsetof ( Pkt , pkt_case ) ,
offsetof ( Pkt , pkt_case ) ,
offsetof ( Pkt , update_decline _htlc ) ,
offsetof ( Pkt , update_routefail _htlc ) ,
& update_decline _htlc__descriptor ,
& update_routefail _htlc__descriptor ,
NULL ,
NULL ,
0 | PROTOBUF_C_FIELD_FLAG_ONEOF , /* flags */
0 | PROTOBUF_C_FIELD_FLAG_ONEOF , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
@ -2396,11 +2410,11 @@ static const unsigned pkt__field_indices_by_name[] = {
2 , /* field[2] = update_accept */
2 , /* field[2] = update_accept */
1 , /* field[1] = update_add_htlc */
1 , /* field[1] = update_add_htlc */
4 , /* field[4] = update_complete */
4 , /* field[4] = update_complete */
5 , /* field[5] = update_complete_htlc */
6 , /* field[6] = update_complete_htlc */
8 , /* field[8] = update_decline_htlc */
5 , /* field[5] = update_decline_htlc */
6 , /* field[6] = update_remove_htlc */
8 , /* field[8] = update_routefail_htlc */
7 , /* field[7] = update_remove_htlc_delay */
3 , /* field[3] = update_signature */
3 , /* field[3] = update_signature */
7 , /* field[7] = update_timedout_htlc */
} ;
} ;
static const ProtobufCIntRange pkt__number_ranges [ 4 + 1 ] =
static const ProtobufCIntRange pkt__number_ranges [ 4 + 1 ] =
{
{