From 33de2cfe94b9fde80f987aab9ad5aa95be6d4371 Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Wed, 12 Dec 2018 18:46:56 +0200 Subject: PMR - protobuf updated to latest version --- .../Communication/PMR/Common/MessageType.pb-c.c | 26 ++- .../Communication/PMR/Common/MessageType.pb-c.h | 10 +- .../PMR/Diagnostics/DiagnosticsMonitors.pb-c.c | 211 +++++++++++++++------ .../PMR/Diagnostics/DiagnosticsMonitors.pb-c.h | 20 +- .../PMR/Diagnostics/ThreadJoggingRequest.pb-c.c | 28 +-- .../PMR/Diagnostics/ThreadJoggingRequest.pb-c.h | 5 +- .../FirmwareUpgrade/ActivateVersionRequest.pb-c.c | 92 +++++++++ .../FirmwareUpgrade/ActivateVersionRequest.pb-c.h | 71 +++++++ .../FirmwareUpgrade/ActivateVersionResponse.pb-c.c | 72 +++++++ .../FirmwareUpgrade/ActivateVersionResponse.pb-c.h | 70 +++++++ .../FirmwareUpgrade/ValidateVersionRequest.pb-c.c | 92 +++++++++ .../FirmwareUpgrade/ValidateVersionRequest.pb-c.h | 71 +++++++ .../FirmwareUpgrade/ValidateVersionResponse.pb-c.c | 72 +++++++ .../FirmwareUpgrade/ValidateVersionResponse.pb-c.h | 70 +++++++ .../FirmwareUpgrade/VersionFileDescriptor.pb-c.c | 131 +++++++++++++ .../FirmwareUpgrade/VersionFileDescriptor.pb-c.h | 77 ++++++++ .../FirmwareUpgrade/VersionFileDestination.pb-c.c | 41 ++++ .../FirmwareUpgrade/VersionFileDestination.pb-c.h | 45 +++++ .../VersionPackageDescriptor.pb-c.c | 92 +++++++++ .../VersionPackageDescriptor.pb-c.h | 73 +++++++ .../PMR/IO/ActivateVersionRequest.pb-c.c | 92 --------- .../PMR/IO/ActivateVersionRequest.pb-c.h | 73 ------- .../PMR/IO/ActivateVersionResponse.pb-c.c | 72 ------- .../PMR/IO/ActivateVersionResponse.pb-c.h | 70 ------- .../Communication/PMR/IO/DeleteRequest.pb-c.c | 23 ++- .../Communication/PMR/IO/DeleteRequest.pb-c.h | 5 +- .../PMR/IO/FileChunkDownloadRequest.pb-c.c | 19 +- .../PMR/IO/FileChunkDownloadRequest.pb-c.h | 4 +- .../PMR/IO/FileChunkUploadRequest.pb-c.c | 30 ++- .../PMR/IO/FileChunkUploadRequest.pb-c.h | 3 +- .../Embedded/Communication/PMR/IO/FileInfo.pb-c.c | 2 +- .../Embedded/Communication/PMR/IO/FileInfo.pb-c.h | 2 +- .../Communication/PMR/IO/FileUploadRequest.pb-c.c | 6 +- .../Communication/PMR/IO/FileUploadRequest.pb-c.h | 2 +- .../PMR/IO/GetStorageInfoResponse.pb-c.c | 4 +- .../PMR/IO/GetStorageInfoResponse.pb-c.h | 4 +- .../PMR/IO/ValidateVersionRequest.pb-c.c | 92 --------- .../PMR/IO/ValidateVersionRequest.pb-c.h | 73 ------- .../PMR/IO/ValidateVersionResponse.pb-c.c | 72 ------- .../PMR/IO/ValidateVersionResponse.pb-c.h | 70 ------- .../PMR/IO/VersionFileDescriptor.pb-c.c | 131 ------------- .../PMR/IO/VersionFileDescriptor.pb-c.h | 77 -------- .../PMR/IO/VersionFileDestination.pb-c.c | 41 ---- .../PMR/IO/VersionFileDestination.pb-c.h | 45 ----- 44 files changed, 1334 insertions(+), 1047 deletions(-) create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionRequest.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionRequest.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionResponse.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionResponse.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ValidateVersionRequest.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ValidateVersionRequest.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ValidateVersionResponse.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ValidateVersionResponse.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDescriptor.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDescriptor.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDestination.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDestination.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionPackageDescriptor.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionPackageDescriptor.pb-c.h delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionRequest.pb-c.c delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionRequest.pb-c.h delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionResponse.pb-c.c delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionResponse.pb-c.h delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionRequest.pb-c.c delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionRequest.pb-c.h delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionResponse.pb-c.c delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionResponse.pb-c.h delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDescriptor.pb-c.c delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDescriptor.pb-c.h delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDestination.pb-c.c delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDestination.pb-c.h (limited to 'Software/Embedded_SW/Embedded/Communication') diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.c index 864d3e7a7..bd6c3fdd6 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.c +++ b/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.c @@ -7,7 +7,7 @@ #endif #include "MessageType.pb-c.h" -static const ProtobufCEnumValue message_type__enum_values_by_number[193] = +static const ProtobufCEnumValue message_type__enum_values_by_number[201] = { { "None", "MESSAGE_TYPE__None", 0 }, { "ErrorResponse", "MESSAGE_TYPE__ErrorResponse", 1 }, @@ -202,14 +202,24 @@ static const ProtobufCEnumValue message_type__enum_values_by_number[193] = { "GetStorageInfoResponse", "MESSAGE_TYPE__GetStorageInfoResponse", 7013 }, { "GetFilesRequest", "MESSAGE_TYPE__GetFilesRequest", 7014 }, { "GetFilesResponse", "MESSAGE_TYPE__GetFilesResponse", 7015 }, + { "FileDownloadRequest", "MESSAGE_TYPE__FileDownloadRequest", 7016 }, + { "FileDownloadResponse", "MESSAGE_TYPE__FileDownloadResponse", 7017 }, + { "FileChunkDownloadRequest", "MESSAGE_TYPE__FileChunkDownloadRequest", 7018 }, + { "FileChunkDownloadResponse", "MESSAGE_TYPE__FileChunkDownloadResponse", 7019 }, + { "ValidateVersionRequest", "MESSAGE_TYPE__ValidateVersionRequest", 7020 }, + { "ValidateVersionResponse", "MESSAGE_TYPE__ValidateVersionResponse", 7021 }, + { "ActivateVersionRequest", "MESSAGE_TYPE__ActivateVersionRequest", 7022 }, + { "ActivateVersionResponse", "MESSAGE_TYPE__ActivateVersionResponse", 7023 }, }; static const ProtobufCIntRange message_type__value_ranges[] = { -{0, 0},{3, 2},{1000, 104},{2000, 113},{3000, 153},{4000, 163},{5000, 167},{6000, 171},{7000, 177},{0, 193} +{0, 0},{3, 2},{1000, 104},{2000, 113},{3000, 153},{4000, 163},{5000, 167},{6000, 171},{7000, 177},{0, 201} }; -static const ProtobufCEnumValueIndex message_type__enum_values_by_name[193] = +static const ProtobufCEnumValueIndex message_type__enum_values_by_name[201] = { { "AbortJobRequest", 155 }, { "AbortJobResponse", 156 }, + { "ActivateVersionRequest", 199 }, + { "ActivateVersionResponse", 200 }, { "CalculateRequest", 2 }, { "CalculateResponse", 3 }, { "ConnectRequest", 173 }, @@ -240,8 +250,12 @@ static const ProtobufCEnumValueIndex message_type__enum_values_by_name[193] = { "ExternalBridgeLogoutRequest", 107 }, { "ExternalBridgeLogoutResponse", 108 }, { "ExternalBridgeUdpDiscoveryPacket", 104 }, + { "FileChunkDownloadRequest", 195 }, + { "FileChunkDownloadResponse", 196 }, { "FileChunkUploadRequest", 179 }, { "FileChunkUploadResponse", 180 }, + { "FileDownloadRequest", 193 }, + { "FileDownloadResponse", 194 }, { "FileUploadRequest", 177 }, { "FileUploadResponse", 178 }, { "GetFilesRequest", 191 }, @@ -401,6 +415,8 @@ static const ProtobufCEnumValueIndex message_type__enum_values_by_name[193] = { "UploadHardwareConfigurationResponse", 168 }, { "UploadProcessParametersRequest", 157 }, { "UploadProcessParametersResponse", 158 }, + { "ValidateVersionRequest", 197 }, + { "ValidateVersionResponse", 198 }, }; const ProtobufCEnumDescriptor message_type__descriptor = { @@ -409,9 +425,9 @@ const ProtobufCEnumDescriptor message_type__descriptor = "MessageType", "MessageType", "", - 193, + 201, message_type__enum_values_by_number, - 193, + 201, message_type__enum_values_by_name, 9, message_type__value_ranges, diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.h index acb7261b9..676df890f 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.h +++ b/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.h @@ -212,7 +212,15 @@ typedef enum _MessageType { MESSAGE_TYPE__GetStorageInfoRequest = 7012, MESSAGE_TYPE__GetStorageInfoResponse = 7013, MESSAGE_TYPE__GetFilesRequest = 7014, - MESSAGE_TYPE__GetFilesResponse = 7015 + MESSAGE_TYPE__GetFilesResponse = 7015, + MESSAGE_TYPE__FileDownloadRequest = 7016, + MESSAGE_TYPE__FileDownloadResponse = 7017, + MESSAGE_TYPE__FileChunkDownloadRequest = 7018, + MESSAGE_TYPE__FileChunkDownloadResponse = 7019, + MESSAGE_TYPE__ValidateVersionRequest = 7020, + MESSAGE_TYPE__ValidateVersionResponse = 7021, + MESSAGE_TYPE__ActivateVersionRequest = 7022, + MESSAGE_TYPE__ActivateVersionResponse = 7023 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(MESSAGE_TYPE) } MessageType; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.c index 4ef4913d4..3bbdcdd8c 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.c +++ b/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.c @@ -52,7 +52,7 @@ void diagnostics_monitors__free_unpacked assert(message->base.descriptor == &diagnostics_monitors__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48] = +static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[55] = { { "Dancer1Angle", @@ -354,21 +354,9 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, - { - "MidTankPressure", - 26, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_DOUBLE, - offsetof(DiagnosticsMonitors, n_midtankpressure), - offsetof(DiagnosticsMonitors, midtankpressure), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, { "FilterDeltaPressure", - 27, + 26, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_filterdeltapressure), @@ -380,7 +368,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "ChillerTemperature", - 28, + 27, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_chillertemperature), @@ -392,7 +380,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser1MotorFrequency", - 29, + 28, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser1motorfrequency), @@ -404,7 +392,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser2MotorFrequency", - 30, + 29, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser2motorfrequency), @@ -416,7 +404,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser3MotorFrequency", - 31, + 30, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser3motorfrequency), @@ -428,7 +416,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser4MotorFrequency", - 32, + 31, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser4motorfrequency), @@ -440,7 +428,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser5MotorFrequency", - 33, + 32, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser5motorfrequency), @@ -452,7 +440,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser6MotorFrequency", - 34, + 33, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser6motorfrequency), @@ -464,7 +452,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser7MotorFrequency", - 35, + 34, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser7motorfrequency), @@ -476,7 +464,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser8MotorFrequency", - 36, + 35, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser8motorfrequency), @@ -488,7 +476,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "HeadZone4Temperature", - 37, + 36, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_headzone4temperature), @@ -500,7 +488,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "HeadZone5Temperature", - 38, + 37, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_headzone5temperature), @@ -512,7 +500,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "HeadZone6Temperature", - 39, + 38, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_headzone6temperature), @@ -524,7 +512,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "BlowerVoltage", - 40, + 39, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_blowervoltage), @@ -536,7 +524,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser1Pressure", - 41, + 40, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser1pressure), @@ -548,7 +536,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser2Pressure", - 42, + 41, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser2pressure), @@ -560,7 +548,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser3Pressure", - 43, + 42, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser3pressure), @@ -572,7 +560,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser4Pressure", - 44, + 43, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser4pressure), @@ -584,7 +572,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser5Pressure", - 45, + 44, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser5pressure), @@ -596,7 +584,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser6Pressure", - 46, + 45, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser6pressure), @@ -608,7 +596,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser7Pressure", - 47, + 46, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser7pressure), @@ -620,7 +608,7 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 }, { "Dispenser8Pressure", - 48, + 47, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DiagnosticsMonitors, n_dispenser8pressure), @@ -630,29 +618,125 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[48 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "MidTank1Level", + 48, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(DiagnosticsMonitors, n_midtank1level), + offsetof(DiagnosticsMonitors, midtank1level), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MidTank2Level", + 49, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(DiagnosticsMonitors, n_midtank2level), + offsetof(DiagnosticsMonitors, midtank2level), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MidTank3Level", + 50, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(DiagnosticsMonitors, n_midtank3level), + offsetof(DiagnosticsMonitors, midtank3level), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MidTank4Level", + 51, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(DiagnosticsMonitors, n_midtank4level), + offsetof(DiagnosticsMonitors, midtank4level), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MidTank5Level", + 52, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(DiagnosticsMonitors, n_midtank5level), + offsetof(DiagnosticsMonitors, midtank5level), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MidTank6Level", + 53, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(DiagnosticsMonitors, n_midtank6level), + offsetof(DiagnosticsMonitors, midtank6level), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MidTank7Level", + 54, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(DiagnosticsMonitors, n_midtank7level), + offsetof(DiagnosticsMonitors, midtank7level), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MidTank8Level", + 55, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(DiagnosticsMonitors, n_midtank8level), + offsetof(DiagnosticsMonitors, midtank8level), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned diagnostics_monitors__field_indices_by_name[] = { - 39, /* field[39] = BlowerVoltage */ - 27, /* field[27] = ChillerTemperature */ + 38, /* field[38] = BlowerVoltage */ + 26, /* field[26] = ChillerTemperature */ 0, /* field[0] = Dancer1Angle */ 1, /* field[1] = Dancer2Angle */ 2, /* field[2] = Dancer3Angle */ - 28, /* field[28] = Dispenser1MotorFrequency */ - 40, /* field[40] = Dispenser1Pressure */ - 29, /* field[29] = Dispenser2MotorFrequency */ - 41, /* field[41] = Dispenser2Pressure */ - 30, /* field[30] = Dispenser3MotorFrequency */ - 42, /* field[42] = Dispenser3Pressure */ - 31, /* field[31] = Dispenser4MotorFrequency */ - 43, /* field[43] = Dispenser4Pressure */ - 32, /* field[32] = Dispenser5MotorFrequency */ - 44, /* field[44] = Dispenser5Pressure */ - 33, /* field[33] = Dispenser6MotorFrequency */ - 45, /* field[45] = Dispenser6Pressure */ - 34, /* field[34] = Dispenser7MotorFrequency */ - 46, /* field[46] = Dispenser7Pressure */ - 35, /* field[35] = Dispenser8MotorFrequency */ - 47, /* field[47] = Dispenser8Pressure */ + 27, /* field[27] = Dispenser1MotorFrequency */ + 39, /* field[39] = Dispenser1Pressure */ + 28, /* field[28] = Dispenser2MotorFrequency */ + 40, /* field[40] = Dispenser2Pressure */ + 29, /* field[29] = Dispenser3MotorFrequency */ + 41, /* field[41] = Dispenser3Pressure */ + 30, /* field[30] = Dispenser4MotorFrequency */ + 42, /* field[42] = Dispenser4Pressure */ + 31, /* field[31] = Dispenser5MotorFrequency */ + 43, /* field[43] = Dispenser5Pressure */ + 32, /* field[32] = Dispenser6MotorFrequency */ + 44, /* field[44] = Dispenser6Pressure */ + 33, /* field[33] = Dispenser7MotorFrequency */ + 45, /* field[45] = Dispenser7Pressure */ + 34, /* field[34] = Dispenser8MotorFrequency */ + 46, /* field[46] = Dispenser8Pressure */ 22, /* field[22] = DispensersAngularEncoders */ 23, /* field[23] = DispensersLinearPositions */ 21, /* field[21] = DispensersMotorsFrequency */ @@ -664,15 +748,22 @@ static const unsigned diagnostics_monitors__field_indices_by_name[] = { 18, /* field[18] = DryerZone3Temperature */ 3, /* field[3] = FeederMotorFrequency */ 14, /* field[14] = FeederTension */ - 26, /* field[26] = FilterDeltaPressure */ + 25, /* field[25] = FilterDeltaPressure */ 13, /* field[13] = HeadAirFlow */ 10, /* field[10] = HeadZone1Temperature */ 11, /* field[11] = HeadZone2Temperature */ 12, /* field[12] = HeadZone3Temperature */ - 36, /* field[36] = HeadZone4Temperature */ - 37, /* field[37] = HeadZone5Temperature */ - 38, /* field[38] = HeadZone6Temperature */ - 25, /* field[25] = MidTankPressure */ + 35, /* field[35] = HeadZone4Temperature */ + 36, /* field[36] = HeadZone5Temperature */ + 37, /* field[37] = HeadZone6Temperature */ + 47, /* field[47] = MidTank1Level */ + 48, /* field[48] = MidTank2Level */ + 49, /* field[49] = MidTank3Level */ + 50, /* field[50] = MidTank4Level */ + 51, /* field[51] = MidTank5Level */ + 52, /* field[52] = MidTank6Level */ + 53, /* field[53] = MidTank7Level */ + 54, /* field[54] = MidTank8Level */ 9, /* field[9] = MixerTemperature */ 5, /* field[5] = PollerMotor */ 15, /* field[15] = PullerTension */ @@ -684,7 +775,7 @@ static const unsigned diagnostics_monitors__field_indices_by_name[] = { static const ProtobufCIntRange diagnostics_monitors__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 48 } + { 0, 55 } }; const ProtobufCMessageDescriptor diagnostics_monitors__descriptor = { @@ -694,7 +785,7 @@ const ProtobufCMessageDescriptor diagnostics_monitors__descriptor = "DiagnosticsMonitors", "", sizeof(DiagnosticsMonitors), - 48, + 55, diagnostics_monitors__field_descriptors, diagnostics_monitors__field_indices_by_name, 1, diagnostics_monitors__number_ranges, diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.h index 9a83f61be..5917ffd76 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.h +++ b/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.h @@ -77,8 +77,6 @@ struct _DiagnosticsMonitors DoubleArray **dispenserslinearpositions; size_t n_dispenserspressure; DoubleArray **dispenserspressure; - size_t n_midtankpressure; - double *midtankpressure; size_t n_filterdeltapressure; double *filterdeltapressure; size_t n_chillertemperature; @@ -123,10 +121,26 @@ struct _DiagnosticsMonitors double *dispenser7pressure; size_t n_dispenser8pressure; double *dispenser8pressure; + size_t n_midtank1level; + double *midtank1level; + size_t n_midtank2level; + double *midtank2level; + size_t n_midtank3level; + double *midtank3level; + size_t n_midtank4level; + double *midtank4level; + size_t n_midtank5level; + double *midtank5level; + size_t n_midtank6level; + double *midtank6level; + size_t n_midtank7level; + double *midtank7level; + size_t n_midtank8level; + double *midtank8level; }; #define DIAGNOSTICS_MONITORS__INIT \ { PROTOBUF_C_MESSAGE_INIT (&diagnostics_monitors__descriptor) \ - , 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL } + , 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL } /* DiagnosticsMonitors methods */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/ThreadJoggingRequest.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/ThreadJoggingRequest.pb-c.c index f0b387414..beefe6145 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/ThreadJoggingRequest.pb-c.c +++ b/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/ThreadJoggingRequest.pb-c.c @@ -52,20 +52,8 @@ void thread_jogging_request__free_unpacked assert(message->base.descriptor == &thread_jogging_request__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor thread_jogging_request__field_descriptors[2] = +static const ProtobufCFieldDescriptor thread_jogging_request__field_descriptors[1] = { - { - "Direction", - 1, - PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_ENUM, - offsetof(ThreadJoggingRequest, has_direction), - offsetof(ThreadJoggingRequest, direction), - &motor_direction__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, { "Speed", 3, @@ -80,14 +68,12 @@ static const ProtobufCFieldDescriptor thread_jogging_request__field_descriptors[ }, }; static const unsigned thread_jogging_request__field_indices_by_name[] = { - 0, /* field[0] = Direction */ - 1, /* field[1] = Speed */ + 0, /* field[0] = Speed */ }; -static const ProtobufCIntRange thread_jogging_request__number_ranges[2 + 1] = +static const ProtobufCIntRange thread_jogging_request__number_ranges[1 + 1] = { - { 1, 0 }, - { 3, 1 }, - { 0, 2 } + { 3, 0 }, + { 0, 1 } }; const ProtobufCMessageDescriptor thread_jogging_request__descriptor = { @@ -97,10 +83,10 @@ const ProtobufCMessageDescriptor thread_jogging_request__descriptor = "ThreadJoggingRequest", "", sizeof(ThreadJoggingRequest), - 2, + 1, thread_jogging_request__field_descriptors, thread_jogging_request__field_indices_by_name, - 2, thread_jogging_request__number_ranges, + 1, thread_jogging_request__number_ranges, (ProtobufCMessageInit) thread_jogging_request__init, NULL,NULL,NULL /* reserved[123] */ }; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/ThreadJoggingRequest.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/ThreadJoggingRequest.pb-c.h index 7669215aa..799d297b3 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/ThreadJoggingRequest.pb-c.h +++ b/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/ThreadJoggingRequest.pb-c.h @@ -14,7 +14,6 @@ PROTOBUF_C__BEGIN_DECLS # 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 "MotorDirection.pb-c.h" typedef struct _ThreadJoggingRequest ThreadJoggingRequest; @@ -27,14 +26,12 @@ typedef struct _ThreadJoggingRequest ThreadJoggingRequest; struct _ThreadJoggingRequest { ProtobufCMessage base; - protobuf_c_boolean has_direction; - MotorDirection direction; protobuf_c_boolean has_speed; double speed; }; #define THREAD_JOGGING_REQUEST__INIT \ { PROTOBUF_C_MESSAGE_INIT (&thread_jogging_request__descriptor) \ - , 0, MOTOR_DIRECTION__Forward, 0, 0 } + , 0, 0 } /* ThreadJoggingRequest methods */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionRequest.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionRequest.pb-c.c new file mode 100644 index 000000000..634f2ec04 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/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] = +{ + { + "Path", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(ActivateVersionRequest, path), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned activate_version_request__field_indices_by_name[] = { + 0, /* field[0] = Path */ +}; +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/FirmwareUpgrade/ActivateVersionRequest.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionRequest.pb-c.h new file mode 100644 index 000000000..ee95d51a2 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionRequest.pb-c.h @@ -0,0 +1,71 @@ +/* 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__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 _ActivateVersionRequest ActivateVersionRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _ActivateVersionRequest +{ + ProtobufCMessage base; + char *path; +}; +#define ACTIVATE_VERSION_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&activate_version_request__descriptor) \ + , 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/FirmwareUpgrade/ActivateVersionResponse.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionResponse.pb-c.c new file mode 100644 index 000000000..6f54f8708 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/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/FirmwareUpgrade/ActivateVersionResponse.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionResponse.pb-c.h new file mode 100644 index 000000000..10dc41bcb --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/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__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/FirmwareUpgrade/ValidateVersionRequest.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ValidateVersionRequest.pb-c.c new file mode 100644 index 000000000..5cd60bd02 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/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] = +{ + { + "Path", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(ValidateVersionRequest, path), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned validate_version_request__field_indices_by_name[] = { + 0, /* field[0] = Path */ +}; +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/FirmwareUpgrade/ValidateVersionRequest.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ValidateVersionRequest.pb-c.h new file mode 100644 index 000000000..b55eadc44 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ValidateVersionRequest.pb-c.h @@ -0,0 +1,71 @@ +/* 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__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 _ValidateVersionRequest ValidateVersionRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _ValidateVersionRequest +{ + ProtobufCMessage base; + char *path; +}; +#define VALIDATE_VERSION_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&validate_version_request__descriptor) \ + , 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/FirmwareUpgrade/ValidateVersionResponse.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ValidateVersionResponse.pb-c.c new file mode 100644 index 000000000..9be2cce20 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/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/FirmwareUpgrade/ValidateVersionResponse.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ValidateVersionResponse.pb-c.h new file mode 100644 index 000000000..0032ec8c9 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/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__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/FirmwareUpgrade/VersionFileDescriptor.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDescriptor.pb-c.c new file mode 100644 index 000000000..53b9f5bfd --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/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/FirmwareUpgrade/VersionFileDescriptor.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDescriptor.pb-c.h new file mode 100644 index 000000000..692dc6722 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/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__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/FirmwareUpgrade/VersionFileDestination.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDestination.pb-c.c new file mode 100644 index 000000000..3e45ece3e --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/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/FirmwareUpgrade/VersionFileDestination.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionFileDestination.pb-c.h new file mode 100644 index 000000000..83686d194 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/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__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/FirmwareUpgrade/VersionPackageDescriptor.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionPackageDescriptor.pb-c.c new file mode 100644 index 000000000..d0b190ca8 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionPackageDescriptor.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: VersionPackageDescriptor.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "VersionPackageDescriptor.pb-c.h" +void version_package_descriptor__init + (VersionPackageDescriptor *message) +{ + static const VersionPackageDescriptor init_value = VERSION_PACKAGE_DESCRIPTOR__INIT; + *message = init_value; +} +size_t version_package_descriptor__get_packed_size + (const VersionPackageDescriptor *message) +{ + assert(message->base.descriptor == &version_package_descriptor__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t version_package_descriptor__pack + (const VersionPackageDescriptor *message, + uint8_t *out) +{ + assert(message->base.descriptor == &version_package_descriptor__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t version_package_descriptor__pack_to_buffer + (const VersionPackageDescriptor *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &version_package_descriptor__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +VersionPackageDescriptor * + version_package_descriptor__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (VersionPackageDescriptor *) + protobuf_c_message_unpack (&version_package_descriptor__descriptor, + allocator, len, data); +} +void version_package_descriptor__free_unpacked + (VersionPackageDescriptor *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &version_package_descriptor__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor version_package_descriptor__field_descriptors[1] = +{ + { + "FileDescriptors", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(VersionPackageDescriptor, n_filedescriptors), + offsetof(VersionPackageDescriptor, filedescriptors), + &version_file_descriptor__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned version_package_descriptor__field_indices_by_name[] = { + 0, /* field[0] = FileDescriptors */ +}; +static const ProtobufCIntRange version_package_descriptor__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor version_package_descriptor__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "VersionPackageDescriptor", + "VersionPackageDescriptor", + "VersionPackageDescriptor", + "", + sizeof(VersionPackageDescriptor), + 1, + version_package_descriptor__field_descriptors, + version_package_descriptor__field_indices_by_name, + 1, version_package_descriptor__number_ranges, + (ProtobufCMessageInit) version_package_descriptor__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionPackageDescriptor.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionPackageDescriptor.pb-c.h new file mode 100644 index 000000000..3b223bab9 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/VersionPackageDescriptor.pb-c.h @@ -0,0 +1,73 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: VersionPackageDescriptor.proto */ + +#ifndef PROTOBUF_C_VersionPackageDescriptor_2eproto__INCLUDED +#define PROTOBUF_C_VersionPackageDescriptor_2eproto__INCLUDED + +#include + +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 _VersionPackageDescriptor VersionPackageDescriptor; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _VersionPackageDescriptor +{ + ProtobufCMessage base; + size_t n_filedescriptors; + VersionFileDescriptor **filedescriptors; +}; +#define VERSION_PACKAGE_DESCRIPTOR__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&version_package_descriptor__descriptor) \ + , 0,NULL } + + +/* VersionPackageDescriptor methods */ +void version_package_descriptor__init + (VersionPackageDescriptor *message); +size_t version_package_descriptor__get_packed_size + (const VersionPackageDescriptor *message); +size_t version_package_descriptor__pack + (const VersionPackageDescriptor *message, + uint8_t *out); +size_t version_package_descriptor__pack_to_buffer + (const VersionPackageDescriptor *message, + ProtobufCBuffer *buffer); +VersionPackageDescriptor * + version_package_descriptor__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void version_package_descriptor__free_unpacked + (VersionPackageDescriptor *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*VersionPackageDescriptor_Closure) + (const VersionPackageDescriptor *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor version_package_descriptor__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_VersionPackageDescriptor_2eproto__INCLUDED */ 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 deleted file mode 100644 index 3602f7f9e..000000000 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionRequest.pb-c.c +++ /dev/null @@ -1,92 +0,0 @@ -/* 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 deleted file mode 100644 index 90fe6479d..000000000 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionRequest.pb-c.h +++ /dev/null @@ -1,73 +0,0 @@ -/* 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__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 deleted file mode 100644 index 6f54f8708..000000000 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionResponse.pb-c.c +++ /dev/null @@ -1,72 +0,0 @@ -/* 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 deleted file mode 100644 index 10dc41bcb..000000000 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ActivateVersionResponse.pb-c.h +++ /dev/null @@ -1,70 +0,0 @@ -/* 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__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/DeleteRequest.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/IO/DeleteRequest.pb-c.c index 27fd07849..275a1b11f 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/DeleteRequest.pb-c.c +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/DeleteRequest.pb-c.c @@ -52,11 +52,11 @@ void delete_request__free_unpacked assert(message->base.descriptor == &delete_request__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor delete_request__field_descriptors[1] = +static const ProtobufCFieldDescriptor delete_request__field_descriptors[2] = { { "Path", - 2, + 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ @@ -66,14 +66,27 @@ static const ProtobufCFieldDescriptor delete_request__field_descriptors[1] = 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "Attribute", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(DeleteRequest, has_attribute), + offsetof(DeleteRequest, attribute), + &file_attribute__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned delete_request__field_indices_by_name[] = { + 1, /* field[1] = Attribute */ 0, /* field[0] = Path */ }; static const ProtobufCIntRange delete_request__number_ranges[1 + 1] = { - { 2, 0 }, - { 0, 1 } + { 1, 0 }, + { 0, 2 } }; const ProtobufCMessageDescriptor delete_request__descriptor = { @@ -83,7 +96,7 @@ const ProtobufCMessageDescriptor delete_request__descriptor = "DeleteRequest", "", sizeof(DeleteRequest), - 1, + 2, delete_request__field_descriptors, delete_request__field_indices_by_name, 1, delete_request__number_ranges, diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/DeleteRequest.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/IO/DeleteRequest.pb-c.h index 79dabee5e..2ab6d7aa7 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/DeleteRequest.pb-c.h +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/DeleteRequest.pb-c.h @@ -14,6 +14,7 @@ PROTOBUF_C__BEGIN_DECLS # 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 "FileAttribute.pb-c.h" typedef struct _DeleteRequest DeleteRequest; @@ -27,10 +28,12 @@ struct _DeleteRequest { ProtobufCMessage base; char *path; + protobuf_c_boolean has_attribute; + FileAttribute attribute; }; #define DELETE_REQUEST__INIT \ { PROTOBUF_C_MESSAGE_INIT (&delete_request__descriptor) \ - , NULL } + , NULL, 0, FILE_ATTRIBUTE__Unspecified } /* DeleteRequest methods */ 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 index 44c892aec..e54f04f95 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadRequest.pb-c.c +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadRequest.pb-c.c @@ -52,7 +52,7 @@ void file_chunk_download_request__free_unpacked 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] = +static const ProtobufCFieldDescriptor file_chunk_download_request__field_descriptors[3] = { { "DownloadID", @@ -90,29 +90,16 @@ static const ProtobufCFieldDescriptor file_chunk_download_request__field_descrip 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 } + { 0, 3 } }; const ProtobufCMessageDescriptor file_chunk_download_request__descriptor = { @@ -122,7 +109,7 @@ const ProtobufCMessageDescriptor file_chunk_download_request__descriptor = "FileChunkDownloadRequest", "", sizeof(FileChunkDownloadRequest), - 4, + 3, file_chunk_download_request__field_descriptors, file_chunk_download_request__field_indices_by_name, 1, file_chunk_download_request__number_ranges, 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 index 1de5229cd..609b7905c 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadRequest.pb-c.h +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkDownloadRequest.pb-c.h @@ -30,12 +30,10 @@ struct _FileChunkDownloadRequest 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 } + , NULL, NULL, 0, 0 } /* FileChunkDownloadRequest methods */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkUploadRequest.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkUploadRequest.pb-c.c index a4ca27f4f..1c4f4110c 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkUploadRequest.pb-c.c +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkUploadRequest.pb-c.c @@ -52,7 +52,7 @@ void file_chunk_upload_request__free_unpacked assert(message->base.descriptor == &file_chunk_upload_request__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor file_chunk_upload_request__field_descriptors[3] = +static const ProtobufCFieldDescriptor file_chunk_upload_request__field_descriptors[4] = { { "UploadID", @@ -67,9 +67,21 @@ static const ProtobufCFieldDescriptor file_chunk_upload_request__field_descripto 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "Buffer", + "Path", 2, PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(FileChunkUploadRequest, path), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Buffer", + 3, + PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BYTES, offsetof(FileChunkUploadRequest, has_buffer), offsetof(FileChunkUploadRequest, buffer), @@ -92,15 +104,15 @@ static const ProtobufCFieldDescriptor file_chunk_upload_request__field_descripto }, }; static const unsigned file_chunk_upload_request__field_indices_by_name[] = { - 1, /* field[1] = Buffer */ - 2, /* field[2] = IsCanceled */ + 2, /* field[2] = Buffer */ + 3, /* field[3] = IsCanceled */ + 1, /* field[1] = Path */ 0, /* field[0] = UploadID */ }; -static const ProtobufCIntRange file_chunk_upload_request__number_ranges[2 + 1] = +static const ProtobufCIntRange file_chunk_upload_request__number_ranges[1 + 1] = { { 1, 0 }, - { 4, 2 }, - { 0, 3 } + { 0, 4 } }; const ProtobufCMessageDescriptor file_chunk_upload_request__descriptor = { @@ -110,10 +122,10 @@ const ProtobufCMessageDescriptor file_chunk_upload_request__descriptor = "FileChunkUploadRequest", "", sizeof(FileChunkUploadRequest), - 3, + 4, file_chunk_upload_request__field_descriptors, file_chunk_upload_request__field_indices_by_name, - 2, file_chunk_upload_request__number_ranges, + 1, file_chunk_upload_request__number_ranges, (ProtobufCMessageInit) file_chunk_upload_request__init, NULL,NULL,NULL /* reserved[123] */ }; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkUploadRequest.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkUploadRequest.pb-c.h index 5b084a772..0010dd701 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkUploadRequest.pb-c.h +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileChunkUploadRequest.pb-c.h @@ -27,6 +27,7 @@ struct _FileChunkUploadRequest { ProtobufCMessage base; char *uploadid; + char *path; protobuf_c_boolean has_buffer; ProtobufCBinaryData buffer; protobuf_c_boolean has_iscanceled; @@ -34,7 +35,7 @@ struct _FileChunkUploadRequest }; #define FILE_CHUNK_UPLOAD_REQUEST__INIT \ { PROTOBUF_C_MESSAGE_INIT (&file_chunk_upload_request__descriptor) \ - , NULL, 0, {0,NULL}, 0, 0 } + , NULL, NULL, 0, {0,NULL}, 0, 0 } /* FileChunkUploadRequest methods */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileInfo.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileInfo.pb-c.c index a27b5b1fc..dd71b8ac1 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileInfo.pb-c.c +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileInfo.pb-c.c @@ -82,7 +82,7 @@ static const ProtobufCFieldDescriptor file_info__field_descriptors[6] = "Length", 3, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_INT64, offsetof(FileInfo, has_length), offsetof(FileInfo, length), NULL, diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileInfo.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileInfo.pb-c.h index 5875b98a8..393b8276b 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileInfo.pb-c.h +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileInfo.pb-c.h @@ -30,7 +30,7 @@ struct _FileInfo char *name; char *fullpath; protobuf_c_boolean has_length; - int32_t length; + int64_t length; protobuf_c_boolean has_lastmodifieddate; int32_t lastmodifieddate; protobuf_c_boolean has_lastmodifiedtime; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileUploadRequest.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileUploadRequest.pb-c.c index 4b17c92ed..25349a4e1 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileUploadRequest.pb-c.c +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileUploadRequest.pb-c.c @@ -55,12 +55,12 @@ void file_upload_request__free_unpacked static const ProtobufCFieldDescriptor file_upload_request__field_descriptors[2] = { { - "FileName", + "Path", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(FileUploadRequest, filename), + offsetof(FileUploadRequest, path), NULL, NULL, 0, /* flags */ @@ -80,8 +80,8 @@ static const ProtobufCFieldDescriptor file_upload_request__field_descriptors[2] }, }; static const unsigned file_upload_request__field_indices_by_name[] = { - 0, /* field[0] = FileName */ 1, /* field[1] = Length */ + 0, /* field[0] = Path */ }; static const ProtobufCIntRange file_upload_request__number_ranges[1 + 1] = { diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileUploadRequest.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileUploadRequest.pb-c.h index c4b936d12..d8eabb4ee 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileUploadRequest.pb-c.h +++ b/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileUploadRequest.pb-c.h @@ -26,7 +26,7 @@ typedef struct _FileUploadRequest FileUploadRequest; struct _FileUploadRequest { ProtobufCMessage base; - char *filename; + char *path; protobuf_c_boolean has_length; int64_t length; }; 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 864b46201..6c45145e5 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 @@ -58,7 +58,7 @@ static const ProtobufCFieldDescriptor get_storage_info_response__field_descripto "Capacity", 1, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_INT64, offsetof(GetStorageInfoResponse, has_capacity), offsetof(GetStorageInfoResponse, capacity), NULL, @@ -70,7 +70,7 @@ static const ProtobufCFieldDescriptor get_storage_info_response__field_descripto "FreeSpace", 2, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_INT64, offsetof(GetStorageInfoResponse, has_freespace), offsetof(GetStorageInfoResponse, freespace), NULL, 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 beda98113..822dafbb5 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 @@ -27,9 +27,9 @@ struct _GetStorageInfoResponse { ProtobufCMessage base; protobuf_c_boolean has_capacity; - int32_t capacity; + int64_t capacity; protobuf_c_boolean has_freespace; - int32_t freespace; + int64_t freespace; char *root; }; #define GET_STORAGE_INFO_RESPONSE__INIT \ 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 deleted file mode 100644 index f42b94737..000000000 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionRequest.pb-c.c +++ /dev/null @@ -1,92 +0,0 @@ -/* 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 deleted file mode 100644 index eeb30902e..000000000 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionRequest.pb-c.h +++ /dev/null @@ -1,73 +0,0 @@ -/* 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__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 deleted file mode 100644 index 9be2cce20..000000000 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionResponse.pb-c.c +++ /dev/null @@ -1,72 +0,0 @@ -/* 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 deleted file mode 100644 index 0032ec8c9..000000000 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/ValidateVersionResponse.pb-c.h +++ /dev/null @@ -1,70 +0,0 @@ -/* 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__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 deleted file mode 100644 index 53b9f5bfd..000000000 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDescriptor.pb-c.c +++ /dev/null @@ -1,131 +0,0 @@ -/* 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 deleted file mode 100644 index 692dc6722..000000000 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDescriptor.pb-c.h +++ /dev/null @@ -1,77 +0,0 @@ -/* 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__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 deleted file mode 100644 index 3e45ece3e..000000000 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDestination.pb-c.c +++ /dev/null @@ -1,41 +0,0 @@ -/* 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 deleted file mode 100644 index 83686d194..000000000 --- a/Software/Embedded_SW/Embedded/Communication/PMR/IO/VersionFileDestination.pb-c.h +++ /dev/null @@ -1,45 +0,0 @@ -/* 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__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 */ -- cgit v1.3.1