You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2545 lines
74 KiB
2545 lines
74 KiB
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
|
|
/* Generated from: lightning.proto */
|
|
|
|
/* Do not generate deprecated warnings for self */
|
|
#ifndef PROTOBUF_C__NO_DEPRECATED
|
|
#define PROTOBUF_C__NO_DEPRECATED
|
|
#endif
|
|
|
|
#include "lightning.pb-c.h"
|
|
void sha256_hash__init
|
|
(Sha256Hash *message)
|
|
{
|
|
static Sha256Hash init_value = SHA256_HASH__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t sha256_hash__get_packed_size
|
|
(const Sha256Hash *message)
|
|
{
|
|
assert(message->base.descriptor == &sha256_hash__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t sha256_hash__pack
|
|
(const Sha256Hash *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &sha256_hash__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t sha256_hash__pack_to_buffer
|
|
(const Sha256Hash *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &sha256_hash__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
Sha256Hash *
|
|
sha256_hash__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (Sha256Hash *)
|
|
protobuf_c_message_unpack (&sha256_hash__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void sha256_hash__free_unpacked
|
|
(Sha256Hash *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &sha256_hash__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void signature__init
|
|
(Signature *message)
|
|
{
|
|
static Signature init_value = SIGNATURE__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t signature__get_packed_size
|
|
(const Signature *message)
|
|
{
|
|
assert(message->base.descriptor == &signature__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t signature__pack
|
|
(const Signature *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &signature__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t signature__pack_to_buffer
|
|
(const Signature *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &signature__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
Signature *
|
|
signature__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (Signature *)
|
|
protobuf_c_message_unpack (&signature__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void signature__free_unpacked
|
|
(Signature *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &signature__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void bitcoin_input__init
|
|
(BitcoinInput *message)
|
|
{
|
|
static BitcoinInput init_value = BITCOIN_INPUT__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t bitcoin_input__get_packed_size
|
|
(const BitcoinInput *message)
|
|
{
|
|
assert(message->base.descriptor == &bitcoin_input__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t bitcoin_input__pack
|
|
(const BitcoinInput *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &bitcoin_input__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t bitcoin_input__pack_to_buffer
|
|
(const BitcoinInput *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &bitcoin_input__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
BitcoinInput *
|
|
bitcoin_input__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (BitcoinInput *)
|
|
protobuf_c_message_unpack (&bitcoin_input__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void bitcoin_input__free_unpacked
|
|
(BitcoinInput *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &bitcoin_input__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void bitcoin_pubkey__init
|
|
(BitcoinPubkey *message)
|
|
{
|
|
static BitcoinPubkey init_value = BITCOIN_PUBKEY__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t bitcoin_pubkey__get_packed_size
|
|
(const BitcoinPubkey *message)
|
|
{
|
|
assert(message->base.descriptor == &bitcoin_pubkey__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t bitcoin_pubkey__pack
|
|
(const BitcoinPubkey *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &bitcoin_pubkey__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t bitcoin_pubkey__pack_to_buffer
|
|
(const BitcoinPubkey *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &bitcoin_pubkey__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
BitcoinPubkey *
|
|
bitcoin_pubkey__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (BitcoinPubkey *)
|
|
protobuf_c_message_unpack (&bitcoin_pubkey__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void bitcoin_pubkey__free_unpacked
|
|
(BitcoinPubkey *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &bitcoin_pubkey__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void change__init
|
|
(Change *message)
|
|
{
|
|
static Change init_value = CHANGE__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t change__get_packed_size
|
|
(const Change *message)
|
|
{
|
|
assert(message->base.descriptor == &change__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t change__pack
|
|
(const Change *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &change__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t change__pack_to_buffer
|
|
(const Change *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &change__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
Change *
|
|
change__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (Change *)
|
|
protobuf_c_message_unpack (&change__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void change__free_unpacked
|
|
(Change *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &change__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void anchor__init
|
|
(Anchor *message)
|
|
{
|
|
static Anchor init_value = ANCHOR__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t anchor__get_packed_size
|
|
(const Anchor *message)
|
|
{
|
|
assert(message->base.descriptor == &anchor__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t anchor__pack
|
|
(const Anchor *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &anchor__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t anchor__pack_to_buffer
|
|
(const Anchor *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &anchor__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
Anchor *
|
|
anchor__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (Anchor *)
|
|
protobuf_c_message_unpack (&anchor__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void anchor__free_unpacked
|
|
(Anchor *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &anchor__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void open_channel__init
|
|
(OpenChannel *message)
|
|
{
|
|
static OpenChannel init_value = OPEN_CHANNEL__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t open_channel__get_packed_size
|
|
(const OpenChannel *message)
|
|
{
|
|
assert(message->base.descriptor == &open_channel__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t open_channel__pack
|
|
(const OpenChannel *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &open_channel__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t open_channel__pack_to_buffer
|
|
(const OpenChannel *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &open_channel__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
OpenChannel *
|
|
open_channel__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (OpenChannel *)
|
|
protobuf_c_message_unpack (&open_channel__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void open_channel__free_unpacked
|
|
(OpenChannel *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &open_channel__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void open_commit_sig__init
|
|
(OpenCommitSig *message)
|
|
{
|
|
static OpenCommitSig init_value = OPEN_COMMIT_SIG__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t open_commit_sig__get_packed_size
|
|
(const OpenCommitSig *message)
|
|
{
|
|
assert(message->base.descriptor == &open_commit_sig__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t open_commit_sig__pack
|
|
(const OpenCommitSig *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &open_commit_sig__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t open_commit_sig__pack_to_buffer
|
|
(const OpenCommitSig *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &open_commit_sig__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
OpenCommitSig *
|
|
open_commit_sig__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (OpenCommitSig *)
|
|
protobuf_c_message_unpack (&open_commit_sig__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void open_commit_sig__free_unpacked
|
|
(OpenCommitSig *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &open_commit_sig__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void open_anchor_scriptsigs__init
|
|
(OpenAnchorScriptsigs *message)
|
|
{
|
|
static OpenAnchorScriptsigs init_value = OPEN_ANCHOR_SCRIPTSIGS__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t open_anchor_scriptsigs__get_packed_size
|
|
(const OpenAnchorScriptsigs *message)
|
|
{
|
|
assert(message->base.descriptor == &open_anchor_scriptsigs__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t open_anchor_scriptsigs__pack
|
|
(const OpenAnchorScriptsigs *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &open_anchor_scriptsigs__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t open_anchor_scriptsigs__pack_to_buffer
|
|
(const OpenAnchorScriptsigs *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &open_anchor_scriptsigs__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
OpenAnchorScriptsigs *
|
|
open_anchor_scriptsigs__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (OpenAnchorScriptsigs *)
|
|
protobuf_c_message_unpack (&open_anchor_scriptsigs__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void open_anchor_scriptsigs__free_unpacked
|
|
(OpenAnchorScriptsigs *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &open_anchor_scriptsigs__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void leak_anchor_sigs_and_pretend_we_didnt__init
|
|
(LeakAnchorSigsAndPretendWeDidnt *message)
|
|
{
|
|
static LeakAnchorSigsAndPretendWeDidnt init_value = LEAK_ANCHOR_SIGS_AND_PRETEND_WE_DIDNT__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t leak_anchor_sigs_and_pretend_we_didnt__get_packed_size
|
|
(const LeakAnchorSigsAndPretendWeDidnt *message)
|
|
{
|
|
assert(message->base.descriptor == &leak_anchor_sigs_and_pretend_we_didnt__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t leak_anchor_sigs_and_pretend_we_didnt__pack
|
|
(const LeakAnchorSigsAndPretendWeDidnt *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &leak_anchor_sigs_and_pretend_we_didnt__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t leak_anchor_sigs_and_pretend_we_didnt__pack_to_buffer
|
|
(const LeakAnchorSigsAndPretendWeDidnt *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &leak_anchor_sigs_and_pretend_we_didnt__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
LeakAnchorSigsAndPretendWeDidnt *
|
|
leak_anchor_sigs_and_pretend_we_didnt__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (LeakAnchorSigsAndPretendWeDidnt *)
|
|
protobuf_c_message_unpack (&leak_anchor_sigs_and_pretend_we_didnt__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void leak_anchor_sigs_and_pretend_we_didnt__free_unpacked
|
|
(LeakAnchorSigsAndPretendWeDidnt *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &leak_anchor_sigs_and_pretend_we_didnt__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void open_complete__init
|
|
(OpenComplete *message)
|
|
{
|
|
static OpenComplete init_value = OPEN_COMPLETE__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t open_complete__get_packed_size
|
|
(const OpenComplete *message)
|
|
{
|
|
assert(message->base.descriptor == &open_complete__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t open_complete__pack
|
|
(const OpenComplete *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &open_complete__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t open_complete__pack_to_buffer
|
|
(const OpenComplete *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &open_complete__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
OpenComplete *
|
|
open_complete__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (OpenComplete *)
|
|
protobuf_c_message_unpack (&open_complete__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void open_complete__free_unpacked
|
|
(OpenComplete *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &open_complete__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void update__init
|
|
(Update *message)
|
|
{
|
|
static Update init_value = UPDATE__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t update__get_packed_size
|
|
(const Update *message)
|
|
{
|
|
assert(message->base.descriptor == &update__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t update__pack
|
|
(const Update *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &update__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t update__pack_to_buffer
|
|
(const Update *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &update__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
Update *
|
|
update__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (Update *)
|
|
protobuf_c_message_unpack (&update__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void update__free_unpacked
|
|
(Update *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &update__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void update_accept__init
|
|
(UpdateAccept *message)
|
|
{
|
|
static UpdateAccept init_value = UPDATE_ACCEPT__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t update_accept__get_packed_size
|
|
(const UpdateAccept *message)
|
|
{
|
|
assert(message->base.descriptor == &update_accept__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t update_accept__pack
|
|
(const UpdateAccept *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &update_accept__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t update_accept__pack_to_buffer
|
|
(const UpdateAccept *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &update_accept__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
UpdateAccept *
|
|
update_accept__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (UpdateAccept *)
|
|
protobuf_c_message_unpack (&update_accept__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void update_accept__free_unpacked
|
|
(UpdateAccept *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &update_accept__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void update_signature__init
|
|
(UpdateSignature *message)
|
|
{
|
|
static UpdateSignature init_value = UPDATE_SIGNATURE__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t update_signature__get_packed_size
|
|
(const UpdateSignature *message)
|
|
{
|
|
assert(message->base.descriptor == &update_signature__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t update_signature__pack
|
|
(const UpdateSignature *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &update_signature__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t update_signature__pack_to_buffer
|
|
(const UpdateSignature *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &update_signature__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
UpdateSignature *
|
|
update_signature__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (UpdateSignature *)
|
|
protobuf_c_message_unpack (&update_signature__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void update_signature__free_unpacked
|
|
(UpdateSignature *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &update_signature__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void update_complete__init
|
|
(UpdateComplete *message)
|
|
{
|
|
static UpdateComplete init_value = UPDATE_COMPLETE__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t update_complete__get_packed_size
|
|
(const UpdateComplete *message)
|
|
{
|
|
assert(message->base.descriptor == &update_complete__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t update_complete__pack
|
|
(const UpdateComplete *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &update_complete__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t update_complete__pack_to_buffer
|
|
(const UpdateComplete *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &update_complete__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
UpdateComplete *
|
|
update_complete__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (UpdateComplete *)
|
|
protobuf_c_message_unpack (&update_complete__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void update_complete__free_unpacked
|
|
(UpdateComplete *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &update_complete__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void new_anchor__init
|
|
(NewAnchor *message)
|
|
{
|
|
static NewAnchor init_value = NEW_ANCHOR__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t new_anchor__get_packed_size
|
|
(const NewAnchor *message)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t new_anchor__pack
|
|
(const NewAnchor *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t new_anchor__pack_to_buffer
|
|
(const NewAnchor *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
NewAnchor *
|
|
new_anchor__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (NewAnchor *)
|
|
protobuf_c_message_unpack (&new_anchor__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void new_anchor__free_unpacked
|
|
(NewAnchor *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void new_anchor_ack__init
|
|
(NewAnchorAck *message)
|
|
{
|
|
static NewAnchorAck init_value = NEW_ANCHOR_ACK__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t new_anchor_ack__get_packed_size
|
|
(const NewAnchorAck *message)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_ack__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t new_anchor_ack__pack
|
|
(const NewAnchorAck *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_ack__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t new_anchor_ack__pack_to_buffer
|
|
(const NewAnchorAck *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_ack__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
NewAnchorAck *
|
|
new_anchor_ack__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (NewAnchorAck *)
|
|
protobuf_c_message_unpack (&new_anchor_ack__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void new_anchor_ack__free_unpacked
|
|
(NewAnchorAck *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_ack__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void new_anchor_commit_sig__init
|
|
(NewAnchorCommitSig *message)
|
|
{
|
|
static NewAnchorCommitSig init_value = NEW_ANCHOR_COMMIT_SIG__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t new_anchor_commit_sig__get_packed_size
|
|
(const NewAnchorCommitSig *message)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_commit_sig__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t new_anchor_commit_sig__pack
|
|
(const NewAnchorCommitSig *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_commit_sig__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t new_anchor_commit_sig__pack_to_buffer
|
|
(const NewAnchorCommitSig *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_commit_sig__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
NewAnchorCommitSig *
|
|
new_anchor_commit_sig__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (NewAnchorCommitSig *)
|
|
protobuf_c_message_unpack (&new_anchor_commit_sig__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void new_anchor_commit_sig__free_unpacked
|
|
(NewAnchorCommitSig *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_commit_sig__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void new_anchor_accept__init
|
|
(NewAnchorAccept *message)
|
|
{
|
|
static NewAnchorAccept init_value = NEW_ANCHOR_ACCEPT__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t new_anchor_accept__get_packed_size
|
|
(const NewAnchorAccept *message)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_accept__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t new_anchor_accept__pack
|
|
(const NewAnchorAccept *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_accept__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t new_anchor_accept__pack_to_buffer
|
|
(const NewAnchorAccept *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_accept__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
NewAnchorAccept *
|
|
new_anchor_accept__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (NewAnchorAccept *)
|
|
protobuf_c_message_unpack (&new_anchor_accept__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void new_anchor_accept__free_unpacked
|
|
(NewAnchorAccept *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_accept__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void new_anchor_complete__init
|
|
(NewAnchorComplete *message)
|
|
{
|
|
static NewAnchorComplete init_value = NEW_ANCHOR_COMPLETE__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t new_anchor_complete__get_packed_size
|
|
(const NewAnchorComplete *message)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_complete__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t new_anchor_complete__pack
|
|
(const NewAnchorComplete *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_complete__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t new_anchor_complete__pack_to_buffer
|
|
(const NewAnchorComplete *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_complete__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
NewAnchorComplete *
|
|
new_anchor_complete__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (NewAnchorComplete *)
|
|
protobuf_c_message_unpack (&new_anchor_complete__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void new_anchor_complete__free_unpacked
|
|
(NewAnchorComplete *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &new_anchor_complete__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void close_channel__init
|
|
(CloseChannel *message)
|
|
{
|
|
static CloseChannel init_value = CLOSE_CHANNEL__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t close_channel__get_packed_size
|
|
(const CloseChannel *message)
|
|
{
|
|
assert(message->base.descriptor == &close_channel__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t close_channel__pack
|
|
(const CloseChannel *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &close_channel__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t close_channel__pack_to_buffer
|
|
(const CloseChannel *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &close_channel__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
CloseChannel *
|
|
close_channel__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (CloseChannel *)
|
|
protobuf_c_message_unpack (&close_channel__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void close_channel__free_unpacked
|
|
(CloseChannel *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &close_channel__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void close_channel_complete__init
|
|
(CloseChannelComplete *message)
|
|
{
|
|
static CloseChannelComplete init_value = CLOSE_CHANNEL_COMPLETE__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t close_channel_complete__get_packed_size
|
|
(const CloseChannelComplete *message)
|
|
{
|
|
assert(message->base.descriptor == &close_channel_complete__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t close_channel_complete__pack
|
|
(const CloseChannelComplete *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &close_channel_complete__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t close_channel_complete__pack_to_buffer
|
|
(const CloseChannelComplete *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &close_channel_complete__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
CloseChannelComplete *
|
|
close_channel_complete__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (CloseChannelComplete *)
|
|
protobuf_c_message_unpack (&close_channel_complete__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void close_channel_complete__free_unpacked
|
|
(CloseChannelComplete *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &close_channel_complete__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void error__init
|
|
(Error *message)
|
|
{
|
|
static Error init_value = ERROR__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t error__get_packed_size
|
|
(const Error *message)
|
|
{
|
|
assert(message->base.descriptor == &error__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t error__pack
|
|
(const Error *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &error__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t error__pack_to_buffer
|
|
(const Error *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &error__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
Error *
|
|
error__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (Error *)
|
|
protobuf_c_message_unpack (&error__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void error__free_unpacked
|
|
(Error *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &error__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void pkt__init
|
|
(Pkt *message)
|
|
{
|
|
static Pkt init_value = PKT__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t pkt__get_packed_size
|
|
(const Pkt *message)
|
|
{
|
|
assert(message->base.descriptor == &pkt__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t pkt__pack
|
|
(const Pkt *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &pkt__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t pkt__pack_to_buffer
|
|
(const Pkt *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &pkt__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
Pkt *
|
|
pkt__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (Pkt *)
|
|
protobuf_c_message_unpack (&pkt__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void pkt__free_unpacked
|
|
(Pkt *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
assert(message->base.descriptor == &pkt__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
static const ProtobufCFieldDescriptor sha256_hash__field_descriptors[4] =
|
|
{
|
|
{
|
|
"a",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_FIXED64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Sha256Hash, a),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"b",
|
|
2,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_FIXED64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Sha256Hash, b),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"c",
|
|
3,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_FIXED64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Sha256Hash, c),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"d",
|
|
4,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_FIXED64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Sha256Hash, d),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned sha256_hash__field_indices_by_name[] = {
|
|
0, /* field[0] = a */
|
|
1, /* field[1] = b */
|
|
2, /* field[2] = c */
|
|
3, /* field[3] = d */
|
|
};
|
|
static const ProtobufCIntRange sha256_hash__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 4 }
|
|
};
|
|
const ProtobufCMessageDescriptor sha256_hash__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"sha256_hash",
|
|
"Sha256Hash",
|
|
"Sha256Hash",
|
|
"",
|
|
sizeof(Sha256Hash),
|
|
4,
|
|
sha256_hash__field_descriptors,
|
|
sha256_hash__field_indices_by_name,
|
|
1, sha256_hash__number_ranges,
|
|
(ProtobufCMessageInit) sha256_hash__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor signature__field_descriptors[8] =
|
|
{
|
|
{
|
|
"r1",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_FIXED64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Signature, r1),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"r2",
|
|
2,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_FIXED64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Signature, r2),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"r3",
|
|
3,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_FIXED64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Signature, r3),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"r4",
|
|
4,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_FIXED64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Signature, r4),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"s1",
|
|
5,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_FIXED64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Signature, s1),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"s2",
|
|
6,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_FIXED64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Signature, s2),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"s3",
|
|
7,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_FIXED64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Signature, s3),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"s4",
|
|
8,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_FIXED64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Signature, s4),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned signature__field_indices_by_name[] = {
|
|
0, /* field[0] = r1 */
|
|
1, /* field[1] = r2 */
|
|
2, /* field[2] = r3 */
|
|
3, /* field[3] = r4 */
|
|
4, /* field[4] = s1 */
|
|
5, /* field[5] = s2 */
|
|
6, /* field[6] = s3 */
|
|
7, /* field[7] = s4 */
|
|
};
|
|
static const ProtobufCIntRange signature__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 8 }
|
|
};
|
|
const ProtobufCMessageDescriptor signature__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"signature",
|
|
"Signature",
|
|
"Signature",
|
|
"",
|
|
sizeof(Signature),
|
|
8,
|
|
signature__field_descriptors,
|
|
signature__field_indices_by_name,
|
|
1, signature__number_ranges,
|
|
(ProtobufCMessageInit) signature__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor bitcoin_input__field_descriptors[4] =
|
|
{
|
|
{
|
|
"txid",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(BitcoinInput, txid),
|
|
&sha256_hash__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"output",
|
|
2,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_UINT32,
|
|
0, /* quantifier_offset */
|
|
offsetof(BitcoinInput, output),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"subscript",
|
|
3,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_BYTES,
|
|
0, /* quantifier_offset */
|
|
offsetof(BitcoinInput, subscript),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"amount",
|
|
4,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_UINT64,
|
|
0, /* quantifier_offset */
|
|
offsetof(BitcoinInput, amount),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned bitcoin_input__field_indices_by_name[] = {
|
|
3, /* field[3] = amount */
|
|
1, /* field[1] = output */
|
|
2, /* field[2] = subscript */
|
|
0, /* field[0] = txid */
|
|
};
|
|
static const ProtobufCIntRange bitcoin_input__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 4 }
|
|
};
|
|
const ProtobufCMessageDescriptor bitcoin_input__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"bitcoin_input",
|
|
"BitcoinInput",
|
|
"BitcoinInput",
|
|
"",
|
|
sizeof(BitcoinInput),
|
|
4,
|
|
bitcoin_input__field_descriptors,
|
|
bitcoin_input__field_indices_by_name,
|
|
1, bitcoin_input__number_ranges,
|
|
(ProtobufCMessageInit) bitcoin_input__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor bitcoin_pubkey__field_descriptors[1] =
|
|
{
|
|
{
|
|
"key",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_BYTES,
|
|
0, /* quantifier_offset */
|
|
offsetof(BitcoinPubkey, key),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned bitcoin_pubkey__field_indices_by_name[] = {
|
|
0, /* field[0] = key */
|
|
};
|
|
static const ProtobufCIntRange bitcoin_pubkey__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor bitcoin_pubkey__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"bitcoin_pubkey",
|
|
"BitcoinPubkey",
|
|
"BitcoinPubkey",
|
|
"",
|
|
sizeof(BitcoinPubkey),
|
|
1,
|
|
bitcoin_pubkey__field_descriptors,
|
|
bitcoin_pubkey__field_indices_by_name,
|
|
1, bitcoin_pubkey__number_ranges,
|
|
(ProtobufCMessageInit) bitcoin_pubkey__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor change__field_descriptors[2] =
|
|
{
|
|
{
|
|
"amount",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_UINT64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Change, amount),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"pubkey",
|
|
2,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(Change, pubkey),
|
|
&bitcoin_pubkey__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned change__field_indices_by_name[] = {
|
|
0, /* field[0] = amount */
|
|
1, /* field[1] = pubkey */
|
|
};
|
|
static const ProtobufCIntRange change__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 2 }
|
|
};
|
|
const ProtobufCMessageDescriptor change__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"change",
|
|
"Change",
|
|
"Change",
|
|
"",
|
|
sizeof(Change),
|
|
2,
|
|
change__field_descriptors,
|
|
change__field_indices_by_name,
|
|
1, change__number_ranges,
|
|
(ProtobufCMessageInit) change__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor anchor__field_descriptors[6] =
|
|
{
|
|
{
|
|
"inputs",
|
|
1,
|
|
PROTOBUF_C_LABEL_REPEATED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Anchor, n_inputs),
|
|
offsetof(Anchor, inputs),
|
|
&bitcoin_input__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"change",
|
|
2,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(Anchor, change),
|
|
&change__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"total",
|
|
4,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_UINT64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Anchor, total),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"pubkey",
|
|
5,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(Anchor, pubkey),
|
|
&bitcoin_pubkey__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"fee",
|
|
8,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_UINT64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Anchor, fee),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"min_confirms",
|
|
10,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_UINT32,
|
|
0, /* quantifier_offset */
|
|
offsetof(Anchor, min_confirms),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned anchor__field_indices_by_name[] = {
|
|
1, /* field[1] = change */
|
|
4, /* field[4] = fee */
|
|
0, /* field[0] = inputs */
|
|
5, /* field[5] = min_confirms */
|
|
3, /* field[3] = pubkey */
|
|
2, /* field[2] = total */
|
|
};
|
|
static const ProtobufCIntRange anchor__number_ranges[4 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 4, 2 },
|
|
{ 8, 4 },
|
|
{ 10, 5 },
|
|
{ 0, 6 }
|
|
};
|
|
const ProtobufCMessageDescriptor anchor__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"anchor",
|
|
"Anchor",
|
|
"Anchor",
|
|
"",
|
|
sizeof(Anchor),
|
|
6,
|
|
anchor__field_descriptors,
|
|
anchor__field_indices_by_name,
|
|
4, anchor__number_ranges,
|
|
(ProtobufCMessageInit) anchor__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor open_channel__field_descriptors[8] =
|
|
{
|
|
{
|
|
"seed",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_UINT64,
|
|
0, /* quantifier_offset */
|
|
offsetof(OpenChannel, seed),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"locktime_seconds",
|
|
2,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_UINT32,
|
|
offsetof(OpenChannel, locktime_case),
|
|
offsetof(OpenChannel, locktime_seconds),
|
|
NULL,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"locktime_blocks",
|
|
3,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_UINT32,
|
|
offsetof(OpenChannel, locktime_case),
|
|
offsetof(OpenChannel, locktime_blocks),
|
|
NULL,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"revocation_hash",
|
|
4,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(OpenChannel, revocation_hash),
|
|
&sha256_hash__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"final",
|
|
5,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(OpenChannel, final),
|
|
&bitcoin_pubkey__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"commitment_fee",
|
|
6,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_UINT64,
|
|
0, /* quantifier_offset */
|
|
offsetof(OpenChannel, commitment_fee),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"anchor",
|
|
7,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(OpenChannel, anchor),
|
|
&anchor__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"tx_version",
|
|
8,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_UINT32,
|
|
0, /* quantifier_offset */
|
|
offsetof(OpenChannel, tx_version),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned open_channel__field_indices_by_name[] = {
|
|
6, /* field[6] = anchor */
|
|
5, /* field[5] = commitment_fee */
|
|
4, /* field[4] = final */
|
|
2, /* field[2] = locktime_blocks */
|
|
1, /* field[1] = locktime_seconds */
|
|
3, /* field[3] = revocation_hash */
|
|
0, /* field[0] = seed */
|
|
7, /* field[7] = tx_version */
|
|
};
|
|
static const ProtobufCIntRange open_channel__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 8 }
|
|
};
|
|
const ProtobufCMessageDescriptor open_channel__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"open_channel",
|
|
"OpenChannel",
|
|
"OpenChannel",
|
|
"",
|
|
sizeof(OpenChannel),
|
|
8,
|
|
open_channel__field_descriptors,
|
|
open_channel__field_indices_by_name,
|
|
1, open_channel__number_ranges,
|
|
(ProtobufCMessageInit) open_channel__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor open_commit_sig__field_descriptors[1] =
|
|
{
|
|
{
|
|
"sig",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(OpenCommitSig, sig),
|
|
&signature__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned open_commit_sig__field_indices_by_name[] = {
|
|
0, /* field[0] = sig */
|
|
};
|
|
static const ProtobufCIntRange open_commit_sig__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor open_commit_sig__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"open_commit_sig",
|
|
"OpenCommitSig",
|
|
"OpenCommitSig",
|
|
"",
|
|
sizeof(OpenCommitSig),
|
|
1,
|
|
open_commit_sig__field_descriptors,
|
|
open_commit_sig__field_indices_by_name,
|
|
1, open_commit_sig__number_ranges,
|
|
(ProtobufCMessageInit) open_commit_sig__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor open_anchor_scriptsigs__field_descriptors[1] =
|
|
{
|
|
{
|
|
"script",
|
|
1,
|
|
PROTOBUF_C_LABEL_REPEATED,
|
|
PROTOBUF_C_TYPE_BYTES,
|
|
offsetof(OpenAnchorScriptsigs, n_script),
|
|
offsetof(OpenAnchorScriptsigs, script),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned open_anchor_scriptsigs__field_indices_by_name[] = {
|
|
0, /* field[0] = script */
|
|
};
|
|
static const ProtobufCIntRange open_anchor_scriptsigs__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor open_anchor_scriptsigs__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"open_anchor_scriptsigs",
|
|
"OpenAnchorScriptsigs",
|
|
"OpenAnchorScriptsigs",
|
|
"",
|
|
sizeof(OpenAnchorScriptsigs),
|
|
1,
|
|
open_anchor_scriptsigs__field_descriptors,
|
|
open_anchor_scriptsigs__field_indices_by_name,
|
|
1, open_anchor_scriptsigs__number_ranges,
|
|
(ProtobufCMessageInit) open_anchor_scriptsigs__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor leak_anchor_sigs_and_pretend_we_didnt__field_descriptors[1] =
|
|
{
|
|
{
|
|
"sigs",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(LeakAnchorSigsAndPretendWeDidnt, sigs),
|
|
&open_anchor_scriptsigs__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned leak_anchor_sigs_and_pretend_we_didnt__field_indices_by_name[] = {
|
|
0, /* field[0] = sigs */
|
|
};
|
|
static const ProtobufCIntRange leak_anchor_sigs_and_pretend_we_didnt__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor leak_anchor_sigs_and_pretend_we_didnt__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"leak_anchor_sigs_and_pretend_we_didnt",
|
|
"LeakAnchorSigsAndPretendWeDidnt",
|
|
"LeakAnchorSigsAndPretendWeDidnt",
|
|
"",
|
|
sizeof(LeakAnchorSigsAndPretendWeDidnt),
|
|
1,
|
|
leak_anchor_sigs_and_pretend_we_didnt__field_descriptors,
|
|
leak_anchor_sigs_and_pretend_we_didnt__field_indices_by_name,
|
|
1, leak_anchor_sigs_and_pretend_we_didnt__number_ranges,
|
|
(ProtobufCMessageInit) leak_anchor_sigs_and_pretend_we_didnt__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor open_complete__field_descriptors[1] =
|
|
{
|
|
{
|
|
"blockid",
|
|
1,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(OpenComplete, blockid),
|
|
&sha256_hash__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned open_complete__field_indices_by_name[] = {
|
|
0, /* field[0] = blockid */
|
|
};
|
|
static const ProtobufCIntRange open_complete__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor open_complete__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"open_complete",
|
|
"OpenComplete",
|
|
"OpenComplete",
|
|
"",
|
|
sizeof(OpenComplete),
|
|
1,
|
|
open_complete__field_descriptors,
|
|
open_complete__field_indices_by_name,
|
|
1, open_complete__number_ranges,
|
|
(ProtobufCMessageInit) open_complete__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor update__field_descriptors[2] =
|
|
{
|
|
{
|
|
"revocation_hash",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(Update, revocation_hash),
|
|
&sha256_hash__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"delta",
|
|
2,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_SINT64,
|
|
0, /* quantifier_offset */
|
|
offsetof(Update, delta),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned update__field_indices_by_name[] = {
|
|
1, /* field[1] = delta */
|
|
0, /* field[0] = revocation_hash */
|
|
};
|
|
static const ProtobufCIntRange update__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 2 }
|
|
};
|
|
const ProtobufCMessageDescriptor update__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"update",
|
|
"Update",
|
|
"Update",
|
|
"",
|
|
sizeof(Update),
|
|
2,
|
|
update__field_descriptors,
|
|
update__field_indices_by_name,
|
|
1, update__number_ranges,
|
|
(ProtobufCMessageInit) update__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor update_accept__field_descriptors[3] =
|
|
{
|
|
{
|
|
"sig",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(UpdateAccept, sig),
|
|
&signature__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"old_anchor_sig",
|
|
2,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(UpdateAccept, old_anchor_sig),
|
|
&signature__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"revocation_hash",
|
|
3,
|
|
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[] = {
|
|
1, /* field[1] = old_anchor_sig */
|
|
2, /* field[2] = revocation_hash */
|
|
0, /* field[0] = sig */
|
|
};
|
|
static const ProtobufCIntRange update_accept__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 3 }
|
|
};
|
|
const ProtobufCMessageDescriptor update_accept__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"update_accept",
|
|
"UpdateAccept",
|
|
"UpdateAccept",
|
|
"",
|
|
sizeof(UpdateAccept),
|
|
3,
|
|
update_accept__field_descriptors,
|
|
update_accept__field_indices_by_name,
|
|
1, update_accept__number_ranges,
|
|
(ProtobufCMessageInit) update_accept__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor update_signature__field_descriptors[2] =
|
|
{
|
|
{
|
|
"sig",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(UpdateSignature, sig),
|
|
&signature__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"revocation_preimage",
|
|
2,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(UpdateSignature, revocation_preimage),
|
|
&sha256_hash__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned update_signature__field_indices_by_name[] = {
|
|
1, /* field[1] = revocation_preimage */
|
|
0, /* field[0] = sig */
|
|
};
|
|
static const ProtobufCIntRange update_signature__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 2 }
|
|
};
|
|
const ProtobufCMessageDescriptor update_signature__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"update_signature",
|
|
"UpdateSignature",
|
|
"UpdateSignature",
|
|
"",
|
|
sizeof(UpdateSignature),
|
|
2,
|
|
update_signature__field_descriptors,
|
|
update_signature__field_indices_by_name,
|
|
1, update_signature__number_ranges,
|
|
(ProtobufCMessageInit) update_signature__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] */
|
|
};
|
|
static const ProtobufCFieldDescriptor new_anchor__field_descriptors[1] =
|
|
{
|
|
{
|
|
"anchor",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(NewAnchor, anchor),
|
|
&anchor__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned new_anchor__field_indices_by_name[] = {
|
|
0, /* field[0] = anchor */
|
|
};
|
|
static const ProtobufCIntRange new_anchor__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor new_anchor__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"new_anchor",
|
|
"NewAnchor",
|
|
"NewAnchor",
|
|
"",
|
|
sizeof(NewAnchor),
|
|
1,
|
|
new_anchor__field_descriptors,
|
|
new_anchor__field_indices_by_name,
|
|
1, new_anchor__number_ranges,
|
|
(ProtobufCMessageInit) new_anchor__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor new_anchor_ack__field_descriptors[1] =
|
|
{
|
|
{
|
|
"anchor",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(NewAnchorAck, anchor),
|
|
&anchor__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned new_anchor_ack__field_indices_by_name[] = {
|
|
0, /* field[0] = anchor */
|
|
};
|
|
static const ProtobufCIntRange new_anchor_ack__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor new_anchor_ack__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"new_anchor_ack",
|
|
"NewAnchorAck",
|
|
"NewAnchorAck",
|
|
"",
|
|
sizeof(NewAnchorAck),
|
|
1,
|
|
new_anchor_ack__field_descriptors,
|
|
new_anchor_ack__field_indices_by_name,
|
|
1, new_anchor_ack__number_ranges,
|
|
(ProtobufCMessageInit) new_anchor_ack__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor new_anchor_commit_sig__field_descriptors[1] =
|
|
{
|
|
{
|
|
"sig",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(NewAnchorCommitSig, sig),
|
|
&signature__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned new_anchor_commit_sig__field_indices_by_name[] = {
|
|
0, /* field[0] = sig */
|
|
};
|
|
static const ProtobufCIntRange new_anchor_commit_sig__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor new_anchor_commit_sig__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"new_anchor_commit_sig",
|
|
"NewAnchorCommitSig",
|
|
"NewAnchorCommitSig",
|
|
"",
|
|
sizeof(NewAnchorCommitSig),
|
|
1,
|
|
new_anchor_commit_sig__field_descriptors,
|
|
new_anchor_commit_sig__field_indices_by_name,
|
|
1, new_anchor_commit_sig__number_ranges,
|
|
(ProtobufCMessageInit) new_anchor_commit_sig__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor new_anchor_accept__field_descriptors[1] =
|
|
{
|
|
{
|
|
"script",
|
|
1,
|
|
PROTOBUF_C_LABEL_REPEATED,
|
|
PROTOBUF_C_TYPE_BYTES,
|
|
offsetof(NewAnchorAccept, n_script),
|
|
offsetof(NewAnchorAccept, script),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned new_anchor_accept__field_indices_by_name[] = {
|
|
0, /* field[0] = script */
|
|
};
|
|
static const ProtobufCIntRange new_anchor_accept__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor new_anchor_accept__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"new_anchor_accept",
|
|
"NewAnchorAccept",
|
|
"NewAnchorAccept",
|
|
"",
|
|
sizeof(NewAnchorAccept),
|
|
1,
|
|
new_anchor_accept__field_descriptors,
|
|
new_anchor_accept__field_indices_by_name,
|
|
1, new_anchor_accept__number_ranges,
|
|
(ProtobufCMessageInit) new_anchor_accept__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor new_anchor_complete__field_descriptors[1] =
|
|
{
|
|
{
|
|
"revocation_preimage",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(NewAnchorComplete, revocation_preimage),
|
|
&sha256_hash__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned new_anchor_complete__field_indices_by_name[] = {
|
|
0, /* field[0] = revocation_preimage */
|
|
};
|
|
static const ProtobufCIntRange new_anchor_complete__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor new_anchor_complete__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"new_anchor_complete",
|
|
"NewAnchorComplete",
|
|
"NewAnchorComplete",
|
|
"",
|
|
sizeof(NewAnchorComplete),
|
|
1,
|
|
new_anchor_complete__field_descriptors,
|
|
new_anchor_complete__field_indices_by_name,
|
|
1, new_anchor_complete__number_ranges,
|
|
(ProtobufCMessageInit) new_anchor_complete__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor close_channel__field_descriptors[1] =
|
|
{
|
|
{
|
|
"sig",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(CloseChannel, sig),
|
|
&signature__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned close_channel__field_indices_by_name[] = {
|
|
0, /* field[0] = sig */
|
|
};
|
|
static const ProtobufCIntRange close_channel__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor close_channel__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"close_channel",
|
|
"CloseChannel",
|
|
"CloseChannel",
|
|
"",
|
|
sizeof(CloseChannel),
|
|
1,
|
|
close_channel__field_descriptors,
|
|
close_channel__field_indices_by_name,
|
|
1, close_channel__number_ranges,
|
|
(ProtobufCMessageInit) close_channel__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor close_channel_complete__field_descriptors[1] =
|
|
{
|
|
{
|
|
"sig",
|
|
1,
|
|
PROTOBUF_C_LABEL_REQUIRED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
0, /* quantifier_offset */
|
|
offsetof(CloseChannelComplete, sig),
|
|
&signature__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned close_channel_complete__field_indices_by_name[] = {
|
|
0, /* field[0] = sig */
|
|
};
|
|
static const ProtobufCIntRange close_channel_complete__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor close_channel_complete__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"close_channel_complete",
|
|
"CloseChannelComplete",
|
|
"CloseChannelComplete",
|
|
"",
|
|
sizeof(CloseChannelComplete),
|
|
1,
|
|
close_channel_complete__field_descriptors,
|
|
close_channel_complete__field_indices_by_name,
|
|
1, close_channel_complete__number_ranges,
|
|
(ProtobufCMessageInit) close_channel_complete__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor error__field_descriptors[1] =
|
|
{
|
|
{
|
|
"problem",
|
|
1,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_STRING,
|
|
0, /* quantifier_offset */
|
|
offsetof(Error, problem),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned error__field_indices_by_name[] = {
|
|
0, /* field[0] = problem */
|
|
};
|
|
static const ProtobufCIntRange error__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor error__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"error",
|
|
"Error",
|
|
"Error",
|
|
"",
|
|
sizeof(Error),
|
|
1,
|
|
error__field_descriptors,
|
|
error__field_indices_by_name,
|
|
1, error__number_ranges,
|
|
(ProtobufCMessageInit) error__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor pkt__field_descriptors[16] =
|
|
{
|
|
{
|
|
"update",
|
|
1,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, update),
|
|
&update__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"update_accept",
|
|
2,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, update_accept),
|
|
&update_accept__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"update_signature",
|
|
3,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, update_signature),
|
|
&update_signature__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"update_complete",
|
|
4,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, update_complete),
|
|
&update_complete__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"open",
|
|
201,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, open),
|
|
&open_channel__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"open_commit_sig",
|
|
202,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, open_commit_sig),
|
|
&open_commit_sig__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"open_anchor_scriptsigs",
|
|
203,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, open_anchor_scriptsigs),
|
|
&open_anchor_scriptsigs__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"open_complete",
|
|
204,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, open_complete),
|
|
&open_complete__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"omg_fail",
|
|
205,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, omg_fail),
|
|
&leak_anchor_sigs_and_pretend_we_didnt__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"new_anchor",
|
|
301,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, new_anchor),
|
|
&new_anchor__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"new_anchor_ack",
|
|
302,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, new_anchor_ack),
|
|
&new_anchor_ack__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"new_anchor_accept",
|
|
303,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, new_anchor_accept),
|
|
&new_anchor_accept__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"new_anchor_complete",
|
|
304,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, new_anchor_complete),
|
|
&new_anchor_complete__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"close",
|
|
401,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, close),
|
|
&close_channel__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"close_complete",
|
|
402,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, close_complete),
|
|
&close_channel_complete__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"error",
|
|
1000,
|
|
PROTOBUF_C_LABEL_OPTIONAL,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(Pkt, pkt_case),
|
|
offsetof(Pkt, error),
|
|
&error__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned pkt__field_indices_by_name[] = {
|
|
13, /* field[13] = close */
|
|
14, /* field[14] = close_complete */
|
|
15, /* field[15] = error */
|
|
9, /* field[9] = new_anchor */
|
|
11, /* field[11] = new_anchor_accept */
|
|
10, /* field[10] = new_anchor_ack */
|
|
12, /* field[12] = new_anchor_complete */
|
|
8, /* field[8] = omg_fail */
|
|
4, /* field[4] = open */
|
|
6, /* field[6] = open_anchor_scriptsigs */
|
|
5, /* field[5] = open_commit_sig */
|
|
7, /* field[7] = open_complete */
|
|
0, /* field[0] = update */
|
|
1, /* field[1] = update_accept */
|
|
3, /* field[3] = update_complete */
|
|
2, /* field[2] = update_signature */
|
|
};
|
|
static const ProtobufCIntRange pkt__number_ranges[5 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 201, 4 },
|
|
{ 301, 9 },
|
|
{ 401, 13 },
|
|
{ 1000, 15 },
|
|
{ 0, 16 }
|
|
};
|
|
const ProtobufCMessageDescriptor pkt__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"pkt",
|
|
"Pkt",
|
|
"Pkt",
|
|
"",
|
|
sizeof(Pkt),
|
|
16,
|
|
pkt__field_descriptors,
|
|
pkt__field_indices_by_name,
|
|
5, pkt__number_ranges,
|
|
(ProtobufCMessageInit) pkt__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
|