@ -437,90 +437,90 @@ void open_complete__free_unpacked
assert ( message - > base . descriptor = = & open_complete__descriptor ) ;
assert ( message - > base . descriptor = = & open_complete__descriptor ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
}
}
void update_add_htlc __init
void routing __init
( UpdateAddHtlc * message )
( Routing * message )
{
{
static UpdateAddHtlc init_value = UPDATE_ADD_HTLC __INIT;
static Routing init_value = ROUTING __INIT;
* message = init_value ;
* message = init_value ;
}
}
size_t update_add_htlc __get_packed_size
size_t routing __get_packed_size
( const UpdateAddHtlc * message )
( const Routing * message )
{
{
assert ( message - > base . descriptor = = & update_add_htlc __descriptor) ;
assert ( message - > base . descriptor = = & routing __descriptor) ;
return protobuf_c_message_get_packed_size ( ( const ProtobufCMessage * ) ( message ) ) ;
return protobuf_c_message_get_packed_size ( ( const ProtobufCMessage * ) ( message ) ) ;
}
}
size_t update_add_htlc __pack
size_t routing __pack
( const UpdateAddHtlc * message ,
( const Routing * message ,
uint8_t * out )
uint8_t * out )
{
{
assert ( message - > base . descriptor = = & update_add_htlc __descriptor) ;
assert ( message - > base . descriptor = = & routing __descriptor) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
}
}
size_t update_add_htlc __pack_to_buffer
size_t routing __pack_to_buffer
( const UpdateAddHtlc * message ,
( const Routing * message ,
ProtobufCBuffer * buffer )
ProtobufCBuffer * buffer )
{
{
assert ( message - > base . descriptor = = & update_add_htlc __descriptor) ;
assert ( message - > base . descriptor = = & routing __descriptor) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
}
}
UpdateAddHtlc *
Routing *
update_add_htlc __unpack
routing __unpack
( ProtobufCAllocator * allocator ,
( ProtobufCAllocator * allocator ,
size_t len ,
size_t len ,
const uint8_t * data )
const uint8_t * data )
{
{
return ( UpdateAddHtlc * )
return ( Routing * )
protobuf_c_message_unpack ( & update_add_htlc __descriptor,
protobuf_c_message_unpack ( & routing __descriptor,
allocator , len , data ) ;
allocator , len , data ) ;
}
}
void update_add_htlc __free_unpacked
void routing __free_unpacked
( UpdateAddHtlc * message ,
( Routing * message ,
ProtobufCAllocator * allocator )
ProtobufCAllocator * allocator )
{
{
assert ( message - > base . descriptor = = & update_add_htlc __descriptor) ;
assert ( message - > base . descriptor = = & routing __descriptor) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
}
}
void update_decline _htlc__init
void update_add _htlc__init
( UpdateDecline Htlc * message )
( UpdateAdd Htlc * message )
{
{
static UpdateDeclineHtlc init_value = UPDATE_DECLINE _HTLC__INIT ;
static UpdateAddHtlc init_value = UPDATE_ADD _HTLC__INIT ;
* message = init_value ;
* message = init_value ;
}
}
size_t update_decline _htlc__get_packed_size
size_t update_add _htlc__get_packed_size
( const UpdateDecline Htlc * message )
( const UpdateAdd Htlc * message )
{
{
assert ( message - > base . descriptor = = & update_decline _htlc__descriptor ) ;
assert ( message - > base . descriptor = = & update_add _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_decline _htlc__pack
size_t update_add _htlc__pack
( const UpdateDecline Htlc * message ,
( const UpdateAdd Htlc * message ,
uint8_t * out )
uint8_t * out )
{
{
assert ( message - > base . descriptor = = & update_decline _htlc__descriptor ) ;
assert ( message - > base . descriptor = = & update_add _htlc__descriptor ) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
}
}
size_t update_decline _htlc__pack_to_buffer
size_t update_add _htlc__pack_to_buffer
( const UpdateDecline Htlc * message ,
( const UpdateAdd Htlc * message ,
ProtobufCBuffer * buffer )
ProtobufCBuffer * buffer )
{
{
assert ( message - > base . descriptor = = & update_decline _htlc__descriptor ) ;
assert ( message - > base . descriptor = = & update_add _htlc__descriptor ) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
}
}
UpdateDecline Htlc *
UpdateAdd Htlc *
update_decline _htlc__unpack
update_add _htlc__unpack
( ProtobufCAllocator * allocator ,
( ProtobufCAllocator * allocator ,
size_t len ,
size_t len ,
const uint8_t * data )
const uint8_t * data )
{
{
return ( UpdateDecline Htlc * )
return ( UpdateAdd Htlc * )
protobuf_c_message_unpack ( & update_decline _htlc__descriptor ,
protobuf_c_message_unpack ( & update_add _htlc__descriptor ,
allocator , len , data ) ;
allocator , len , data ) ;
}
}
void update_decline _htlc__free_unpacked
void update_add _htlc__free_unpacked
( UpdateDecline Htlc * message ,
( UpdateAdd Htlc * message ,
ProtobufCAllocator * allocator )
ProtobufCAllocator * allocator )
{
{
assert ( message - > base . descriptor = = & update_decline _htlc__descriptor ) ;
assert ( message - > base . descriptor = = & update_add _htlc__descriptor ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
}
}
void update_fulfill_htlc__init
void update_fulfill_htlc__init
@ -566,176 +566,176 @@ void update_fulfill_htlc__free_unpacked
assert ( message - > base . descriptor = = & update_fulfill_htlc__descriptor ) ;
assert ( message - > base . descriptor = = & update_fulfill_htlc__descriptor ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
}
}
void update_fail_htlc __init
void fail_reason __init
( UpdateFailHtlc * message )
( FailReason * message )
{
{
static UpdateFailHtlc init_value = UPDATE_FAIL_HTLC __INIT;
static FailReason init_value = FAIL_REASON __INIT;
* message = init_value ;
* message = init_value ;
}
}
size_t update_fail_htlc __get_packed_size
size_t fail_reason __get_packed_size
( const UpdateFailHtlc * message )
( const FailReason * message )
{
{
assert ( message - > base . descriptor = = & update_fail_htlc __descriptor) ;
assert ( message - > base . descriptor = = & fail_reason __descriptor) ;
return protobuf_c_message_get_packed_size ( ( const ProtobufCMessage * ) ( message ) ) ;
return protobuf_c_message_get_packed_size ( ( const ProtobufCMessage * ) ( message ) ) ;
}
}
size_t update_fail_htlc __pack
size_t fail_reason __pack
( const UpdateFailHtlc * message ,
( const FailReason * message ,
uint8_t * out )
uint8_t * out )
{
{
assert ( message - > base . descriptor = = & update_fail_htlc __descriptor) ;
assert ( message - > base . descriptor = = & fail_reason __descriptor) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
}
}
size_t update_fail_htlc __pack_to_buffer
size_t fail_reason __pack_to_buffer
( const UpdateFailHtlc * message ,
( const FailReason * message ,
ProtobufCBuffer * buffer )
ProtobufCBuffer * buffer )
{
{
assert ( message - > base . descriptor = = & update_fail_htlc __descriptor) ;
assert ( message - > base . descriptor = = & fail_reason __descriptor) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
}
}
UpdateFailHtlc *
FailReason *
update_fail_htlc __unpack
fail_reason __unpack
( ProtobufCAllocator * allocator ,
( ProtobufCAllocator * allocator ,
size_t len ,
size_t len ,
const uint8_t * data )
const uint8_t * data )
{
{
return ( UpdateFailHtlc * )
return ( FailReason * )
protobuf_c_message_unpack ( & update_fail_htlc __descriptor,
protobuf_c_message_unpack ( & fail_reason __descriptor,
allocator , len , data ) ;
allocator , len , data ) ;
}
}
void update_fail_htlc __free_unpacked
void fail_reason __free_unpacked
( UpdateFailHtlc * message ,
( FailReason * message ,
ProtobufCAllocator * allocator )
ProtobufCAllocator * allocator )
{
{
assert ( message - > base . descriptor = = & update_fail_htlc __descriptor) ;
assert ( message - > base . descriptor = = & fail_reason __descriptor) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
}
}
void update_accept __init
void update_fail_htlc __init
( UpdateAccept * message )
( UpdateFailHtlc * message )
{
{
static UpdateAccept init_value = UPDATE_ACCEPT __INIT ;
static UpdateFailHtlc init_value = UPDATE_FAIL_HTLC __INIT ;
* message = init_value ;
* message = init_value ;
}
}
size_t update_accept __get_packed_size
size_t update_fail_htlc __get_packed_size
( const UpdateAccept * message )
( const UpdateFailHtlc * message )
{
{
assert ( message - > base . descriptor = = & update_accept __descriptor ) ;
assert ( message - > base . descriptor = = & update_fail_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_accept __pack
size_t update_fail_htlc __pack
( const UpdateAccept * message ,
( const UpdateFailHtlc * message ,
uint8_t * out )
uint8_t * out )
{
{
assert ( message - > base . descriptor = = & update_accept __descriptor ) ;
assert ( message - > base . descriptor = = & update_fail_htlc __descriptor ) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
}
}
size_t update_accept __pack_to_buffer
size_t update_fail_htlc __pack_to_buffer
( const UpdateAccept * message ,
( const UpdateFailHtlc * message ,
ProtobufCBuffer * buffer )
ProtobufCBuffer * buffer )
{
{
assert ( message - > base . descriptor = = & update_accept __descriptor ) ;
assert ( message - > base . descriptor = = & update_fail_htlc __descriptor ) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
}
}
UpdateAccept *
UpdateFailHtlc *
update_accept __unpack
update_fail_htlc __unpack
( ProtobufCAllocator * allocator ,
( ProtobufCAllocator * allocator ,
size_t len ,
size_t len ,
const uint8_t * data )
const uint8_t * data )
{
{
return ( UpdateAccept * )
return ( UpdateFailHtlc * )
protobuf_c_message_unpack ( & update_accept __descriptor ,
protobuf_c_message_unpack ( & update_fail_htlc __descriptor ,
allocator , len , data ) ;
allocator , len , data ) ;
}
}
void update_accept __free_unpacked
void update_fail_htlc __free_unpacked
( UpdateAccept * message ,
( UpdateFailHtlc * message ,
ProtobufCAllocator * allocator )
ProtobufCAllocator * allocator )
{
{
assert ( message - > base . descriptor = = & update_accept __descriptor ) ;
assert ( message - > base . descriptor = = & update_fail_htlc __descriptor ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
}
}
void update_signature __init
void update_commit __init
( UpdateSignature * message )
( UpdateCommit * message )
{
{
static UpdateSignature init_value = UPDATE_SIGNATURE __INIT ;
static UpdateCommit init_value = UPDATE_COMMIT __INIT ;
* message = init_value ;
* message = init_value ;
}
}
size_t update_signature __get_packed_size
size_t update_commit __get_packed_size
( const UpdateSignature * message )
( const UpdateCommit * message )
{
{
assert ( message - > base . descriptor = = & update_signature __descriptor ) ;
assert ( message - > base . descriptor = = & update_commit __descriptor ) ;
return protobuf_c_message_get_packed_size ( ( const ProtobufCMessage * ) ( message ) ) ;
return protobuf_c_message_get_packed_size ( ( const ProtobufCMessage * ) ( message ) ) ;
}
}
size_t update_signature __pack
size_t update_commit __pack
( const UpdateSignature * message ,
( const UpdateCommit * message ,
uint8_t * out )
uint8_t * out )
{
{
assert ( message - > base . descriptor = = & update_signature __descriptor ) ;
assert ( message - > base . descriptor = = & update_commit __descriptor ) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
}
}
size_t update_signature __pack_to_buffer
size_t update_commit __pack_to_buffer
( const UpdateSignature * message ,
( const UpdateCommit * message ,
ProtobufCBuffer * buffer )
ProtobufCBuffer * buffer )
{
{
assert ( message - > base . descriptor = = & update_signature __descriptor ) ;
assert ( message - > base . descriptor = = & update_commit __descriptor ) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
}
}
UpdateSignature *
UpdateCommit *
update_signature __unpack
update_commit __unpack
( ProtobufCAllocator * allocator ,
( ProtobufCAllocator * allocator ,
size_t len ,
size_t len ,
const uint8_t * data )
const uint8_t * data )
{
{
return ( UpdateSignature * )
return ( UpdateCommit * )
protobuf_c_message_unpack ( & update_signature __descriptor ,
protobuf_c_message_unpack ( & update_commit __descriptor ,
allocator , len , data ) ;
allocator , len , data ) ;
}
}
void update_signature __free_unpacked
void update_commit __free_unpacked
( UpdateSignature * message ,
( UpdateCommit * message ,
ProtobufCAllocator * allocator )
ProtobufCAllocator * allocator )
{
{
assert ( message - > base . descriptor = = & update_signature __descriptor ) ;
assert ( message - > base . descriptor = = & update_commit __descriptor ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
}
}
void update_complete __init
void update_revocation __init
( UpdateComplete * message )
( UpdateRevocation * message )
{
{
static UpdateComplete init_value = UPDATE_COMPLETE __INIT ;
static UpdateRevocation init_value = UPDATE_REVOCATION __INIT ;
* message = init_value ;
* message = init_value ;
}
}
size_t update_complete __get_packed_size
size_t update_revocation __get_packed_size
( const UpdateComplete * message )
( const UpdateRevocation * message )
{
{
assert ( message - > base . descriptor = = & update_complete __descriptor ) ;
assert ( message - > base . descriptor = = & update_revocation __descriptor ) ;
return protobuf_c_message_get_packed_size ( ( const ProtobufCMessage * ) ( message ) ) ;
return protobuf_c_message_get_packed_size ( ( const ProtobufCMessage * ) ( message ) ) ;
}
}
size_t update_complete __pack
size_t update_revocation __pack
( const UpdateComplete * message ,
( const UpdateRevocation * message ,
uint8_t * out )
uint8_t * out )
{
{
assert ( message - > base . descriptor = = & update_complete __descriptor ) ;
assert ( message - > base . descriptor = = & update_revocation __descriptor ) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
return protobuf_c_message_pack ( ( const ProtobufCMessage * ) message , out ) ;
}
}
size_t update_complete __pack_to_buffer
size_t update_revocation __pack_to_buffer
( const UpdateComplete * message ,
( const UpdateRevocation * message ,
ProtobufCBuffer * buffer )
ProtobufCBuffer * buffer )
{
{
assert ( message - > base . descriptor = = & update_complete __descriptor ) ;
assert ( message - > base . descriptor = = & update_revocation __descriptor ) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
return protobuf_c_message_pack_to_buffer ( ( const ProtobufCMessage * ) message , buffer ) ;
}
}
UpdateComplete *
UpdateRevocation *
update_complete __unpack
update_revocation __unpack
( ProtobufCAllocator * allocator ,
( ProtobufCAllocator * allocator ,
size_t len ,
size_t len ,
const uint8_t * data )
const uint8_t * data )
{
{
return ( UpdateComplete * )
return ( UpdateRevocation * )
protobuf_c_message_unpack ( & update_complete __descriptor ,
protobuf_c_message_unpack ( & update_revocation __descriptor ,
allocator , len , data ) ;
allocator , len , data ) ;
}
}
void update_complete __free_unpacked
void update_revocation __free_unpacked
( UpdateComplete * message ,
( UpdateRevocation * message ,
ProtobufCAllocator * allocator )
ProtobufCAllocator * allocator )
{
{
assert ( message - > base . descriptor = = & update_complete __descriptor ) ;
assert ( message - > base . descriptor = = & update_revocation __descriptor ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
protobuf_c_message_free_unpacked ( ( ProtobufCMessage * ) message , allocator ) ;
}
}
void close_clearing__init
void close_clearing__init
@ -1620,16 +1620,54 @@ const ProtobufCMessageDescriptor open_complete__descriptor =
( ProtobufCMessageInit ) open_complete__init ,
( ProtobufCMessageInit ) open_complete__init ,
NULL , NULL , NULL /* reserved[123] */
NULL , NULL , NULL /* reserved[123] */
} ;
} ;
static const ProtobufCFieldDescriptor update_add_htlc__field_descriptors [ 4 ] =
static const ProtobufCFieldDescriptor routing__field_descriptors [ 1 ] =
{
{
{
{
" revocat ion_hash " ,
" inf o " ,
1 ,
1 ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_MESSAGE ,
PROTOBUF_C_TYPE_BYTES ,
0 , /* quantifier_offset */
0 , /* quantifier_offset */
offsetof ( UpdateAddHtlc , revocation_hash ) ,
offsetof ( Routing , info ) ,
& sha256_hash__descriptor ,
NULL ,
NULL ,
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ;
static const unsigned routing__field_indices_by_name [ ] = {
0 , /* field[0] = info */
} ;
static const ProtobufCIntRange routing__number_ranges [ 1 + 1 ] =
{
{ 1 , 0 } ,
{ 0 , 1 }
} ;
const ProtobufCMessageDescriptor routing__descriptor =
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC ,
" routing " ,
" Routing " ,
" Routing " ,
" " ,
sizeof ( Routing ) ,
1 ,
routing__field_descriptors ,
routing__field_indices_by_name ,
1 , routing__number_ranges ,
( ProtobufCMessageInit ) routing__init ,
NULL , NULL , NULL /* reserved[123] */
} ;
static const ProtobufCFieldDescriptor update_add_htlc__field_descriptors [ 5 ] =
{
{
" id " ,
1 ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_UINT64 ,
0 , /* quantifier_offset */
offsetof ( UpdateAddHtlc , id ) ,
NULL ,
NULL ,
NULL ,
0 , /* flags */
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
@ -1670,17 +1708,30 @@ static const ProtobufCFieldDescriptor update_add_htlc__field_descriptors[4] =
0 , /* flags */
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ,
{
" route " ,
5 ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_MESSAGE ,
0 , /* quantifier_offset */
offsetof ( UpdateAddHtlc , route ) ,
& routing__descriptor ,
NULL ,
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ;
} ;
static const unsigned update_add_htlc__field_indices_by_name [ ] = {
static const unsigned update_add_htlc__field_indices_by_name [ ] = {
1 , /* field[1] = amount_msat */
1 , /* field[1] = amount_msat */
3 , /* field[3] = expiry */
3 , /* field[3] = expiry */
0 , /* field[0] = id */
2 , /* field[2] = r_hash */
2 , /* field[2] = r_hash */
0 , /* field[0] = revocation_hash */
4 , /* field[4] = route */
} ;
} ;
static const ProtobufCIntRange update_add_htlc__number_ranges [ 1 + 1 ] =
static const ProtobufCIntRange update_add_htlc__number_ranges [ 1 + 1 ] =
{
{
{ 1 , 0 } ,
{ 1 , 0 } ,
{ 0 , 4 }
{ 0 , 5 }
} ;
} ;
const ProtobufCMessageDescriptor update_add_htlc__descriptor =
const ProtobufCMessageDescriptor update_add_htlc__descriptor =
{
{
@ -1690,74 +1741,23 @@ const ProtobufCMessageDescriptor update_add_htlc__descriptor =
" UpdateAddHtlc " ,
" UpdateAddHtlc " ,
" " ,
" " ,
sizeof ( UpdateAddHtlc ) ,
sizeof ( UpdateAddHtlc ) ,
4 ,
5 ,
update_add_htlc__field_descriptors ,
update_add_htlc__field_descriptors ,
update_add_htlc__field_indices_by_name ,
update_add_htlc__field_indices_by_name ,
1 , update_add_htlc__number_ranges ,
1 , update_add_htlc__number_ranges ,
( ProtobufCMessageInit ) update_add_htlc__init ,
( ProtobufCMessageInit ) update_add_htlc__init ,
NULL , NULL , NULL /* reserved[123] */
NULL , NULL , NULL /* reserved[123] */
} ;
} ;
static const ProtobufCFieldDescriptor update_decline_htlc__field_descriptors [ 2 ] =
{
{
" insufficient_funds " ,
1 ,
PROTOBUF_C_LABEL_OPTIONAL ,
PROTOBUF_C_TYPE_MESSAGE ,
offsetof ( UpdateDeclineHtlc , reason_case ) ,
offsetof ( UpdateDeclineHtlc , insufficient_funds ) ,
& funding__descriptor ,
NULL ,
0 | PROTOBUF_C_FIELD_FLAG_ONEOF , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
{
" cannot_route " ,
2 ,
PROTOBUF_C_LABEL_OPTIONAL ,
PROTOBUF_C_TYPE_BOOL ,
offsetof ( UpdateDeclineHtlc , reason_case ) ,
offsetof ( UpdateDeclineHtlc , cannot_route ) ,
NULL ,
NULL ,
0 | PROTOBUF_C_FIELD_FLAG_ONEOF , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ;
static const unsigned update_decline_htlc__field_indices_by_name [ ] = {
1 , /* field[1] = cannot_route */
0 , /* field[0] = insufficient_funds */
} ;
static const ProtobufCIntRange update_decline_htlc__number_ranges [ 1 + 1 ] =
{
{ 1 , 0 } ,
{ 0 , 2 }
} ;
const ProtobufCMessageDescriptor update_decline_htlc__descriptor =
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC ,
" update_decline_htlc " ,
" UpdateDeclineHtlc " ,
" UpdateDeclineHtlc " ,
" " ,
sizeof ( UpdateDeclineHtlc ) ,
2 ,
update_decline_htlc__field_descriptors ,
update_decline_htlc__field_indices_by_name ,
1 , update_decline_htlc__number_ranges ,
( ProtobufCMessageInit ) update_decline_htlc__init ,
NULL , NULL , NULL /* reserved[123] */
} ;
static const ProtobufCFieldDescriptor update_fulfill_htlc__field_descriptors [ 2 ] =
static const ProtobufCFieldDescriptor update_fulfill_htlc__field_descriptors [ 2 ] =
{
{
{
{
" revocation_hash " ,
" id " ,
1 ,
1 ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_MESSAGE ,
PROTOBUF_C_TYPE_UINT64 ,
0 , /* quantifier_offset */
0 , /* quantifier_offset */
offsetof ( UpdateFulfillHtlc , revocation_hash ) ,
offsetof ( UpdateFulfillHtlc , id ) ,
& sha256_hash__descriptor ,
NULL ,
NULL ,
NULL ,
0 , /* flags */
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
@ -1776,8 +1776,8 @@ static const ProtobufCFieldDescriptor update_fulfill_htlc__field_descriptors[2]
} ,
} ,
} ;
} ;
static const unsigned update_fulfill_htlc__field_indices_by_name [ ] = {
static const unsigned update_fulfill_htlc__field_indices_by_name [ ] = {
0 , /* field[0] = id */
1 , /* field[1] = r */
1 , /* field[1] = r */
0 , /* field[0] = revocation_hash */
} ;
} ;
static const ProtobufCIntRange update_fulfill_htlc__number_ranges [ 1 + 1 ] =
static const ProtobufCIntRange update_fulfill_htlc__number_ranges [ 1 + 1 ] =
{
{
@ -1799,36 +1799,74 @@ const ProtobufCMessageDescriptor update_fulfill_htlc__descriptor =
( ProtobufCMessageInit ) update_fulfill_htlc__init ,
( ProtobufCMessageInit ) update_fulfill_htlc__init ,
NULL , NULL , NULL /* reserved[123] */
NULL , NULL , NULL /* reserved[123] */
} ;
} ;
static const ProtobufCFieldDescriptor fail_reason__field_descriptors [ 1 ] =
{
{
" info " ,
1 ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_BYTES ,
0 , /* quantifier_offset */
offsetof ( FailReason , info ) ,
NULL ,
NULL ,
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ;
static const unsigned fail_reason__field_indices_by_name [ ] = {
0 , /* field[0] = info */
} ;
static const ProtobufCIntRange fail_reason__number_ranges [ 1 + 1 ] =
{
{ 1 , 0 } ,
{ 0 , 1 }
} ;
const ProtobufCMessageDescriptor fail_reason__descriptor =
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC ,
" fail_reason " ,
" FailReason " ,
" FailReason " ,
" " ,
sizeof ( FailReason ) ,
1 ,
fail_reason__field_descriptors ,
fail_reason__field_indices_by_name ,
1 , fail_reason__number_ranges ,
( ProtobufCMessageInit ) fail_reason__init ,
NULL , NULL , NULL /* reserved[123] */
} ;
static const ProtobufCFieldDescriptor update_fail_htlc__field_descriptors [ 2 ] =
static const ProtobufCFieldDescriptor update_fail_htlc__field_descriptors [ 2 ] =
{
{
{
{
" revocation_hash " ,
" id " ,
1 ,
1 ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_MESSAGE ,
PROTOBUF_C_TYPE_UINT64 ,
0 , /* quantifier_offset */
0 , /* quantifier_offset */
offsetof ( UpdateFailHtlc , revocation_hash ) ,
offsetof ( UpdateFailHtlc , id ) ,
& sha256_hash__descriptor ,
NULL ,
NULL ,
NULL ,
0 , /* flags */
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ,
{
{
" r_hash " ,
" reason " ,
2 ,
2 ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_MESSAGE ,
PROTOBUF_C_TYPE_MESSAGE ,
0 , /* quantifier_offset */
0 , /* quantifier_offset */
offsetof ( UpdateFailHtlc , r_hash ) ,
offsetof ( UpdateFailHtlc , reason ) ,
& sha256_hash__descriptor ,
& fail_reason __descriptor,
NULL ,
NULL ,
0 , /* flags */
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ,
} ;
} ;
static const unsigned update_fail_htlc__field_indices_by_name [ ] = {
static const unsigned update_fail_htlc__field_indices_by_name [ ] = {
1 , /* field[1] = r_hash */
0 , /* field[0] = id */
0 , /* field[0] = revocation_hash */
1 , /* field[1] = reason */
} ;
} ;
static const ProtobufCIntRange update_fail_htlc__number_ranges [ 1 + 1 ] =
static const ProtobufCIntRange update_fail_htlc__number_ranges [ 1 + 1 ] =
{
{
@ -1850,7 +1888,7 @@ const ProtobufCMessageDescriptor update_fail_htlc__descriptor =
( ProtobufCMessageInit ) update_fail_htlc__init ,
( ProtobufCMessageInit ) update_fail_htlc__init ,
NULL , NULL , NULL /* reserved[123] */
NULL , NULL , NULL /* reserved[123] */
} ;
} ;
static const ProtobufCFieldDescriptor update_accept__field_descriptors [ 2 ] =
static const ProtobufCFieldDescriptor update_commit__field_descriptors [ 1 ] =
{
{
{
{
" sig " ,
" sig " ,
@ -1858,136 +1896,85 @@ static const ProtobufCFieldDescriptor update_accept__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 ( UpdateAccep t , sig ) ,
offsetof ( UpdateCommi t , sig ) ,
& signature__descriptor ,
& signature__descriptor ,
NULL ,
NULL ,
0 , /* flags */
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ,
{
" revocation_hash " ,
2 ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_MESSAGE ,
0 , /* quantifier_offset */
offsetof ( UpdateAccept , revocation_hash ) ,
& sha256_hash__descriptor ,
NULL ,
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ;
} ;
static const unsigned update_accept__field_indices_by_name [ ] = {
static const unsigned update_commit__field_indices_by_name [ ] = {
1 , /* field[1] = revocation_hash */
0 , /* field[0] = sig */
0 , /* field[0] = sig */
} ;
} ;
static const ProtobufCIntRange update_accep t__number_ranges [ 1 + 1 ] =
static const ProtobufCIntRange update_commit__number_ranges [ 1 + 1 ] =
{
{
{ 1 , 0 } ,
{ 1 , 0 } ,
{ 0 , 2 }
{ 0 , 1 }
} ;
} ;
const ProtobufCMessageDescriptor update_accep t__descriptor =
const ProtobufCMessageDescriptor update_commit__descriptor =
{
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC ,
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC ,
" update_accep t " ,
" update_commi t " ,
" UpdateAccep t " ,
" UpdateCommi t " ,
" UpdateAccep t " ,
" UpdateCommi t " ,
" " ,
" " ,
sizeof ( UpdateAccep t ) ,
sizeof ( UpdateCommi t ) ,
2 ,
1 ,
update_accep t__field_descriptors ,
update_commi t__field_descriptors ,
update_accep t__field_indices_by_name ,
update_commi t__field_indices_by_name ,
1 , update_accep t__number_ranges ,
1 , update_commi t__number_ranges ,
( ProtobufCMessageInit ) update_accep t__init ,
( ProtobufCMessageInit ) update_commi t__init ,
NULL , NULL , NULL /* reserved[123] */
NULL , NULL , NULL /* reserved[123] */
} ;
} ;
static const ProtobufCFieldDescriptor update_signature __field_descriptors [ 2 ] =
static const ProtobufCFieldDescriptor update_revocation __field_descriptors [ 2 ] =
{
{
{
{
" sig " ,
" revocation_preimage " ,
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 ( UpdateSignature , sig ) ,
offsetof ( UpdateRevocation , revocation_preimage ) ,
& signature __descriptor ,
& sha256_hash __descriptor ,
NULL ,
NULL ,
0 , /* flags */
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ,
{
{
" revocation_preimage " ,
" next_revocation_hash " ,
2 ,
2 ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_MESSAGE ,
PROTOBUF_C_TYPE_MESSAGE ,
0 , /* quantifier_offset */
0 , /* quantifier_offset */
offsetof ( UpdateSignature , revocation_preimage ) ,
offsetof ( UpdateRevocation , next_revocation_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_signature __field_indices_by_name [ ] = {
static const unsigned update_revocation __field_indices_by_name [ ] = {
1 , /* field[1] = revocation_preimage */
1 , /* field[1] = next_revocation_hash */
0 , /* field[0] = sig */
0 , /* field[0] = revocation_preimage */
} ;
} ;
static const ProtobufCIntRange update_signature __number_ranges [ 1 + 1 ] =
static const ProtobufCIntRange update_revocation __number_ranges [ 1 + 1 ] =
{
{
{ 1 , 0 } ,
{ 1 , 0 } ,
{ 0 , 2 }
{ 0 , 2 }
} ;
} ;
const ProtobufCMessageDescriptor update_signature __descriptor =
const ProtobufCMessageDescriptor update_revocation __descriptor =
{
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC ,
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC ,
" update_signature " ,
" update_revocation " ,
" UpdateSignature " ,
" UpdateRevocation " ,
" UpdateSignature " ,
" UpdateRevocation " ,
" " ,
" " ,
sizeof ( UpdateSignature ) ,
sizeof ( UpdateRevocation ) ,
2 ,
2 ,
update_signature__field_descriptors ,
update_revocation__field_descriptors ,
update_signature__field_indices_by_name ,
update_revocation__field_indices_by_name ,
1 , update_signature__number_ranges ,
1 , update_revocation__number_ranges ,
( ProtobufCMessageInit ) update_signature__init ,
( ProtobufCMessageInit ) update_revocation__init ,
NULL , NULL , NULL /* reserved[123] */
} ;
static const ProtobufCFieldDescriptor update_complete__field_descriptors [ 1 ] =
{
{
" revocation_preimage " ,
1 ,
PROTOBUF_C_LABEL_REQUIRED ,
PROTOBUF_C_TYPE_MESSAGE ,
0 , /* quantifier_offset */
offsetof ( UpdateComplete , revocation_preimage ) ,
& sha256_hash__descriptor ,
NULL ,
0 , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ;
static const unsigned update_complete__field_indices_by_name [ ] = {
0 , /* field[0] = revocation_preimage */
} ;
static const ProtobufCIntRange update_complete__number_ranges [ 1 + 1 ] =
{
{ 1 , 0 } ,
{ 0 , 1 }
} ;
const ProtobufCMessageDescriptor update_complete__descriptor =
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC ,
" update_complete " ,
" UpdateComplete " ,
" UpdateComplete " ,
" " ,
sizeof ( UpdateComplete ) ,
1 ,
update_complete__field_descriptors ,
update_complete__field_indices_by_name ,
1 , update_complete__number_ranges ,
( ProtobufCMessageInit ) update_complete__init ,
NULL , NULL , NULL /* reserved[123] */
NULL , NULL , NULL /* reserved[123] */
} ;
} ;
# define close_clearing__field_descriptors NULL
# define close_clearing__field_descriptors NULL
@ -2097,7 +2084,7 @@ const ProtobufCMessageDescriptor error__descriptor =
( ProtobufCMessageInit ) error__init ,
( ProtobufCMessageInit ) error__init ,
NULL , NULL , NULL /* reserved[123] */
NULL , NULL , NULL /* reserved[123] */
} ;
} ;
static const ProtobufCFieldDescriptor pkt__field_descriptors [ 15 ] =
static const ProtobufCFieldDescriptor pkt__field_descriptors [ 13 ] =
{
{
{
{
" update_add_htlc " ,
" update_add_htlc " ,
@ -2112,73 +2099,49 @@ static const ProtobufCFieldDescriptor pkt__field_descriptors[15] =
0 , NULL , NULL /* reserved1,reserved2, etc */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
} ,
{
{
" update_accept " ,
" update_fulfill_htlc " ,
3 ,
3 ,
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_accept ) ,
offsetof ( Pkt , update_fulfill_htlc ) ,
& update_accept __descriptor ,
& update_fulfill_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_signature " ,
" update_fail_htlc " ,
4 ,
4 ,
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_signature ) ,
offsetof ( Pkt , update_fail_htlc ) ,
& update_signature __descriptor ,
& update_fail_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_complete " ,
" update_commit " ,
5 ,
5 ,
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_complete ) ,
offsetof ( Pkt , update_commit ) ,
& update_complete __descriptor ,
& update_commit __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_revocation " ,
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_decline_htlc ) ,
offsetof ( Pkt , update_revocation ) ,
& update_decline_htlc__descriptor ,
& update_revocation__descriptor ,
NULL ,
0 | PROTOBUF_C_FIELD_FLAG_ONEOF , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
{
" update_fulfill_htlc " ,
7 ,
PROTOBUF_C_LABEL_OPTIONAL ,
PROTOBUF_C_TYPE_MESSAGE ,
offsetof ( Pkt , pkt_case ) ,
offsetof ( Pkt , update_fulfill_htlc ) ,
& update_fulfill_htlc__descriptor ,
NULL ,
0 | PROTOBUF_C_FIELD_FLAG_ONEOF , /* flags */
0 , NULL , NULL /* reserved1,reserved2, etc */
} ,
{
" update_fail_htlc " ,
9 ,
PROTOBUF_C_LABEL_OPTIONAL ,
PROTOBUF_C_TYPE_MESSAGE ,
offsetof ( Pkt , pkt_case ) ,
offsetof ( Pkt , update_fail_htlc ) ,
& update_fail_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 */
@ -2281,31 +2244,28 @@ static const ProtobufCFieldDescriptor pkt__field_descriptors[15] =
} ,
} ,
} ;
} ;
static const unsigned pkt__field_indices_by_name [ ] = {
static const unsigned pkt__field_indices_by_name [ ] = {
14 , /* field[14] = auth */
12 , /* field[12] = auth */
11 , /* field[11] = close_clearing */
9 , /* field[9] = close_clearing */
12 , /* field[12] = close_signature */
10 , /* field[10] = close_signature */
13 , /* field[13] = error */
11 , /* field[11] = error */
7 , /* field[7] = open */
5 , /* field[5] = open */
8 , /* field[8] = open_anchor */
6 , /* field[6] = open_anchor */
9 , /* field[9] = open_commit_sig */
7 , /* field[7] = open_commit_sig */
10 , /* field[10] = open_complete */
8 , /* field[8] = open_complete */
1 , /* field[1] = update_accept */
0 , /* field[0] = update_add_htlc */
0 , /* field[0] = update_add_htlc */
3 , /* field[3] = update_complete */
3 , /* field[3] = update_commit */
4 , /* field[4] = update_decline_htlc */
2 , /* field[2] = update_fail_htlc */
6 , /* field[6] = update_fail_htlc */
1 , /* field[1] = update_fulfill_htlc */
5 , /* field[5] = update_fulfill_htlc */
4 , /* field[4] = update_revocation */
2 , /* field[2] = update_signature */
} ;
} ;
static const ProtobufCIntRange pkt__number_ranges [ 6 + 1 ] =
static const ProtobufCIntRange pkt__number_ranges [ 5 + 1 ] =
{
{
{ 2 , 0 } ,
{ 2 , 0 } ,
{ 9 , 6 } ,
{ 20 , 5 } ,
{ 20 , 7 } ,
{ 30 , 9 } ,
{ 30 , 11 } ,
{ 40 , 11 } ,
{ 40 , 13 } ,
{ 50 , 12 } ,
{ 50 , 14 } ,
{ 0 , 13 }
{ 0 , 15 }
} ;
} ;
const ProtobufCMessageDescriptor pkt__descriptor =
const ProtobufCMessageDescriptor pkt__descriptor =
{
{
@ -2315,10 +2275,10 @@ const ProtobufCMessageDescriptor pkt__descriptor =
" Pkt " ,
" Pkt " ,
" " ,
" " ,
sizeof ( Pkt ) ,
sizeof ( Pkt ) ,
15 ,
13 ,
pkt__field_descriptors ,
pkt__field_descriptors ,
pkt__field_indices_by_name ,
pkt__field_indices_by_name ,
6 , pkt__number_ranges ,
5 , pkt__number_ranges ,
( ProtobufCMessageInit ) pkt__init ,
( ProtobufCMessageInit ) pkt__init ,
NULL , NULL , NULL /* reserved[123] */
NULL , NULL , NULL /* reserved[123] */
} ;
} ;