diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2018-12-02 14:24:44 +0200 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2018-12-02 14:24:44 +0200 |
| commit | 2cbc3deb559323ac366e84b3e0ba40d27447347e (patch) | |
| tree | dc9b3ad37d7d4f5e1639c13d8f49d9ef565b5d5d /Software/Embedded_SW/Embedded/Communication | |
| parent | ae614a63f593122cd28c644625db179f298dd640 (diff) | |
| download | Tango-2cbc3deb559323ac366e84b3e0ba40d27447347e.tar.gz Tango-2cbc3deb559323ac366e84b3e0ba40d27447347e.zip | |
1.1.5.1 Thread jogging, thread PID preparation,
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication')
24 files changed, 1661 insertions, 6 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/Container.c b/Software/Embedded_SW/Embedded/Communication/Container.c index 100dba7a8..7b5e44860 100644 --- a/Software/Embedded_SW/Embedded/Communication/Container.c +++ b/Software/Embedded_SW/Embedded/Communication/Container.c @@ -312,6 +312,12 @@ void receive_callback(char* buffer, size_t length) case MESSAGE_TYPE__SetDigitalOutRequest: SetDigitalOutRequestRequestFunc(requestContainer); break; + case MESSAGE_TYPE__ThreadJoggingRequest: + ThreadJoggingRequestFunc(requestContainer); + break; + case MESSAGE_TYPE__ThreadAbortJoggingRequest: + ThreadAbortJoggingRequestFunc(requestContainer); + break; case MESSAGE_TYPE__StubI2CReadBytesRequest: Stub_I2CReadBytesRequest(requestContainer); break; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionRequest.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionRequest.pb-c.c new file mode 100644 index 000000000..3602f7f9e --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ActivateVersionRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ActivateVersionRequest.pb-c.h" +void activate_version_request__init + (ActivateVersionRequest *message) +{ + static const ActivateVersionRequest init_value = ACTIVATE_VERSION_REQUEST__INIT; + *message = init_value; +} +size_t activate_version_request__get_packed_size + (const ActivateVersionRequest *message) +{ + assert(message->base.descriptor == &activate_version_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t activate_version_request__pack + (const ActivateVersionRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &activate_version_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t activate_version_request__pack_to_buffer + (const ActivateVersionRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &activate_version_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +ActivateVersionRequest * + activate_version_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (ActivateVersionRequest *) + protobuf_c_message_unpack (&activate_version_request__descriptor, + allocator, len, data); +} +void activate_version_request__free_unpacked + (ActivateVersionRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &activate_version_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor activate_version_request__field_descriptors[1] = +{ + { + "FileDescriptors", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ActivateVersionRequest, n_filedescriptors), + offsetof(ActivateVersionRequest, filedescriptors), + &version_file_descriptor__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned activate_version_request__field_indices_by_name[] = { + 0, /* field[0] = FileDescriptors */ +}; +static const ProtobufCIntRange activate_version_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor activate_version_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "ActivateVersionRequest", + "ActivateVersionRequest", + "ActivateVersionRequest", + "", + sizeof(ActivateVersionRequest), + 1, + activate_version_request__field_descriptors, + activate_version_request__field_indices_by_name, + 1, activate_version_request__number_ranges, + (ProtobufCMessageInit) activate_version_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionRequest.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionRequest.pb-c.h new file mode 100644 index 000000000..90fe6479d --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionRequest.pb-c.h @@ -0,0 +1,73 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ActivateVersionRequest.proto */ + +#ifndef PROTOBUF_C_ActivateVersionRequest_2eproto__INCLUDED +#define PROTOBUF_C_ActivateVersionRequest_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "VersionFileDescriptor.pb-c.h" + +typedef struct _ActivateVersionRequest ActivateVersionRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _ActivateVersionRequest +{ + ProtobufCMessage base; + size_t n_filedescriptors; + VersionFileDescriptor **filedescriptors; +}; +#define ACTIVATE_VERSION_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&activate_version_request__descriptor) \ + , 0,NULL } + + +/* ActivateVersionRequest methods */ +void activate_version_request__init + (ActivateVersionRequest *message); +size_t activate_version_request__get_packed_size + (const ActivateVersionRequest *message); +size_t activate_version_request__pack + (const ActivateVersionRequest *message, + uint8_t *out); +size_t activate_version_request__pack_to_buffer + (const ActivateVersionRequest *message, + ProtobufCBuffer *buffer); +ActivateVersionRequest * + activate_version_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void activate_version_request__free_unpacked + (ActivateVersionRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*ActivateVersionRequest_Closure) + (const ActivateVersionRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor activate_version_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ActivateVersionRequest_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionResponse.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionResponse.pb-c.c new file mode 100644 index 000000000..6f54f8708 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionResponse.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ActivateVersionResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ActivateVersionResponse.pb-c.h" +void activate_version_response__init + (ActivateVersionResponse *message) +{ + static const ActivateVersionResponse init_value = ACTIVATE_VERSION_RESPONSE__INIT; + *message = init_value; +} +size_t activate_version_response__get_packed_size + (const ActivateVersionResponse *message) +{ + assert(message->base.descriptor == &activate_version_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t activate_version_response__pack + (const ActivateVersionResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &activate_version_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t activate_version_response__pack_to_buffer + (const ActivateVersionResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &activate_version_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +ActivateVersionResponse * + activate_version_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (ActivateVersionResponse *) + protobuf_c_message_unpack (&activate_version_response__descriptor, + allocator, len, data); +} +void activate_version_response__free_unpacked + (ActivateVersionResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &activate_version_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define activate_version_response__field_descriptors NULL +#define activate_version_response__field_indices_by_name NULL +#define activate_version_response__number_ranges NULL +const ProtobufCMessageDescriptor activate_version_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "ActivateVersionResponse", + "ActivateVersionResponse", + "ActivateVersionResponse", + "", + sizeof(ActivateVersionResponse), + 0, + activate_version_response__field_descriptors, + activate_version_response__field_indices_by_name, + 0, activate_version_response__number_ranges, + (ProtobufCMessageInit) activate_version_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionResponse.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionResponse.pb-c.h new file mode 100644 index 000000000..10dc41bcb --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionResponse.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ActivateVersionResponse.proto */ + +#ifndef PROTOBUF_C_ActivateVersionResponse_2eproto__INCLUDED +#define PROTOBUF_C_ActivateVersionResponse_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _ActivateVersionResponse ActivateVersionResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _ActivateVersionResponse +{ + ProtobufCMessage base; +}; +#define ACTIVATE_VERSION_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&activate_version_response__descriptor) \ + } + + +/* ActivateVersionResponse methods */ +void activate_version_response__init + (ActivateVersionResponse *message); +size_t activate_version_response__get_packed_size + (const ActivateVersionResponse *message); +size_t activate_version_response__pack + (const ActivateVersionResponse *message, + uint8_t *out); +size_t activate_version_response__pack_to_buffer + (const ActivateVersionResponse *message, + ProtobufCBuffer *buffer); +ActivateVersionResponse * + activate_version_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void activate_version_response__free_unpacked + (ActivateVersionResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*ActivateVersionResponse_Closure) + (const ActivateVersionResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor activate_version_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ActivateVersionResponse_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadRequest.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadRequest.pb-c.c new file mode 100644 index 000000000..44c892aec --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadRequest.pb-c.c @@ -0,0 +1,131 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: FileChunkDownloadRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "FileChunkDownloadRequest.pb-c.h" +void file_chunk_download_request__init + (FileChunkDownloadRequest *message) +{ + static const FileChunkDownloadRequest init_value = FILE_CHUNK_DOWNLOAD_REQUEST__INIT; + *message = init_value; +} +size_t file_chunk_download_request__get_packed_size + (const FileChunkDownloadRequest *message) +{ + assert(message->base.descriptor == &file_chunk_download_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t file_chunk_download_request__pack + (const FileChunkDownloadRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &file_chunk_download_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t file_chunk_download_request__pack_to_buffer + (const FileChunkDownloadRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &file_chunk_download_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +FileChunkDownloadRequest * + file_chunk_download_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (FileChunkDownloadRequest *) + protobuf_c_message_unpack (&file_chunk_download_request__descriptor, + allocator, len, data); +} +void file_chunk_download_request__free_unpacked + (FileChunkDownloadRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &file_chunk_download_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor file_chunk_download_request__field_descriptors[4] = +{ + { + "DownloadID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(FileChunkDownloadRequest, downloadid), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "FileName", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(FileChunkDownloadRequest, filename), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Position", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT64, + offsetof(FileChunkDownloadRequest, has_position), + offsetof(FileChunkDownloadRequest, position), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "IsCanceled", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(FileChunkDownloadRequest, has_iscanceled), + offsetof(FileChunkDownloadRequest, iscanceled), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned file_chunk_download_request__field_indices_by_name[] = { + 0, /* field[0] = DownloadID */ + 1, /* field[1] = FileName */ + 3, /* field[3] = IsCanceled */ + 2, /* field[2] = Position */ +}; +static const ProtobufCIntRange file_chunk_download_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor file_chunk_download_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "FileChunkDownloadRequest", + "FileChunkDownloadRequest", + "FileChunkDownloadRequest", + "", + sizeof(FileChunkDownloadRequest), + 4, + file_chunk_download_request__field_descriptors, + file_chunk_download_request__field_indices_by_name, + 1, file_chunk_download_request__number_ranges, + (ProtobufCMessageInit) file_chunk_download_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadRequest.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadRequest.pb-c.h new file mode 100644 index 000000000..1de5229cd --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadRequest.pb-c.h @@ -0,0 +1,76 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: FileChunkDownloadRequest.proto */ + +#ifndef PROTOBUF_C_FileChunkDownloadRequest_2eproto__INCLUDED +#define PROTOBUF_C_FileChunkDownloadRequest_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _FileChunkDownloadRequest FileChunkDownloadRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _FileChunkDownloadRequest +{ + ProtobufCMessage base; + char *downloadid; + char *filename; + protobuf_c_boolean has_position; + int64_t position; + protobuf_c_boolean has_iscanceled; + protobuf_c_boolean iscanceled; +}; +#define FILE_CHUNK_DOWNLOAD_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&file_chunk_download_request__descriptor) \ + , NULL, NULL, 0, 0, 0, 0 } + + +/* FileChunkDownloadRequest methods */ +void file_chunk_download_request__init + (FileChunkDownloadRequest *message); +size_t file_chunk_download_request__get_packed_size + (const FileChunkDownloadRequest *message); +size_t file_chunk_download_request__pack + (const FileChunkDownloadRequest *message, + uint8_t *out); +size_t file_chunk_download_request__pack_to_buffer + (const FileChunkDownloadRequest *message, + ProtobufCBuffer *buffer); +FileChunkDownloadRequest * + file_chunk_download_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void file_chunk_download_request__free_unpacked + (FileChunkDownloadRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*FileChunkDownloadRequest_Closure) + (const FileChunkDownloadRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor file_chunk_download_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_FileChunkDownloadRequest_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadResponse.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadResponse.pb-c.c new file mode 100644 index 000000000..f846a56b9 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadResponse.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: FileChunkDownloadResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "FileChunkDownloadResponse.pb-c.h" +void file_chunk_download_response__init + (FileChunkDownloadResponse *message) +{ + static const FileChunkDownloadResponse init_value = FILE_CHUNK_DOWNLOAD_RESPONSE__INIT; + *message = init_value; +} +size_t file_chunk_download_response__get_packed_size + (const FileChunkDownloadResponse *message) +{ + assert(message->base.descriptor == &file_chunk_download_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t file_chunk_download_response__pack + (const FileChunkDownloadResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &file_chunk_download_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t file_chunk_download_response__pack_to_buffer + (const FileChunkDownloadResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &file_chunk_download_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +FileChunkDownloadResponse * + file_chunk_download_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (FileChunkDownloadResponse *) + protobuf_c_message_unpack (&file_chunk_download_response__descriptor, + allocator, len, data); +} +void file_chunk_download_response__free_unpacked + (FileChunkDownloadResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &file_chunk_download_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor file_chunk_download_response__field_descriptors[2] = +{ + { + "Buffer", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BYTES, + offsetof(FileChunkDownloadResponse, has_buffer), + offsetof(FileChunkDownloadResponse, buffer), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "IsCanceled", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(FileChunkDownloadResponse, has_iscanceled), + offsetof(FileChunkDownloadResponse, iscanceled), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned file_chunk_download_response__field_indices_by_name[] = { + 0, /* field[0] = Buffer */ + 1, /* field[1] = IsCanceled */ +}; +static const ProtobufCIntRange file_chunk_download_response__number_ranges[1 + 1] = +{ + { 2, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor file_chunk_download_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "FileChunkDownloadResponse", + "FileChunkDownloadResponse", + "FileChunkDownloadResponse", + "", + sizeof(FileChunkDownloadResponse), + 2, + file_chunk_download_response__field_descriptors, + file_chunk_download_response__field_indices_by_name, + 1, file_chunk_download_response__number_ranges, + (ProtobufCMessageInit) file_chunk_download_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadResponse.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadResponse.pb-c.h new file mode 100644 index 000000000..7461554c3 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadResponse.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: FileChunkDownloadResponse.proto */ + +#ifndef PROTOBUF_C_FileChunkDownloadResponse_2eproto__INCLUDED +#define PROTOBUF_C_FileChunkDownloadResponse_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _FileChunkDownloadResponse FileChunkDownloadResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _FileChunkDownloadResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_buffer; + ProtobufCBinaryData buffer; + protobuf_c_boolean has_iscanceled; + protobuf_c_boolean iscanceled; +}; +#define FILE_CHUNK_DOWNLOAD_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&file_chunk_download_response__descriptor) \ + , 0, {0,NULL}, 0, 0 } + + +/* FileChunkDownloadResponse methods */ +void file_chunk_download_response__init + (FileChunkDownloadResponse *message); +size_t file_chunk_download_response__get_packed_size + (const FileChunkDownloadResponse *message); +size_t file_chunk_download_response__pack + (const FileChunkDownloadResponse *message, + uint8_t *out); +size_t file_chunk_download_response__pack_to_buffer + (const FileChunkDownloadResponse *message, + ProtobufCBuffer *buffer); +FileChunkDownloadResponse * + file_chunk_download_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void file_chunk_download_response__free_unpacked + (FileChunkDownloadResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*FileChunkDownloadResponse_Closure) + (const FileChunkDownloadResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor file_chunk_download_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_FileChunkDownloadResponse_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileDownloadRequest.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileDownloadRequest.pb-c.c new file mode 100644 index 000000000..b128e2d76 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileDownloadRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: FileDownloadRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "FileDownloadRequest.pb-c.h" +void file_download_request__init + (FileDownloadRequest *message) +{ + static const FileDownloadRequest init_value = FILE_DOWNLOAD_REQUEST__INIT; + *message = init_value; +} +size_t file_download_request__get_packed_size + (const FileDownloadRequest *message) +{ + assert(message->base.descriptor == &file_download_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t file_download_request__pack + (const FileDownloadRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &file_download_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t file_download_request__pack_to_buffer + (const FileDownloadRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &file_download_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +FileDownloadRequest * + file_download_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (FileDownloadRequest *) + protobuf_c_message_unpack (&file_download_request__descriptor, + allocator, len, data); +} +void file_download_request__free_unpacked + (FileDownloadRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &file_download_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor file_download_request__field_descriptors[1] = +{ + { + "FileName", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(FileDownloadRequest, filename), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned file_download_request__field_indices_by_name[] = { + 0, /* field[0] = FileName */ +}; +static const ProtobufCIntRange file_download_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor file_download_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "FileDownloadRequest", + "FileDownloadRequest", + "FileDownloadRequest", + "", + sizeof(FileDownloadRequest), + 1, + file_download_request__field_descriptors, + file_download_request__field_indices_by_name, + 1, file_download_request__number_ranges, + (ProtobufCMessageInit) file_download_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileDownloadRequest.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileDownloadRequest.pb-c.h new file mode 100644 index 000000000..9be5758e5 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileDownloadRequest.pb-c.h @@ -0,0 +1,71 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: FileDownloadRequest.proto */ + +#ifndef PROTOBUF_C_FileDownloadRequest_2eproto__INCLUDED +#define PROTOBUF_C_FileDownloadRequest_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _FileDownloadRequest FileDownloadRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _FileDownloadRequest +{ + ProtobufCMessage base; + char *filename; +}; +#define FILE_DOWNLOAD_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&file_download_request__descriptor) \ + , NULL } + + +/* FileDownloadRequest methods */ +void file_download_request__init + (FileDownloadRequest *message); +size_t file_download_request__get_packed_size + (const FileDownloadRequest *message); +size_t file_download_request__pack + (const FileDownloadRequest *message, + uint8_t *out); +size_t file_download_request__pack_to_buffer + (const FileDownloadRequest *message, + ProtobufCBuffer *buffer); +FileDownloadRequest * + file_download_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void file_download_request__free_unpacked + (FileDownloadRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*FileDownloadRequest_Closure) + (const FileDownloadRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor file_download_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_FileDownloadRequest_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileDownloadResponse.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileDownloadResponse.pb-c.c new file mode 100644 index 000000000..ece764223 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileDownloadResponse.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: FileDownloadResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "FileDownloadResponse.pb-c.h" +void file_download_response__init + (FileDownloadResponse *message) +{ + static const FileDownloadResponse init_value = FILE_DOWNLOAD_RESPONSE__INIT; + *message = init_value; +} +size_t file_download_response__get_packed_size + (const FileDownloadResponse *message) +{ + assert(message->base.descriptor == &file_download_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t file_download_response__pack + (const FileDownloadResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &file_download_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t file_download_response__pack_to_buffer + (const FileDownloadResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &file_download_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +FileDownloadResponse * + file_download_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (FileDownloadResponse *) + protobuf_c_message_unpack (&file_download_response__descriptor, + allocator, len, data); +} +void file_download_response__free_unpacked + (FileDownloadResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &file_download_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor file_download_response__field_descriptors[2] = +{ + { + "DownloadID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(FileDownloadResponse, downloadid), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MaxChunkLength", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT64, + offsetof(FileDownloadResponse, has_maxchunklength), + offsetof(FileDownloadResponse, maxchunklength), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned file_download_response__field_indices_by_name[] = { + 0, /* field[0] = DownloadID */ + 1, /* field[1] = MaxChunkLength */ +}; +static const ProtobufCIntRange file_download_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor file_download_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "FileDownloadResponse", + "FileDownloadResponse", + "FileDownloadResponse", + "", + sizeof(FileDownloadResponse), + 2, + file_download_response__field_descriptors, + file_download_response__field_indices_by_name, + 1, file_download_response__number_ranges, + (ProtobufCMessageInit) file_download_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileDownloadResponse.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileDownloadResponse.pb-c.h new file mode 100644 index 000000000..9f8bcfb2d --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileDownloadResponse.pb-c.h @@ -0,0 +1,73 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: FileDownloadResponse.proto */ + +#ifndef PROTOBUF_C_FileDownloadResponse_2eproto__INCLUDED +#define PROTOBUF_C_FileDownloadResponse_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _FileDownloadResponse FileDownloadResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _FileDownloadResponse +{ + ProtobufCMessage base; + char *downloadid; + protobuf_c_boolean has_maxchunklength; + int64_t maxchunklength; +}; +#define FILE_DOWNLOAD_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&file_download_response__descriptor) \ + , NULL, 0, 0 } + + +/* FileDownloadResponse methods */ +void file_download_response__init + (FileDownloadResponse *message); +size_t file_download_response__get_packed_size + (const FileDownloadResponse *message); +size_t file_download_response__pack + (const FileDownloadResponse *message, + uint8_t *out); +size_t file_download_response__pack_to_buffer + (const FileDownloadResponse *message, + ProtobufCBuffer *buffer); +FileDownloadResponse * + file_download_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void file_download_response__free_unpacked + (FileDownloadResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*FileDownloadResponse_Closure) + (const FileDownloadResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor file_download_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_FileDownloadResponse_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/GetStorageInfoResponse.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/IO/GetStorageInfoResponse.pb-c.c index 0ba9d355f..864b46201 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/GetStorageInfoResponse.pb-c.c +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/GetStorageInfoResponse.pb-c.c @@ -52,7 +52,7 @@ void get_storage_info_response__free_unpacked assert(message->base.descriptor == &get_storage_info_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor get_storage_info_response__field_descriptors[2] = +static const ProtobufCFieldDescriptor get_storage_info_response__field_descriptors[3] = { { "Capacity", @@ -78,15 +78,28 @@ static const ProtobufCFieldDescriptor get_storage_info_response__field_descripto 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "Root", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(GetStorageInfoResponse, root), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned get_storage_info_response__field_indices_by_name[] = { 0, /* field[0] = Capacity */ 1, /* field[1] = FreeSpace */ + 2, /* field[2] = Root */ }; static const ProtobufCIntRange get_storage_info_response__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 3 } }; const ProtobufCMessageDescriptor get_storage_info_response__descriptor = { @@ -96,7 +109,7 @@ const ProtobufCMessageDescriptor get_storage_info_response__descriptor = "GetStorageInfoResponse", "", sizeof(GetStorageInfoResponse), - 2, + 3, get_storage_info_response__field_descriptors, get_storage_info_response__field_indices_by_name, 1, get_storage_info_response__number_ranges, diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/GetStorageInfoResponse.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/IO/GetStorageInfoResponse.pb-c.h index 778512d4f..beda98113 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/GetStorageInfoResponse.pb-c.h +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/GetStorageInfoResponse.pb-c.h @@ -30,10 +30,11 @@ struct _GetStorageInfoResponse int32_t capacity; protobuf_c_boolean has_freespace; int32_t freespace; + char *root; }; #define GET_STORAGE_INFO_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&get_storage_info_response__descriptor) \ - , 0, 0, 0, 0 } + , 0, 0, 0, 0, NULL } /* GetStorageInfoResponse methods */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionRequest.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionRequest.pb-c.c new file mode 100644 index 000000000..f42b94737 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ValidateVersionRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ValidateVersionRequest.pb-c.h" +void validate_version_request__init + (ValidateVersionRequest *message) +{ + static const ValidateVersionRequest init_value = VALIDATE_VERSION_REQUEST__INIT; + *message = init_value; +} +size_t validate_version_request__get_packed_size + (const ValidateVersionRequest *message) +{ + assert(message->base.descriptor == &validate_version_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t validate_version_request__pack + (const ValidateVersionRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &validate_version_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t validate_version_request__pack_to_buffer + (const ValidateVersionRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &validate_version_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +ValidateVersionRequest * + validate_version_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (ValidateVersionRequest *) + protobuf_c_message_unpack (&validate_version_request__descriptor, + allocator, len, data); +} +void validate_version_request__free_unpacked + (ValidateVersionRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &validate_version_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor validate_version_request__field_descriptors[1] = +{ + { + "FileDescriptors", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ValidateVersionRequest, n_filedescriptors), + offsetof(ValidateVersionRequest, filedescriptors), + &version_file_descriptor__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned validate_version_request__field_indices_by_name[] = { + 0, /* field[0] = FileDescriptors */ +}; +static const ProtobufCIntRange validate_version_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor validate_version_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "ValidateVersionRequest", + "ValidateVersionRequest", + "ValidateVersionRequest", + "", + sizeof(ValidateVersionRequest), + 1, + validate_version_request__field_descriptors, + validate_version_request__field_indices_by_name, + 1, validate_version_request__number_ranges, + (ProtobufCMessageInit) validate_version_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionRequest.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionRequest.pb-c.h new file mode 100644 index 000000000..eeb30902e --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionRequest.pb-c.h @@ -0,0 +1,73 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ValidateVersionRequest.proto */ + +#ifndef PROTOBUF_C_ValidateVersionRequest_2eproto__INCLUDED +#define PROTOBUF_C_ValidateVersionRequest_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "VersionFileDescriptor.pb-c.h" + +typedef struct _ValidateVersionRequest ValidateVersionRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _ValidateVersionRequest +{ + ProtobufCMessage base; + size_t n_filedescriptors; + VersionFileDescriptor **filedescriptors; +}; +#define VALIDATE_VERSION_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&validate_version_request__descriptor) \ + , 0,NULL } + + +/* ValidateVersionRequest methods */ +void validate_version_request__init + (ValidateVersionRequest *message); +size_t validate_version_request__get_packed_size + (const ValidateVersionRequest *message); +size_t validate_version_request__pack + (const ValidateVersionRequest *message, + uint8_t *out); +size_t validate_version_request__pack_to_buffer + (const ValidateVersionRequest *message, + ProtobufCBuffer *buffer); +ValidateVersionRequest * + validate_version_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void validate_version_request__free_unpacked + (ValidateVersionRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*ValidateVersionRequest_Closure) + (const ValidateVersionRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor validate_version_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ValidateVersionRequest_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionResponse.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionResponse.pb-c.c new file mode 100644 index 000000000..9be2cce20 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionResponse.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ValidateVersionResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ValidateVersionResponse.pb-c.h" +void validate_version_response__init + (ValidateVersionResponse *message) +{ + static const ValidateVersionResponse init_value = VALIDATE_VERSION_RESPONSE__INIT; + *message = init_value; +} +size_t validate_version_response__get_packed_size + (const ValidateVersionResponse *message) +{ + assert(message->base.descriptor == &validate_version_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t validate_version_response__pack + (const ValidateVersionResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &validate_version_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t validate_version_response__pack_to_buffer + (const ValidateVersionResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &validate_version_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +ValidateVersionResponse * + validate_version_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (ValidateVersionResponse *) + protobuf_c_message_unpack (&validate_version_response__descriptor, + allocator, len, data); +} +void validate_version_response__free_unpacked + (ValidateVersionResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &validate_version_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define validate_version_response__field_descriptors NULL +#define validate_version_response__field_indices_by_name NULL +#define validate_version_response__number_ranges NULL +const ProtobufCMessageDescriptor validate_version_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "ValidateVersionResponse", + "ValidateVersionResponse", + "ValidateVersionResponse", + "", + sizeof(ValidateVersionResponse), + 0, + validate_version_response__field_descriptors, + validate_version_response__field_indices_by_name, + 0, validate_version_response__number_ranges, + (ProtobufCMessageInit) validate_version_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionResponse.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionResponse.pb-c.h new file mode 100644 index 000000000..0032ec8c9 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionResponse.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ValidateVersionResponse.proto */ + +#ifndef PROTOBUF_C_ValidateVersionResponse_2eproto__INCLUDED +#define PROTOBUF_C_ValidateVersionResponse_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _ValidateVersionResponse ValidateVersionResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _ValidateVersionResponse +{ + ProtobufCMessage base; +}; +#define VALIDATE_VERSION_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&validate_version_response__descriptor) \ + } + + +/* ValidateVersionResponse methods */ +void validate_version_response__init + (ValidateVersionResponse *message); +size_t validate_version_response__get_packed_size + (const ValidateVersionResponse *message); +size_t validate_version_response__pack + (const ValidateVersionResponse *message, + uint8_t *out); +size_t validate_version_response__pack_to_buffer + (const ValidateVersionResponse *message, + ProtobufCBuffer *buffer); +ValidateVersionResponse * + validate_version_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void validate_version_response__free_unpacked + (ValidateVersionResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*ValidateVersionResponse_Closure) + (const ValidateVersionResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor validate_version_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ValidateVersionResponse_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDescriptor.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDescriptor.pb-c.c new file mode 100644 index 000000000..53b9f5bfd --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDescriptor.pb-c.c @@ -0,0 +1,131 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: VersionFileDescriptor.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "VersionFileDescriptor.pb-c.h" +void version_file_descriptor__init + (VersionFileDescriptor *message) +{ + static const VersionFileDescriptor init_value = VERSION_FILE_DESCRIPTOR__INIT; + *message = init_value; +} +size_t version_file_descriptor__get_packed_size + (const VersionFileDescriptor *message) +{ + assert(message->base.descriptor == &version_file_descriptor__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t version_file_descriptor__pack + (const VersionFileDescriptor *message, + uint8_t *out) +{ + assert(message->base.descriptor == &version_file_descriptor__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t version_file_descriptor__pack_to_buffer + (const VersionFileDescriptor *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &version_file_descriptor__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +VersionFileDescriptor * + version_file_descriptor__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (VersionFileDescriptor *) + protobuf_c_message_unpack (&version_file_descriptor__descriptor, + allocator, len, data); +} +void version_file_descriptor__free_unpacked + (VersionFileDescriptor *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &version_file_descriptor__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor version_file_descriptor__field_descriptors[4] = +{ + { + "FileName", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(VersionFileDescriptor, filename), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Version", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(VersionFileDescriptor, version), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Destination", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(VersionFileDescriptor, has_destination), + offsetof(VersionFileDescriptor, destination), + &version_file_destination__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "CheckSum", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BYTES, + offsetof(VersionFileDescriptor, has_checksum), + offsetof(VersionFileDescriptor, checksum), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned version_file_descriptor__field_indices_by_name[] = { + 3, /* field[3] = CheckSum */ + 2, /* field[2] = Destination */ + 0, /* field[0] = FileName */ + 1, /* field[1] = Version */ +}; +static const ProtobufCIntRange version_file_descriptor__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor version_file_descriptor__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "VersionFileDescriptor", + "VersionFileDescriptor", + "VersionFileDescriptor", + "", + sizeof(VersionFileDescriptor), + 4, + version_file_descriptor__field_descriptors, + version_file_descriptor__field_indices_by_name, + 1, version_file_descriptor__number_ranges, + (ProtobufCMessageInit) version_file_descriptor__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDescriptor.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDescriptor.pb-c.h new file mode 100644 index 000000000..692dc6722 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDescriptor.pb-c.h @@ -0,0 +1,77 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: VersionFileDescriptor.proto */ + +#ifndef PROTOBUF_C_VersionFileDescriptor_2eproto__INCLUDED +#define PROTOBUF_C_VersionFileDescriptor_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "VersionFileDestination.pb-c.h" + +typedef struct _VersionFileDescriptor VersionFileDescriptor; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _VersionFileDescriptor +{ + ProtobufCMessage base; + char *filename; + char *version; + protobuf_c_boolean has_destination; + VersionFileDestination destination; + protobuf_c_boolean has_checksum; + ProtobufCBinaryData checksum; +}; +#define VERSION_FILE_DESCRIPTOR__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&version_file_descriptor__descriptor) \ + , NULL, NULL, 0, VERSION_FILE_DESTINATION__MCU, 0, {0,NULL} } + + +/* VersionFileDescriptor methods */ +void version_file_descriptor__init + (VersionFileDescriptor *message); +size_t version_file_descriptor__get_packed_size + (const VersionFileDescriptor *message); +size_t version_file_descriptor__pack + (const VersionFileDescriptor *message, + uint8_t *out); +size_t version_file_descriptor__pack_to_buffer + (const VersionFileDescriptor *message, + ProtobufCBuffer *buffer); +VersionFileDescriptor * + version_file_descriptor__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void version_file_descriptor__free_unpacked + (VersionFileDescriptor *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*VersionFileDescriptor_Closure) + (const VersionFileDescriptor *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor version_file_descriptor__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_VersionFileDescriptor_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDestination.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDestination.pb-c.c new file mode 100644 index 000000000..3e45ece3e --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDestination.pb-c.c @@ -0,0 +1,41 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: VersionFileDestination.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "VersionFileDestination.pb-c.h" +static const ProtobufCEnumValue version_file_destination__enum_values_by_number[4] = +{ + { "MCU", "VERSION_FILE_DESTINATION__MCU", 0 }, + { "FPGA1", "VERSION_FILE_DESTINATION__FPGA1", 1 }, + { "FPGA2", "VERSION_FILE_DESTINATION__FPGA2", 2 }, + { "FPGA3", "VERSION_FILE_DESTINATION__FPGA3", 3 }, +}; +static const ProtobufCIntRange version_file_destination__value_ranges[] = { +{0, 0},{0, 4} +}; +static const ProtobufCEnumValueIndex version_file_destination__enum_values_by_name[4] = +{ + { "FPGA1", 1 }, + { "FPGA2", 2 }, + { "FPGA3", 3 }, + { "MCU", 0 }, +}; +const ProtobufCEnumDescriptor version_file_destination__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "VersionFileDestination", + "VersionFileDestination", + "VersionFileDestination", + "", + 4, + version_file_destination__enum_values_by_number, + 4, + version_file_destination__enum_values_by_name, + 1, + version_file_destination__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDestination.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDestination.pb-c.h new file mode 100644 index 000000000..83686d194 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDestination.pb-c.h @@ -0,0 +1,45 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: VersionFileDestination.proto */ + +#ifndef PROTOBUF_C_VersionFileDestination_2eproto__INCLUDED +#define PROTOBUF_C_VersionFileDestination_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _VersionFileDestination { + VERSION_FILE_DESTINATION__MCU = 0, + VERSION_FILE_DESTINATION__FPGA1 = 1, + VERSION_FILE_DESTINATION__FPGA2 = 2, + VERSION_FILE_DESTINATION__FPGA3 = 3 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(VERSION_FILE_DESTINATION) +} VersionFileDestination; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor version_file_destination__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_VersionFileDestination_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Printing/JobTicket.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Printing/JobTicket.pb-c.c index b24330f6c..c913c9d4c 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/Printing/JobTicket.pb-c.c +++ b/Software/Embedded_SW/Embedded/Communication/PMR/Printing/JobTicket.pb-c.c @@ -55,7 +55,7 @@ void job_ticket__free_unpacked static const ProtobufCFieldDescriptor job_ticket__field_descriptors[9] = { { - "guid", + "Guid", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, @@ -165,6 +165,7 @@ static const ProtobufCFieldDescriptor job_ticket__field_descriptors[9] = }; static const unsigned job_ticket__field_indices_by_name[] = { 2, /* field[2] = EnableInterSegment */ + 0, /* field[0] = Guid */ 3, /* field[3] = InterSegmentLength */ 4, /* field[4] = Length */ 1, /* field[1] = Name */ @@ -172,7 +173,6 @@ static const unsigned job_ticket__field_indices_by_name[] = { 8, /* field[8] = Segments */ 7, /* field[7] = Spool */ 6, /* field[6] = WindingMethod */ - 0, /* field[0] = guid */ }; static const ProtobufCIntRange job_ticket__number_ranges[1 + 1] = { |
