diff options
Diffstat (limited to 'Software/Visual_Studio')
101 files changed, 8289 insertions, 213 deletions
diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/ColorConverter.cpp b/Software/Visual_Studio/Native/Tango.ColorLib/ColorConverter.cpp new file mode 100644 index 000000000..03637e750 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/ColorConverter.cpp @@ -0,0 +1,96 @@ +#include "ColorConverter.h" +#include "PMR\ColorLab\CalibrationPoint.pb-c.h" +#include "PMR\ColorLab/ColorSpace.pb-c.h" +#include "PMR\ColorLab/ConversionInput.pb-c.h" +#include "PMR\ColorLab/ConversionOutput.pb-c.h" +#include "PMR\ColorLab/InputColor.pb-c.h" +#include "PMR\ColorLab/OutputColor.pb-c.h" + +Tango::ColorLib::ColorConverter::ColorConverter() +{ + +} + + +Tango::ColorLib::ColorConverter::~ColorConverter() +{ + +} + +size_t Tango::ColorLib::ColorConverter::ForwardConvert(uint8_t * input_buffer, size_t input_buffer_size, uint8_t *& output_buffer) +{ + //Get Input... + ConversionInput* input = conversion_input__unpack(NULL, input_buffer_size, input_buffer); + + //Initialize Output... + + ConversionOutput output = CONVERSION_OUTPUT__INIT; + + //How To Fill... + + int suggestion_count = 3; + + OutputColor** suggestions = (OutputColor**)malloc(sizeof(OutputColor*) * suggestion_count); + + for (size_t i = 0; i < suggestion_count; i++) + { + OutputColor* color = (OutputColor*)malloc(sizeof(OutputColor)); + output_color__init(color); + + color->red = 1; + color->green = 2; + color->blue = 3; + + suggestions[i] = color; + } + + output.suggestions = suggestions; + output.n_suggestions = suggestion_count; + + //Generate Output... + + output_buffer = (uint8_t*)malloc(conversion_output__get_packed_size(&output)); + + return conversion_output__pack(&output, output_buffer); +} + + + + + +size_t Tango::ColorLib::ColorConverter::InverseConvert(uint8_t * input_buffer, size_t input_buffer_size, uint8_t *& output_buffer) +{ + //Get Input... + ConversionInput* input = conversion_input__unpack(NULL, input_buffer_size, input_buffer); + + //Initialize Output... + + ConversionOutput output = CONVERSION_OUTPUT__INIT; + + //How To Fill... + + int suggestion_count = 3; + + OutputColor** suggestions = (OutputColor**)malloc(sizeof(OutputColor*) * suggestion_count); + + for (size_t i = 0; i < suggestion_count; i++) + { + OutputColor* color = (OutputColor*)malloc(sizeof(OutputColor)); + output_color__init(color); + + color->red = 1; + color->green = 2; + color->blue = 3; + + suggestions[i] = color; + } + + output.suggestions = suggestions; + output.n_suggestions = suggestion_count; + + //Generate Output... + + output_buffer = (uint8_t*)malloc(conversion_output__get_packed_size(&output)); + + return conversion_output__pack(&output, output_buffer); +} diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/ColorConverter.h b/Software/Visual_Studio/Native/Tango.ColorLib/ColorConverter.h new file mode 100644 index 000000000..97995340d --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/ColorConverter.h @@ -0,0 +1,19 @@ +#include <cstdlib> +#include <cstdint> + +#pragma once +namespace Tango +{ + namespace ColorLib + { + class ColorConverter + { + public: + ColorConverter(); + ~ColorConverter(); + size_t ForwardConvert(uint8_t * input_buffer, size_t input_buffer_size, uint8_t *& output_buffer); + size_t InverseConvert(uint8_t * input_buffer, size_t input_buffer_size, uint8_t *& output_buffer); + }; + } +} + diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/Exports.cpp b/Software/Visual_Studio/Native/Tango.ColorLib/Exports.cpp index a19f31708..27790818b 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/Exports.cpp +++ b/Software/Visual_Studio/Native/Tango.ColorLib/Exports.cpp @@ -1,5 +1,6 @@ #include <cstdlib> #include "Tester.h" +#include "ColorConverter.h" #pragma once @@ -7,6 +8,7 @@ using namespace std; using namespace Tango::ColoLib; +using namespace Tango::ColorLib; extern "C" EXPORT_API size_t __cdecl Calculate(uint8_t* request_buffer, size_t request_buffer_size, uint8_t*& response_buffer) { @@ -14,3 +16,15 @@ extern "C" EXPORT_API size_t __cdecl Calculate(uint8_t* request_buffer, size_t r return tester.Calculate(request_buffer, request_buffer_size, response_buffer); } +extern "C" EXPORT_API size_t __cdecl ForwardConvert(uint8_t* input_buffer, size_t input_buffer_size, uint8_t*& output_buffer) +{ + ColorConverter converter; + return converter.ForwardConvert(input_buffer, input_buffer_size, output_buffer); +} + +extern "C" EXPORT_API size_t __cdecl InverseConvert(uint8_t* input_buffer, size_t input_buffer_size, uint8_t*& output_buffer) +{ + ColorConverter converter; + return converter.InverseConvert(input_buffer, input_buffer_size, output_buffer); +} + diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/CalibrationPoint.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/CalibrationPoint.pb-c.c new file mode 100644 index 000000000..691a97ea6 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/CalibrationPoint.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: CalibrationPoint.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "CalibrationPoint.pb-c.h" +void calibration_point__init + (CalibrationPoint *message) +{ + static const CalibrationPoint init_value = CALIBRATION_POINT__INIT; + *message = init_value; +} +size_t calibration_point__get_packed_size + (const CalibrationPoint *message) +{ + assert(message->base.descriptor == &calibration_point__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t calibration_point__pack + (const CalibrationPoint *message, + uint8_t *out) +{ + assert(message->base.descriptor == &calibration_point__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t calibration_point__pack_to_buffer + (const CalibrationPoint *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &calibration_point__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +CalibrationPoint * + calibration_point__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (CalibrationPoint *) + protobuf_c_message_unpack (&calibration_point__descriptor, + allocator, len, data); +} +void calibration_point__free_unpacked + (CalibrationPoint *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &calibration_point__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor calibration_point__field_descriptors[2] = +{ + { + "X", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(CalibrationPoint, has_x), + offsetof(CalibrationPoint, x), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Y", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(CalibrationPoint, has_y), + offsetof(CalibrationPoint, y), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned calibration_point__field_indices_by_name[] = { + 0, /* field[0] = X */ + 1, /* field[1] = Y */ +}; +static const ProtobufCIntRange calibration_point__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor calibration_point__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "CalibrationPoint", + "CalibrationPoint", + "CalibrationPoint", + "", + sizeof(CalibrationPoint), + 2, + calibration_point__field_descriptors, + calibration_point__field_indices_by_name, + 1, calibration_point__number_ranges, + (ProtobufCMessageInit) calibration_point__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/CalibrationPoint.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/CalibrationPoint.pb-c.h new file mode 100644 index 000000000..a58bc1ec6 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/CalibrationPoint.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: CalibrationPoint.proto */ + +#ifndef PROTOBUF_C_CalibrationPoint_2eproto__INCLUDED +#define PROTOBUF_C_CalibrationPoint_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _CalibrationPoint CalibrationPoint; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _CalibrationPoint +{ + ProtobufCMessage base; + protobuf_c_boolean has_x; + double x; + protobuf_c_boolean has_y; + double y; +}; +#define CALIBRATION_POINT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&calibration_point__descriptor) \ + , 0, 0, 0, 0 } + + +/* CalibrationPoint methods */ +void calibration_point__init + (CalibrationPoint *message); +size_t calibration_point__get_packed_size + (const CalibrationPoint *message); +size_t calibration_point__pack + (const CalibrationPoint *message, + uint8_t *out); +size_t calibration_point__pack_to_buffer + (const CalibrationPoint *message, + ProtobufCBuffer *buffer); +CalibrationPoint * + calibration_point__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void calibration_point__free_unpacked + (CalibrationPoint *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*CalibrationPoint_Closure) + (const CalibrationPoint *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor calibration_point__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_CalibrationPoint_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ColorSpace.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ColorSpace.pb-c.c new file mode 100644 index 000000000..663c73262 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ColorSpace.pb-c.c @@ -0,0 +1,43 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ColorSpace.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ColorSpace.pb-c.h" +static const ProtobufCEnumValue color_space__enum_values_by_number[5] = +{ + { "Volume", "COLOR_SPACE__Volume", 0 }, + { "RGB", "COLOR_SPACE__RGB", 1 }, + { "CMYK", "COLOR_SPACE__CMYK", 2 }, + { "LAB", "COLOR_SPACE__LAB", 3 }, + { "Panton", "COLOR_SPACE__Panton", 4 }, +}; +static const ProtobufCIntRange color_space__value_ranges[] = { +{0, 0},{0, 5} +}; +static const ProtobufCEnumValueIndex color_space__enum_values_by_name[5] = +{ + { "CMYK", 2 }, + { "LAB", 3 }, + { "Panton", 4 }, + { "RGB", 1 }, + { "Volume", 0 }, +}; +const ProtobufCEnumDescriptor color_space__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "ColorSpace", + "ColorSpace", + "ColorSpace", + "", + 5, + color_space__enum_values_by_number, + 5, + color_space__enum_values_by_name, + 1, + color_space__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ColorSpace.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ColorSpace.pb-c.h new file mode 100644 index 000000000..70d386e0c --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ColorSpace.pb-c.h @@ -0,0 +1,46 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ColorSpace.proto */ + +#ifndef PROTOBUF_C_ColorSpace_2eproto__INCLUDED +#define PROTOBUF_C_ColorSpace_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _ColorSpace { + COLOR_SPACE__Volume = 0, + COLOR_SPACE__RGB = 1, + COLOR_SPACE__CMYK = 2, + COLOR_SPACE__LAB = 3, + COLOR_SPACE__Panton = 4 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(COLOR_SPACE) +} ColorSpace; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor color_space__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ColorSpace_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ConversionInput.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ConversionInput.pb-c.c new file mode 100644 index 000000000..8df9d0bb7 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ConversionInput.pb-c.c @@ -0,0 +1,183 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ConversionInput.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ConversionInput.pb-c.h" +void conversion_input__init + (ConversionInput *message) +{ + static const ConversionInput init_value = CONVERSION_INPUT__INIT; + *message = init_value; +} +size_t conversion_input__get_packed_size + (const ConversionInput *message) +{ + assert(message->base.descriptor == &conversion_input__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t conversion_input__pack + (const ConversionInput *message, + uint8_t *out) +{ + assert(message->base.descriptor == &conversion_input__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t conversion_input__pack_to_buffer + (const ConversionInput *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &conversion_input__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +ConversionInput * + conversion_input__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (ConversionInput *) + protobuf_c_message_unpack (&conversion_input__descriptor, + allocator, len, data); +} +void conversion_input__free_unpacked + (ConversionInput *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &conversion_input__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor conversion_input__field_descriptors[8] = +{ + { + "ThreadL", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ConversionInput, has_threadl), + offsetof(ConversionInput, threadl), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ThreadA", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ConversionInput, has_threada), + offsetof(ConversionInput, threada), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ThreadB", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ConversionInput, has_threadb), + offsetof(ConversionInput, threadb), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Input", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(ConversionInput, input), + &input_color__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ForwardData", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BYTES, + offsetof(ConversionInput, has_forwarddata), + offsetof(ConversionInput, forwarddata), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "InverseData", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BYTES, + offsetof(ConversionInput, has_inversedata), + offsetof(ConversionInput, inversedata), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "CalibrationData", + 7, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ConversionInput, n_calibrationdata), + offsetof(ConversionInput, calibrationdata), + &calibration_point__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "SegmentLength", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ConversionInput, has_segmentlength), + offsetof(ConversionInput, segmentlength), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned conversion_input__field_indices_by_name[] = { + 6, /* field[6] = CalibrationData */ + 4, /* field[4] = ForwardData */ + 3, /* field[3] = Input */ + 5, /* field[5] = InverseData */ + 7, /* field[7] = SegmentLength */ + 1, /* field[1] = ThreadA */ + 2, /* field[2] = ThreadB */ + 0, /* field[0] = ThreadL */ +}; +static const ProtobufCIntRange conversion_input__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 8 } +}; +const ProtobufCMessageDescriptor conversion_input__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "ConversionInput", + "ConversionInput", + "ConversionInput", + "", + sizeof(ConversionInput), + 8, + conversion_input__field_descriptors, + conversion_input__field_indices_by_name, + 1, conversion_input__number_ranges, + (ProtobufCMessageInit) conversion_input__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ConversionInput.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ConversionInput.pb-c.h new file mode 100644 index 000000000..15ef192de --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ConversionInput.pb-c.h @@ -0,0 +1,87 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ConversionInput.proto */ + +#ifndef PROTOBUF_C_ConversionInput_2eproto__INCLUDED +#define PROTOBUF_C_ConversionInput_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "InputColor.pb-c.h" +#include "CalibrationPoint.pb-c.h" + +typedef struct _ConversionInput ConversionInput; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _ConversionInput +{ + ProtobufCMessage base; + protobuf_c_boolean has_threadl; + double threadl; + protobuf_c_boolean has_threada; + double threada; + protobuf_c_boolean has_threadb; + double threadb; + InputColor *input; + protobuf_c_boolean has_forwarddata; + ProtobufCBinaryData forwarddata; + protobuf_c_boolean has_inversedata; + ProtobufCBinaryData inversedata; + size_t n_calibrationdata; + CalibrationPoint **calibrationdata; + protobuf_c_boolean has_segmentlength; + double segmentlength; +}; +#define CONVERSION_INPUT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&conversion_input__descriptor) \ + , 0, 0, 0, 0, 0, 0, NULL, 0, {0,NULL}, 0, {0,NULL}, 0,NULL, 0, 0 } + + +/* ConversionInput methods */ +void conversion_input__init + (ConversionInput *message); +size_t conversion_input__get_packed_size + (const ConversionInput *message); +size_t conversion_input__pack + (const ConversionInput *message, + uint8_t *out); +size_t conversion_input__pack_to_buffer + (const ConversionInput *message, + ProtobufCBuffer *buffer); +ConversionInput * + conversion_input__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void conversion_input__free_unpacked + (ConversionInput *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*ConversionInput_Closure) + (const ConversionInput *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor conversion_input__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ConversionInput_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ConversionOutput.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ConversionOutput.pb-c.c new file mode 100644 index 000000000..224f4c973 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ConversionOutput.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ConversionOutput.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ConversionOutput.pb-c.h" +void conversion_output__init + (ConversionOutput *message) +{ + static const ConversionOutput init_value = CONVERSION_OUTPUT__INIT; + *message = init_value; +} +size_t conversion_output__get_packed_size + (const ConversionOutput *message) +{ + assert(message->base.descriptor == &conversion_output__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t conversion_output__pack + (const ConversionOutput *message, + uint8_t *out) +{ + assert(message->base.descriptor == &conversion_output__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t conversion_output__pack_to_buffer + (const ConversionOutput *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &conversion_output__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +ConversionOutput * + conversion_output__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (ConversionOutput *) + protobuf_c_message_unpack (&conversion_output__descriptor, + allocator, len, data); +} +void conversion_output__free_unpacked + (ConversionOutput *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &conversion_output__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor conversion_output__field_descriptors[2] = +{ + { + "Suggestions", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ConversionOutput, n_suggestions), + offsetof(ConversionOutput, suggestions), + &output_color__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "OutOfGamut", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(ConversionOutput, has_outofgamut), + offsetof(ConversionOutput, outofgamut), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned conversion_output__field_indices_by_name[] = { + 1, /* field[1] = OutOfGamut */ + 0, /* field[0] = Suggestions */ +}; +static const ProtobufCIntRange conversion_output__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor conversion_output__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "ConversionOutput", + "ConversionOutput", + "ConversionOutput", + "", + sizeof(ConversionOutput), + 2, + conversion_output__field_descriptors, + conversion_output__field_indices_by_name, + 1, conversion_output__number_ranges, + (ProtobufCMessageInit) conversion_output__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ConversionOutput.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ConversionOutput.pb-c.h new file mode 100644 index 000000000..7830ec580 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/ConversionOutput.pb-c.h @@ -0,0 +1,75 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ConversionOutput.proto */ + +#ifndef PROTOBUF_C_ConversionOutput_2eproto__INCLUDED +#define PROTOBUF_C_ConversionOutput_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "OutputColor.pb-c.h" + +typedef struct _ConversionOutput ConversionOutput; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _ConversionOutput +{ + ProtobufCMessage base; + size_t n_suggestions; + OutputColor **suggestions; + protobuf_c_boolean has_outofgamut; + protobuf_c_boolean outofgamut; +}; +#define CONVERSION_OUTPUT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&conversion_output__descriptor) \ + , 0,NULL, 0, 0 } + + +/* ConversionOutput methods */ +void conversion_output__init + (ConversionOutput *message); +size_t conversion_output__get_packed_size + (const ConversionOutput *message); +size_t conversion_output__pack + (const ConversionOutput *message, + uint8_t *out); +size_t conversion_output__pack_to_buffer + (const ConversionOutput *message, + ProtobufCBuffer *buffer); +ConversionOutput * + conversion_output__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void conversion_output__free_unpacked + (ConversionOutput *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*ConversionOutput_Closure) + (const ConversionOutput *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor conversion_output__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ConversionOutput_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputColor.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputColor.pb-c.c new file mode 100644 index 000000000..46cbadad2 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputColor.pb-c.c @@ -0,0 +1,352 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: InputColor.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "InputColor.pb-c.h" +void input_color__init + (InputColor *message) +{ + static const InputColor init_value = INPUT_COLOR__INIT; + *message = init_value; +} +size_t input_color__get_packed_size + (const InputColor *message) +{ + assert(message->base.descriptor == &input_color__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t input_color__pack + (const InputColor *message, + uint8_t *out) +{ + assert(message->base.descriptor == &input_color__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t input_color__pack_to_buffer + (const InputColor *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &input_color__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +InputColor * + input_color__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (InputColor *) + protobuf_c_message_unpack (&input_color__descriptor, + allocator, len, data); +} +void input_color__free_unpacked + (InputColor *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &input_color__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor input_color__field_descriptors[21] = +{ + { + "ColorSpace", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(InputColor, has_colorspace), + offsetof(InputColor, colorspace), + &color_space__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Length", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_length), + offsetof(InputColor, length), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Red", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(InputColor, has_red), + offsetof(InputColor, red), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Green", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(InputColor, has_green), + offsetof(InputColor, green), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Blue", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(InputColor, has_blue), + offsetof(InputColor, blue), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Cyan", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_cyan), + offsetof(InputColor, cyan), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Magenta", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_magenta), + offsetof(InputColor, magenta), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Yellow", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_yellow), + offsetof(InputColor, yellow), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Black", + 9, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_black), + offsetof(InputColor, black), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "L", + 10, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_l), + offsetof(InputColor, l), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "A", + 11, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_a), + offsetof(InputColor, a), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "B", + 12, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_b), + offsetof(InputColor, b), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V0", + 13, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_v0), + offsetof(InputColor, v0), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V1", + 14, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_v1), + offsetof(InputColor, v1), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V2", + 15, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_v2), + offsetof(InputColor, v2), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V3", + 16, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_v3), + offsetof(InputColor, v3), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V4", + 17, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_v4), + offsetof(InputColor, v4), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V5", + 18, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_v5), + offsetof(InputColor, v5), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V6", + 19, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_v6), + offsetof(InputColor, v6), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V7", + 20, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputColor, has_v7), + offsetof(InputColor, v7), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "PantonCode", + 21, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(InputColor, has_pantoncode), + offsetof(InputColor, pantoncode), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned input_color__field_indices_by_name[] = { + 10, /* field[10] = A */ + 11, /* field[11] = B */ + 8, /* field[8] = Black */ + 4, /* field[4] = Blue */ + 0, /* field[0] = ColorSpace */ + 5, /* field[5] = Cyan */ + 3, /* field[3] = Green */ + 9, /* field[9] = L */ + 1, /* field[1] = Length */ + 6, /* field[6] = Magenta */ + 20, /* field[20] = PantonCode */ + 2, /* field[2] = Red */ + 12, /* field[12] = V0 */ + 13, /* field[13] = V1 */ + 14, /* field[14] = V2 */ + 15, /* field[15] = V3 */ + 16, /* field[16] = V4 */ + 17, /* field[17] = V5 */ + 18, /* field[18] = V6 */ + 19, /* field[19] = V7 */ + 7, /* field[7] = Yellow */ +}; +static const ProtobufCIntRange input_color__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 21 } +}; +const ProtobufCMessageDescriptor input_color__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "InputColor", + "InputColor", + "InputColor", + "", + sizeof(InputColor), + 21, + input_color__field_descriptors, + input_color__field_indices_by_name, + 1, input_color__number_ranges, + (ProtobufCMessageInit) input_color__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputColor.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputColor.pb-c.h new file mode 100644 index 000000000..8c27cc66b --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputColor.pb-c.h @@ -0,0 +1,113 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: InputColor.proto */ + +#ifndef PROTOBUF_C_InputColor_2eproto__INCLUDED +#define PROTOBUF_C_InputColor_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "ColorSpace.pb-c.h" + +typedef struct _InputColor InputColor; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _InputColor +{ + ProtobufCMessage base; + protobuf_c_boolean has_colorspace; + ColorSpace colorspace; + protobuf_c_boolean has_length; + double length; + protobuf_c_boolean has_red; + int32_t red; + protobuf_c_boolean has_green; + int32_t green; + protobuf_c_boolean has_blue; + int32_t blue; + protobuf_c_boolean has_cyan; + double cyan; + protobuf_c_boolean has_magenta; + double magenta; + protobuf_c_boolean has_yellow; + double yellow; + protobuf_c_boolean has_black; + double black; + protobuf_c_boolean has_l; + double l; + protobuf_c_boolean has_a; + double a; + protobuf_c_boolean has_b; + double b; + protobuf_c_boolean has_v0; + double v0; + protobuf_c_boolean has_v1; + double v1; + protobuf_c_boolean has_v2; + double v2; + protobuf_c_boolean has_v3; + double v3; + protobuf_c_boolean has_v4; + double v4; + protobuf_c_boolean has_v5; + double v5; + protobuf_c_boolean has_v6; + double v6; + protobuf_c_boolean has_v7; + double v7; + protobuf_c_boolean has_pantoncode; + int32_t pantoncode; +}; +#define INPUT_COLOR__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&input_color__descriptor) \ + , 0, COLOR_SPACE__Volume, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* InputColor methods */ +void input_color__init + (InputColor *message); +size_t input_color__get_packed_size + (const InputColor *message); +size_t input_color__pack + (const InputColor *message, + uint8_t *out); +size_t input_color__pack_to_buffer + (const InputColor *message, + ProtobufCBuffer *buffer); +InputColor * + input_color__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void input_color__free_unpacked + (InputColor *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*InputColor_Closure) + (const InputColor *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor input_color__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_InputColor_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputColor.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputColor.pb-c.c new file mode 100644 index 000000000..2625a45f8 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputColor.pb-c.c @@ -0,0 +1,248 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: OutputColor.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "OutputColor.pb-c.h" +void output_color__init + (OutputColor *message) +{ + static const OutputColor init_value = OUTPUT_COLOR__INIT; + *message = init_value; +} +size_t output_color__get_packed_size + (const OutputColor *message) +{ + assert(message->base.descriptor == &output_color__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t output_color__pack + (const OutputColor *message, + uint8_t *out) +{ + assert(message->base.descriptor == &output_color__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t output_color__pack_to_buffer + (const OutputColor *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &output_color__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +OutputColor * + output_color__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (OutputColor *) + protobuf_c_message_unpack (&output_color__descriptor, + allocator, len, data); +} +void output_color__free_unpacked + (OutputColor *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &output_color__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor output_color__field_descriptors[13] = +{ + { + "Red", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(OutputColor, has_red), + offsetof(OutputColor, red), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Green", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(OutputColor, has_green), + offsetof(OutputColor, green), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Blue", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(OutputColor, has_blue), + offsetof(OutputColor, blue), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V0", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(OutputColor, has_v0), + offsetof(OutputColor, v0), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V1", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(OutputColor, has_v1), + offsetof(OutputColor, v1), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V2", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(OutputColor, has_v2), + offsetof(OutputColor, v2), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V3", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(OutputColor, has_v3), + offsetof(OutputColor, v3), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V4", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(OutputColor, has_v4), + offsetof(OutputColor, v4), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V5", + 9, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(OutputColor, has_v5), + offsetof(OutputColor, v5), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V6", + 10, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(OutputColor, has_v6), + offsetof(OutputColor, v6), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "V7", + 11, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(OutputColor, has_v7), + offsetof(OutputColor, v7), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Length", + 12, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(OutputColor, has_length), + offsetof(OutputColor, length), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ProcessParametersTableIndex", + 13, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(OutputColor, has_processparameterstableindex), + offsetof(OutputColor, processparameterstableindex), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned output_color__field_indices_by_name[] = { + 2, /* field[2] = Blue */ + 1, /* field[1] = Green */ + 11, /* field[11] = Length */ + 12, /* field[12] = ProcessParametersTableIndex */ + 0, /* field[0] = Red */ + 3, /* field[3] = V0 */ + 4, /* field[4] = V1 */ + 5, /* field[5] = V2 */ + 6, /* field[6] = V3 */ + 7, /* field[7] = V4 */ + 8, /* field[8] = V5 */ + 9, /* field[9] = V6 */ + 10, /* field[10] = V7 */ +}; +static const ProtobufCIntRange output_color__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 13 } +}; +const ProtobufCMessageDescriptor output_color__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "OutputColor", + "OutputColor", + "OutputColor", + "", + sizeof(OutputColor), + 13, + output_color__field_descriptors, + output_color__field_indices_by_name, + 1, output_color__number_ranges, + (ProtobufCMessageInit) output_color__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputColor.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputColor.pb-c.h new file mode 100644 index 000000000..c80c0e418 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputColor.pb-c.h @@ -0,0 +1,96 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: OutputColor.proto */ + +#ifndef PROTOBUF_C_OutputColor_2eproto__INCLUDED +#define PROTOBUF_C_OutputColor_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _OutputColor OutputColor; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _OutputColor +{ + ProtobufCMessage base; + protobuf_c_boolean has_red; + int32_t red; + protobuf_c_boolean has_green; + int32_t green; + protobuf_c_boolean has_blue; + int32_t blue; + protobuf_c_boolean has_v0; + double v0; + protobuf_c_boolean has_v1; + double v1; + protobuf_c_boolean has_v2; + double v2; + protobuf_c_boolean has_v3; + double v3; + protobuf_c_boolean has_v4; + double v4; + protobuf_c_boolean has_v5; + double v5; + protobuf_c_boolean has_v6; + double v6; + protobuf_c_boolean has_v7; + double v7; + protobuf_c_boolean has_length; + double length; + protobuf_c_boolean has_processparameterstableindex; + int32_t processparameterstableindex; +}; +#define OUTPUT_COLOR__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&output_color__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* OutputColor methods */ +void output_color__init + (OutputColor *message); +size_t output_color__get_packed_size + (const OutputColor *message); +size_t output_color__pack + (const OutputColor *message, + uint8_t *out); +size_t output_color__pack_to_buffer + (const OutputColor *message, + ProtobufCBuffer *buffer); +OutputColor * + output_color__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void output_color__free_unpacked + (OutputColor *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*OutputColor_Closure) + (const OutputColor *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor output_color__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_OutputColor_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/KeepAliveRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/KeepAliveRequest.pb-c.c new file mode 100644 index 000000000..70fca2425 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/KeepAliveRequest.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: KeepAliveRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "KeepAliveRequest.pb-c.h" +void keep_alive_request__init + (KeepAliveRequest *message) +{ + static const KeepAliveRequest init_value = KEEP_ALIVE_REQUEST__INIT; + *message = init_value; +} +size_t keep_alive_request__get_packed_size + (const KeepAliveRequest *message) +{ + assert(message->base.descriptor == &keep_alive_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t keep_alive_request__pack + (const KeepAliveRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &keep_alive_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t keep_alive_request__pack_to_buffer + (const KeepAliveRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &keep_alive_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +KeepAliveRequest * + keep_alive_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (KeepAliveRequest *) + protobuf_c_message_unpack (&keep_alive_request__descriptor, + allocator, len, data); +} +void keep_alive_request__free_unpacked + (KeepAliveRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &keep_alive_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define keep_alive_request__field_descriptors NULL +#define keep_alive_request__field_indices_by_name NULL +#define keep_alive_request__number_ranges NULL +const ProtobufCMessageDescriptor keep_alive_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "KeepAliveRequest", + "KeepAliveRequest", + "KeepAliveRequest", + "", + sizeof(KeepAliveRequest), + 0, + keep_alive_request__field_descriptors, + keep_alive_request__field_indices_by_name, + 0, keep_alive_request__number_ranges, + (ProtobufCMessageInit) keep_alive_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/KeepAliveRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/KeepAliveRequest.pb-c.h new file mode 100644 index 000000000..379aa6caa --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/KeepAliveRequest.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: KeepAliveRequest.proto */ + +#ifndef PROTOBUF_C_KeepAliveRequest_2eproto__INCLUDED +#define PROTOBUF_C_KeepAliveRequest_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _KeepAliveRequest KeepAliveRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _KeepAliveRequest +{ + ProtobufCMessage base; +}; +#define KEEP_ALIVE_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&keep_alive_request__descriptor) \ + } + + +/* KeepAliveRequest methods */ +void keep_alive_request__init + (KeepAliveRequest *message); +size_t keep_alive_request__get_packed_size + (const KeepAliveRequest *message); +size_t keep_alive_request__pack + (const KeepAliveRequest *message, + uint8_t *out); +size_t keep_alive_request__pack_to_buffer + (const KeepAliveRequest *message, + ProtobufCBuffer *buffer); +KeepAliveRequest * + keep_alive_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void keep_alive_request__free_unpacked + (KeepAliveRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*KeepAliveRequest_Closure) + (const KeepAliveRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor keep_alive_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_KeepAliveRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/KeepAliveResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/KeepAliveResponse.pb-c.c new file mode 100644 index 000000000..9bae1f119 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/KeepAliveResponse.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: KeepAliveResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "KeepAliveResponse.pb-c.h" +void keep_alive_response__init + (KeepAliveResponse *message) +{ + static const KeepAliveResponse init_value = KEEP_ALIVE_RESPONSE__INIT; + *message = init_value; +} +size_t keep_alive_response__get_packed_size + (const KeepAliveResponse *message) +{ + assert(message->base.descriptor == &keep_alive_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t keep_alive_response__pack + (const KeepAliveResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &keep_alive_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t keep_alive_response__pack_to_buffer + (const KeepAliveResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &keep_alive_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +KeepAliveResponse * + keep_alive_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (KeepAliveResponse *) + protobuf_c_message_unpack (&keep_alive_response__descriptor, + allocator, len, data); +} +void keep_alive_response__free_unpacked + (KeepAliveResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &keep_alive_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define keep_alive_response__field_descriptors NULL +#define keep_alive_response__field_indices_by_name NULL +#define keep_alive_response__number_ranges NULL +const ProtobufCMessageDescriptor keep_alive_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "KeepAliveResponse", + "KeepAliveResponse", + "KeepAliveResponse", + "", + sizeof(KeepAliveResponse), + 0, + keep_alive_response__field_descriptors, + keep_alive_response__field_indices_by_name, + 0, keep_alive_response__number_ranges, + (ProtobufCMessageInit) keep_alive_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/KeepAliveResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/KeepAliveResponse.pb-c.h new file mode 100644 index 000000000..a29f79c99 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/KeepAliveResponse.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: KeepAliveResponse.proto */ + +#ifndef PROTOBUF_C_KeepAliveResponse_2eproto__INCLUDED +#define PROTOBUF_C_KeepAliveResponse_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _KeepAliveResponse KeepAliveResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _KeepAliveResponse +{ + ProtobufCMessage base; +}; +#define KEEP_ALIVE_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&keep_alive_response__descriptor) \ + } + + +/* KeepAliveResponse methods */ +void keep_alive_response__init + (KeepAliveResponse *message); +size_t keep_alive_response__get_packed_size + (const KeepAliveResponse *message); +size_t keep_alive_response__pack + (const KeepAliveResponse *message, + uint8_t *out); +size_t keep_alive_response__pack_to_buffer + (const KeepAliveResponse *message, + ProtobufCBuffer *buffer); +KeepAliveResponse * + keep_alive_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void keep_alive_response__free_unpacked + (KeepAliveResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*KeepAliveResponse_Closure) + (const KeepAliveResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor keep_alive_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_KeepAliveResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageContainer.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageContainer.pb-c.h index e0849d4ad..edb24d775 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageContainer.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageContainer.pb-c.h @@ -44,7 +44,7 @@ struct _MessageContainer }; #define MESSAGE_CONTAINER__INIT \ { PROTOBUF_C_MESSAGE_INIT (&message_container__descriptor) \ - , 0, MESSAGE_TYPE__RGB, NULL, 0, 0, 0, 0, 0, {0,NULL}, 0, 0, 0, ERROR_CODE__NONE } + , 0, MESSAGE_TYPE__None, NULL, 0, 0, 0, 0, 0, {0,NULL}, 0, 0, 0, ERROR_CODE__NONE } /* MessageContainer methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageType.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageType.pb-c.c index e922ccf91..405d43959 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageType.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageType.pb-c.c @@ -7,11 +7,9 @@ #endif #include "MessageType.pb-c.h" -static const ProtobufCEnumValue message_type__enum_values_by_number[36] = +static const ProtobufCEnumValue message_type__enum_values_by_number[53] = { - { "RGB", "MESSAGE_TYPE__RGB", 0 }, - { "Job", "MESSAGE_TYPE__Job", 1 }, - { "Segment", "MESSAGE_TYPE__Segment", 2 }, + { "None", "MESSAGE_TYPE__None", 0 }, { "CalculateRequest", "MESSAGE_TYPE__CalculateRequest", 3 }, { "CalculateResponse", "MESSAGE_TYPE__CalculateResponse", 4 }, { "ProgressRequest", "MESSAGE_TYPE__ProgressRequest", 5 }, @@ -42,51 +40,87 @@ static const ProtobufCEnumValue message_type__enum_values_by_number[36] = { "StubSteperMotorResponse", "MESSAGE_TYPE__StubSteperMotorResponse", 30 }, { "StubValveRequest", "MESSAGE_TYPE__StubValveRequest", 31 }, { "StubValveResponse", "MESSAGE_TYPE__StubValveResponse", 32 }, - { "ExternalBridgeUdpDiscoveryPacket", "MESSAGE_TYPE__ExternalBridgeUdpDiscoveryPacket", 33 }, - { "ExternalClientLoginRequest", "MESSAGE_TYPE__ExternalClientLoginRequest", 34 }, - { "ExternalClientLoginResponse", "MESSAGE_TYPE__ExternalClientLoginResponse", 35 }, + { "StubExtFlashReadRequest", "MESSAGE_TYPE__StubExtFlashReadRequest", 33 }, + { "StubExtFlashReadResponse", "MESSAGE_TYPE__StubExtFlashReadResponse", 34 }, + { "StubExtFlashWriteRequest", "MESSAGE_TYPE__StubExtFlashWriteRequest", 35 }, + { "StubExtFlashWriteResponse", "MESSAGE_TYPE__StubExtFlashWriteResponse", 36 }, + { "ExternalBridgeUdpDiscoveryPacket", "MESSAGE_TYPE__ExternalBridgeUdpDiscoveryPacket", 1000 }, + { "ExternalClientLoginRequest", "MESSAGE_TYPE__ExternalClientLoginRequest", 1001 }, + { "ExternalClientLoginResponse", "MESSAGE_TYPE__ExternalClientLoginResponse", 1002 }, + { "DirectSynchronizationRequest", "MESSAGE_TYPE__DirectSynchronizationRequest", 1003 }, + { "DirectSynchronizationResponse", "MESSAGE_TYPE__DirectSynchronizationResponse", 1004 }, + { "OverrideDataBaseRequest", "MESSAGE_TYPE__OverrideDataBaseRequest", 1005 }, + { "OverrideDataBaseResponse", "MESSAGE_TYPE__OverrideDataBaseResponse", 1006 }, + { "KeepAliveRequest", "MESSAGE_TYPE__KeepAliveRequest", 1007 }, + { "KeepAliveResponse", "MESSAGE_TYPE__KeepAliveResponse", 1008 }, + { "PushDiagnosticsRequest", "MESSAGE_TYPE__PushDiagnosticsRequest", 2000 }, + { "PushDiagnosticsResponse", "MESSAGE_TYPE__PushDiagnosticsResponse", 2001 }, + { "ReportRequest", "MESSAGE_TYPE__ReportRequest", 2002 }, + { "ReportResponse", "MESSAGE_TYPE__ReportResponse", 2003 }, + { "StatusResponse", "MESSAGE_TYPE__StatusResponse", 2004 }, + { "JobRequest", "MESSAGE_TYPE__JobRequest", 3000 }, + { "JobResponse", "MESSAGE_TYPE__JobResponse", 3001 }, + { "AbortJobRequest", "MESSAGE_TYPE__AbortJobRequest", 3002 }, + { "AbortJobResponse", "MESSAGE_TYPE__AbortJobResponse", 3003 }, }; static const ProtobufCIntRange message_type__value_ranges[] = { -{0, 0},{0, 36} +{0, 0},{3, 1},{1000, 35},{2000, 44},{3000, 49},{0, 53} }; -static const ProtobufCEnumValueIndex message_type__enum_values_by_name[36] = +static const ProtobufCEnumValueIndex message_type__enum_values_by_name[53] = { - { "CalculateRequest", 3 }, - { "CalculateResponse", 4 }, - { "ExternalBridgeUdpDiscoveryPacket", 33 }, - { "ExternalClientLoginRequest", 34 }, - { "ExternalClientLoginResponse", 35 }, - { "Job", 1 }, - { "ProgressRequest", 5 }, - { "ProgressResponse", 6 }, - { "RGB", 0 }, - { "Segment", 2 }, - { "StubCartridgeReadRequest", 7 }, - { "StubCartridgeReadResponse", 8 }, - { "StubCartridgeWriteRequest", 9 }, - { "StubCartridgeWriteResponse", 10 }, - { "StubDispenserRequest", 11 }, - { "StubDispenserResponse", 12 }, - { "StubGPIOInputSetupRequest", 13 }, - { "StubGPIOInputSetupResponse", 14 }, - { "StubGPIOReadBitRequest", 15 }, - { "StubGPIOReadBitResponse", 16 }, - { "StubGPIOReadByteRequest", 17 }, - { "StubGPIOReadByteResponse", 18 }, - { "StubGPIOWriteBitRequest", 19 }, - { "StubGPIOWriteBitResponse", 20 }, - { "StubGPIOWriteByteRequest", 21 }, - { "StubGPIOWriteByteResponse", 22 }, - { "StubHeaterRequest", 23 }, - { "StubHeaterResponse", 24 }, - { "StubMotorEncoderRequest", 25 }, - { "StubMotorEncoderResponse", 26 }, - { "StubOptLimitSwitchRequest", 27 }, - { "StubOptLimitSwitchResponse", 28 }, - { "StubSteperMotorRequest", 29 }, - { "StubSteperMotorResponse", 30 }, - { "StubValveRequest", 31 }, - { "StubValveResponse", 32 }, + { "AbortJobRequest", 51 }, + { "AbortJobResponse", 52 }, + { "CalculateRequest", 1 }, + { "CalculateResponse", 2 }, + { "DirectSynchronizationRequest", 38 }, + { "DirectSynchronizationResponse", 39 }, + { "ExternalBridgeUdpDiscoveryPacket", 35 }, + { "ExternalClientLoginRequest", 36 }, + { "ExternalClientLoginResponse", 37 }, + { "JobRequest", 49 }, + { "JobResponse", 50 }, + { "KeepAliveRequest", 42 }, + { "KeepAliveResponse", 43 }, + { "None", 0 }, + { "OverrideDataBaseRequest", 40 }, + { "OverrideDataBaseResponse", 41 }, + { "ProgressRequest", 3 }, + { "ProgressResponse", 4 }, + { "PushDiagnosticsRequest", 44 }, + { "PushDiagnosticsResponse", 45 }, + { "ReportRequest", 46 }, + { "ReportResponse", 47 }, + { "StatusResponse", 48 }, + { "StubCartridgeReadRequest", 5 }, + { "StubCartridgeReadResponse", 6 }, + { "StubCartridgeWriteRequest", 7 }, + { "StubCartridgeWriteResponse", 8 }, + { "StubDispenserRequest", 9 }, + { "StubDispenserResponse", 10 }, + { "StubExtFlashReadRequest", 31 }, + { "StubExtFlashReadResponse", 32 }, + { "StubExtFlashWriteRequest", 33 }, + { "StubExtFlashWriteResponse", 34 }, + { "StubGPIOInputSetupRequest", 11 }, + { "StubGPIOInputSetupResponse", 12 }, + { "StubGPIOReadBitRequest", 13 }, + { "StubGPIOReadBitResponse", 14 }, + { "StubGPIOReadByteRequest", 15 }, + { "StubGPIOReadByteResponse", 16 }, + { "StubGPIOWriteBitRequest", 17 }, + { "StubGPIOWriteBitResponse", 18 }, + { "StubGPIOWriteByteRequest", 19 }, + { "StubGPIOWriteByteResponse", 20 }, + { "StubHeaterRequest", 21 }, + { "StubHeaterResponse", 22 }, + { "StubMotorEncoderRequest", 23 }, + { "StubMotorEncoderResponse", 24 }, + { "StubOptLimitSwitchRequest", 25 }, + { "StubOptLimitSwitchResponse", 26 }, + { "StubSteperMotorRequest", 27 }, + { "StubSteperMotorResponse", 28 }, + { "StubValveRequest", 29 }, + { "StubValveResponse", 30 }, }; const ProtobufCEnumDescriptor message_type__descriptor = { @@ -95,11 +129,11 @@ const ProtobufCEnumDescriptor message_type__descriptor = "MessageType", "MessageType", "", - 36, + 53, message_type__enum_values_by_number, - 36, + 53, message_type__enum_values_by_name, - 1, + 5, message_type__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageType.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageType.pb-c.h index fae795b73..d5849f817 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageType.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageType.pb-c.h @@ -20,9 +20,7 @@ PROTOBUF_C__BEGIN_DECLS /* --- enums --- */ typedef enum _MessageType { - MESSAGE_TYPE__RGB = 0, - MESSAGE_TYPE__Job = 1, - MESSAGE_TYPE__Segment = 2, + MESSAGE_TYPE__None = 0, MESSAGE_TYPE__CalculateRequest = 3, MESSAGE_TYPE__CalculateResponse = 4, MESSAGE_TYPE__ProgressRequest = 5, @@ -53,9 +51,28 @@ typedef enum _MessageType { MESSAGE_TYPE__StubSteperMotorResponse = 30, MESSAGE_TYPE__StubValveRequest = 31, MESSAGE_TYPE__StubValveResponse = 32, - MESSAGE_TYPE__ExternalBridgeUdpDiscoveryPacket = 33, - MESSAGE_TYPE__ExternalClientLoginRequest = 34, - MESSAGE_TYPE__ExternalClientLoginResponse = 35 + MESSAGE_TYPE__StubExtFlashReadRequest = 33, + MESSAGE_TYPE__StubExtFlashReadResponse = 34, + MESSAGE_TYPE__StubExtFlashWriteRequest = 35, + MESSAGE_TYPE__StubExtFlashWriteResponse = 36, + MESSAGE_TYPE__ExternalBridgeUdpDiscoveryPacket = 1000, + MESSAGE_TYPE__ExternalClientLoginRequest = 1001, + MESSAGE_TYPE__ExternalClientLoginResponse = 1002, + MESSAGE_TYPE__DirectSynchronizationRequest = 1003, + MESSAGE_TYPE__DirectSynchronizationResponse = 1004, + MESSAGE_TYPE__OverrideDataBaseRequest = 1005, + MESSAGE_TYPE__OverrideDataBaseResponse = 1006, + MESSAGE_TYPE__KeepAliveRequest = 1007, + MESSAGE_TYPE__KeepAliveResponse = 1008, + MESSAGE_TYPE__PushDiagnosticsRequest = 2000, + MESSAGE_TYPE__PushDiagnosticsResponse = 2001, + MESSAGE_TYPE__ReportRequest = 2002, + MESSAGE_TYPE__ReportResponse = 2003, + MESSAGE_TYPE__StatusResponse = 2004, + MESSAGE_TYPE__JobRequest = 3000, + MESSAGE_TYPE__JobResponse = 3001, + MESSAGE_TYPE__AbortJobRequest = 3002, + MESSAGE_TYPE__AbortJobResponse = 3003 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(MESSAGE_TYPE) } MessageType; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DoubleArray.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DoubleArray.pb-c.c new file mode 100644 index 000000000..586e13984 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DoubleArray.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DoubleArray.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DoubleArray.pb-c.h" +void double_array__init + (DoubleArray *message) +{ + static const DoubleArray init_value = DOUBLE_ARRAY__INIT; + *message = init_value; +} +size_t double_array__get_packed_size + (const DoubleArray *message) +{ + assert(message->base.descriptor == &double_array__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t double_array__pack + (const DoubleArray *message, + uint8_t *out) +{ + assert(message->base.descriptor == &double_array__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t double_array__pack_to_buffer + (const DoubleArray *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &double_array__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DoubleArray * + double_array__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DoubleArray *) + protobuf_c_message_unpack (&double_array__descriptor, + allocator, len, data); +} +void double_array__free_unpacked + (DoubleArray *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &double_array__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor double_array__field_descriptors[1] = +{ + { + "Data", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(DoubleArray, n_data), + offsetof(DoubleArray, data), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned double_array__field_indices_by_name[] = { + 0, /* field[0] = Data */ +}; +static const ProtobufCIntRange double_array__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor double_array__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DoubleArray", + "DoubleArray", + "DoubleArray", + "", + sizeof(DoubleArray), + 1, + double_array__field_descriptors, + double_array__field_indices_by_name, + 1, double_array__number_ranges, + (ProtobufCMessageInit) double_array__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DoubleArray.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DoubleArray.pb-c.h new file mode 100644 index 000000000..7f4232530 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DoubleArray.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DoubleArray.proto */ + +#ifndef PROTOBUF_C_DoubleArray_2eproto__INCLUDED +#define PROTOBUF_C_DoubleArray_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _DoubleArray DoubleArray; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DoubleArray +{ + ProtobufCMessage base; + size_t n_data; + double *data; +}; +#define DOUBLE_ARRAY__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&double_array__descriptor) \ + , 0,NULL } + + +/* DoubleArray methods */ +void double_array__init + (DoubleArray *message); +size_t double_array__get_packed_size + (const DoubleArray *message); +size_t double_array__pack + (const DoubleArray *message, + uint8_t *out); +size_t double_array__pack_to_buffer + (const DoubleArray *message, + ProtobufCBuffer *buffer); +DoubleArray * + double_array__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void double_array__free_unpacked + (DoubleArray *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DoubleArray_Closure) + (const DoubleArray *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor double_array__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DoubleArray_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/PushDiagnosticsRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/PushDiagnosticsRequest.pb-c.c new file mode 100644 index 000000000..1c7790f41 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/PushDiagnosticsRequest.pb-c.c @@ -0,0 +1,118 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: PushDiagnosticsRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "PushDiagnosticsRequest.pb-c.h" +void push_diagnostics_request__init + (PushDiagnosticsRequest *message) +{ + static const PushDiagnosticsRequest init_value = PUSH_DIAGNOSTICS_REQUEST__INIT; + *message = init_value; +} +size_t push_diagnostics_request__get_packed_size + (const PushDiagnosticsRequest *message) +{ + assert(message->base.descriptor == &push_diagnostics_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t push_diagnostics_request__pack + (const PushDiagnosticsRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &push_diagnostics_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t push_diagnostics_request__pack_to_buffer + (const PushDiagnosticsRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &push_diagnostics_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PushDiagnosticsRequest * + push_diagnostics_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PushDiagnosticsRequest *) + protobuf_c_message_unpack (&push_diagnostics_request__descriptor, + allocator, len, data); +} +void push_diagnostics_request__free_unpacked + (PushDiagnosticsRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &push_diagnostics_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor push_diagnostics_request__field_descriptors[3] = +{ + { + "PushSensors", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(PushDiagnosticsRequest, has_pushsensors), + offsetof(PushDiagnosticsRequest, pushsensors), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "PushMotors", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(PushDiagnosticsRequest, has_pushmotors), + offsetof(PushDiagnosticsRequest, pushmotors), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "PushLogs", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(PushDiagnosticsRequest, has_pushlogs), + offsetof(PushDiagnosticsRequest, pushlogs), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned push_diagnostics_request__field_indices_by_name[] = { + 2, /* field[2] = PushLogs */ + 1, /* field[1] = PushMotors */ + 0, /* field[0] = PushSensors */ +}; +static const ProtobufCIntRange push_diagnostics_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor push_diagnostics_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "PushDiagnosticsRequest", + "PushDiagnosticsRequest", + "PushDiagnosticsRequest", + "", + sizeof(PushDiagnosticsRequest), + 3, + push_diagnostics_request__field_descriptors, + push_diagnostics_request__field_indices_by_name, + 1, push_diagnostics_request__number_ranges, + (ProtobufCMessageInit) push_diagnostics_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/PushDiagnosticsRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/PushDiagnosticsRequest.pb-c.h new file mode 100644 index 000000000..b4e3053f0 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/PushDiagnosticsRequest.pb-c.h @@ -0,0 +1,76 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: PushDiagnosticsRequest.proto */ + +#ifndef PROTOBUF_C_PushDiagnosticsRequest_2eproto__INCLUDED +#define PROTOBUF_C_PushDiagnosticsRequest_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _PushDiagnosticsRequest PushDiagnosticsRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _PushDiagnosticsRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_pushsensors; + protobuf_c_boolean pushsensors; + protobuf_c_boolean has_pushmotors; + protobuf_c_boolean pushmotors; + protobuf_c_boolean has_pushlogs; + protobuf_c_boolean pushlogs; +}; +#define PUSH_DIAGNOSTICS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&push_diagnostics_request__descriptor) \ + , 0, 0, 0, 0, 0, 0 } + + +/* PushDiagnosticsRequest methods */ +void push_diagnostics_request__init + (PushDiagnosticsRequest *message); +size_t push_diagnostics_request__get_packed_size + (const PushDiagnosticsRequest *message); +size_t push_diagnostics_request__pack + (const PushDiagnosticsRequest *message, + uint8_t *out); +size_t push_diagnostics_request__pack_to_buffer + (const PushDiagnosticsRequest *message, + ProtobufCBuffer *buffer); +PushDiagnosticsRequest * + push_diagnostics_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void push_diagnostics_request__free_unpacked + (PushDiagnosticsRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*PushDiagnosticsRequest_Closure) + (const PushDiagnosticsRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor push_diagnostics_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_PushDiagnosticsRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/PushDiagnosticsResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/PushDiagnosticsResponse.pb-c.c new file mode 100644 index 000000000..51b490620 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/PushDiagnosticsResponse.pb-c.c @@ -0,0 +1,131 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: PushDiagnosticsResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "PushDiagnosticsResponse.pb-c.h" +void push_diagnostics_response__init + (PushDiagnosticsResponse *message) +{ + static const PushDiagnosticsResponse init_value = PUSH_DIAGNOSTICS_RESPONSE__INIT; + *message = init_value; +} +size_t push_diagnostics_response__get_packed_size + (const PushDiagnosticsResponse *message) +{ + assert(message->base.descriptor == &push_diagnostics_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t push_diagnostics_response__pack + (const PushDiagnosticsResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &push_diagnostics_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t push_diagnostics_response__pack_to_buffer + (const PushDiagnosticsResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &push_diagnostics_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PushDiagnosticsResponse * + push_diagnostics_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PushDiagnosticsResponse *) + protobuf_c_message_unpack (&push_diagnostics_response__descriptor, + allocator, len, data); +} +void push_diagnostics_response__free_unpacked + (PushDiagnosticsResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &push_diagnostics_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor push_diagnostics_response__field_descriptors[4] = +{ + { + "Dancer1Angle", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(PushDiagnosticsResponse, n_dancer1angle), + offsetof(PushDiagnosticsResponse, dancer1angle), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Dancer2Angle", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(PushDiagnosticsResponse, n_dancer2angle), + offsetof(PushDiagnosticsResponse, dancer2angle), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Dancer3Angle", + 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(PushDiagnosticsResponse, n_dancer3angle), + offsetof(PushDiagnosticsResponse, dancer3angle), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "DispensersMotorsFrequency", + 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PushDiagnosticsResponse, n_dispensersmotorsfrequency), + offsetof(PushDiagnosticsResponse, dispensersmotorsfrequency), + &double_array__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned push_diagnostics_response__field_indices_by_name[] = { + 0, /* field[0] = Dancer1Angle */ + 1, /* field[1] = Dancer2Angle */ + 2, /* field[2] = Dancer3Angle */ + 3, /* field[3] = DispensersMotorsFrequency */ +}; +static const ProtobufCIntRange push_diagnostics_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor push_diagnostics_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "PushDiagnosticsResponse", + "PushDiagnosticsResponse", + "PushDiagnosticsResponse", + "", + sizeof(PushDiagnosticsResponse), + 4, + push_diagnostics_response__field_descriptors, + push_diagnostics_response__field_indices_by_name, + 1, push_diagnostics_response__number_ranges, + (ProtobufCMessageInit) push_diagnostics_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/PushDiagnosticsResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/PushDiagnosticsResponse.pb-c.h new file mode 100644 index 000000000..d3082c489 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/PushDiagnosticsResponse.pb-c.h @@ -0,0 +1,79 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: PushDiagnosticsResponse.proto */ + +#ifndef PROTOBUF_C_PushDiagnosticsResponse_2eproto__INCLUDED +#define PROTOBUF_C_PushDiagnosticsResponse_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "DoubleArray.pb-c.h" + +typedef struct _PushDiagnosticsResponse PushDiagnosticsResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _PushDiagnosticsResponse +{ + ProtobufCMessage base; + size_t n_dancer1angle; + double *dancer1angle; + size_t n_dancer2angle; + double *dancer2angle; + size_t n_dancer3angle; + double *dancer3angle; + size_t n_dispensersmotorsfrequency; + DoubleArray **dispensersmotorsfrequency; +}; +#define PUSH_DIAGNOSTICS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&push_diagnostics_response__descriptor) \ + , 0,NULL, 0,NULL, 0,NULL, 0,NULL } + + +/* PushDiagnosticsResponse methods */ +void push_diagnostics_response__init + (PushDiagnosticsResponse *message); +size_t push_diagnostics_response__get_packed_size + (const PushDiagnosticsResponse *message); +size_t push_diagnostics_response__pack + (const PushDiagnosticsResponse *message, + uint8_t *out); +size_t push_diagnostics_response__pack_to_buffer + (const PushDiagnosticsResponse *message, + ProtobufCBuffer *buffer); +PushDiagnosticsResponse * + push_diagnostics_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void push_diagnostics_response__free_unpacked + (PushDiagnosticsResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*PushDiagnosticsResponse_Closure) + (const PushDiagnosticsResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor push_diagnostics_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_PushDiagnosticsResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/DirectSynchronizationRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/DirectSynchronizationRequest.pb-c.c new file mode 100644 index 000000000..cb729fed6 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/DirectSynchronizationRequest.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DirectSynchronizationRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DirectSynchronizationRequest.pb-c.h" +void direct_synchronization_request__init + (DirectSynchronizationRequest *message) +{ + static const DirectSynchronizationRequest init_value = DIRECT_SYNCHRONIZATION_REQUEST__INIT; + *message = init_value; +} +size_t direct_synchronization_request__get_packed_size + (const DirectSynchronizationRequest *message) +{ + assert(message->base.descriptor == &direct_synchronization_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t direct_synchronization_request__pack + (const DirectSynchronizationRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &direct_synchronization_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t direct_synchronization_request__pack_to_buffer + (const DirectSynchronizationRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &direct_synchronization_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DirectSynchronizationRequest * + direct_synchronization_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DirectSynchronizationRequest *) + protobuf_c_message_unpack (&direct_synchronization_request__descriptor, + allocator, len, data); +} +void direct_synchronization_request__free_unpacked + (DirectSynchronizationRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &direct_synchronization_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define direct_synchronization_request__field_descriptors NULL +#define direct_synchronization_request__field_indices_by_name NULL +#define direct_synchronization_request__number_ranges NULL +const ProtobufCMessageDescriptor direct_synchronization_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DirectSynchronizationRequest", + "DirectSynchronizationRequest", + "DirectSynchronizationRequest", + "", + sizeof(DirectSynchronizationRequest), + 0, + direct_synchronization_request__field_descriptors, + direct_synchronization_request__field_indices_by_name, + 0, direct_synchronization_request__number_ranges, + (ProtobufCMessageInit) direct_synchronization_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/DirectSynchronizationRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/DirectSynchronizationRequest.pb-c.h new file mode 100644 index 000000000..81cdae5b9 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/DirectSynchronizationRequest.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DirectSynchronizationRequest.proto */ + +#ifndef PROTOBUF_C_DirectSynchronizationRequest_2eproto__INCLUDED +#define PROTOBUF_C_DirectSynchronizationRequest_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _DirectSynchronizationRequest DirectSynchronizationRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DirectSynchronizationRequest +{ + ProtobufCMessage base; +}; +#define DIRECT_SYNCHRONIZATION_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&direct_synchronization_request__descriptor) \ + } + + +/* DirectSynchronizationRequest methods */ +void direct_synchronization_request__init + (DirectSynchronizationRequest *message); +size_t direct_synchronization_request__get_packed_size + (const DirectSynchronizationRequest *message); +size_t direct_synchronization_request__pack + (const DirectSynchronizationRequest *message, + uint8_t *out); +size_t direct_synchronization_request__pack_to_buffer + (const DirectSynchronizationRequest *message, + ProtobufCBuffer *buffer); +DirectSynchronizationRequest * + direct_synchronization_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void direct_synchronization_request__free_unpacked + (DirectSynchronizationRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DirectSynchronizationRequest_Closure) + (const DirectSynchronizationRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor direct_synchronization_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DirectSynchronizationRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/DirectSynchronizationResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/DirectSynchronizationResponse.pb-c.c new file mode 100644 index 000000000..d37e0a020 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/DirectSynchronizationResponse.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DirectSynchronizationResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DirectSynchronizationResponse.pb-c.h" +void direct_synchronization_response__init + (DirectSynchronizationResponse *message) +{ + static const DirectSynchronizationResponse init_value = DIRECT_SYNCHRONIZATION_RESPONSE__INIT; + *message = init_value; +} +size_t direct_synchronization_response__get_packed_size + (const DirectSynchronizationResponse *message) +{ + assert(message->base.descriptor == &direct_synchronization_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t direct_synchronization_response__pack + (const DirectSynchronizationResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &direct_synchronization_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t direct_synchronization_response__pack_to_buffer + (const DirectSynchronizationResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &direct_synchronization_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DirectSynchronizationResponse * + direct_synchronization_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DirectSynchronizationResponse *) + protobuf_c_message_unpack (&direct_synchronization_response__descriptor, + allocator, len, data); +} +void direct_synchronization_response__free_unpacked + (DirectSynchronizationResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &direct_synchronization_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor direct_synchronization_response__field_descriptors[1] = +{ + { + "LocalDB", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BYTES, + offsetof(DirectSynchronizationResponse, has_localdb), + offsetof(DirectSynchronizationResponse, localdb), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned direct_synchronization_response__field_indices_by_name[] = { + 0, /* field[0] = LocalDB */ +}; +static const ProtobufCIntRange direct_synchronization_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor direct_synchronization_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DirectSynchronizationResponse", + "DirectSynchronizationResponse", + "DirectSynchronizationResponse", + "", + sizeof(DirectSynchronizationResponse), + 1, + direct_synchronization_response__field_descriptors, + direct_synchronization_response__field_indices_by_name, + 1, direct_synchronization_response__number_ranges, + (ProtobufCMessageInit) direct_synchronization_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/DirectSynchronizationResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/DirectSynchronizationResponse.pb-c.h new file mode 100644 index 000000000..c263b6831 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/DirectSynchronizationResponse.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DirectSynchronizationResponse.proto */ + +#ifndef PROTOBUF_C_DirectSynchronizationResponse_2eproto__INCLUDED +#define PROTOBUF_C_DirectSynchronizationResponse_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _DirectSynchronizationResponse DirectSynchronizationResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DirectSynchronizationResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_localdb; + ProtobufCBinaryData localdb; +}; +#define DIRECT_SYNCHRONIZATION_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&direct_synchronization_response__descriptor) \ + , 0, {0,NULL} } + + +/* DirectSynchronizationResponse methods */ +void direct_synchronization_response__init + (DirectSynchronizationResponse *message); +size_t direct_synchronization_response__get_packed_size + (const DirectSynchronizationResponse *message); +size_t direct_synchronization_response__pack + (const DirectSynchronizationResponse *message, + uint8_t *out); +size_t direct_synchronization_response__pack_to_buffer + (const DirectSynchronizationResponse *message, + ProtobufCBuffer *buffer); +DirectSynchronizationResponse * + direct_synchronization_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void direct_synchronization_response__free_unpacked + (DirectSynchronizationResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DirectSynchronizationResponse_Closure) + (const DirectSynchronizationResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor direct_synchronization_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DirectSynchronizationResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/ExternalClientLoginRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/ExternalClientLoginRequest.pb-c.c index a19339ec5..d4be46d19 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/ExternalClientLoginRequest.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/ExternalClientLoginRequest.pb-c.c @@ -55,12 +55,12 @@ void external_client_login_request__free_unpacked static const ProtobufCFieldDescriptor external_client_login_request__field_descriptors[1] = { { - "key", + "Password", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(ExternalClientLoginRequest, key), + offsetof(ExternalClientLoginRequest, password), NULL, NULL, 0, /* flags */ @@ -68,7 +68,7 @@ static const ProtobufCFieldDescriptor external_client_login_request__field_descr }, }; static const unsigned external_client_login_request__field_indices_by_name[] = { - 0, /* field[0] = key */ + 0, /* field[0] = Password */ }; static const ProtobufCIntRange external_client_login_request__number_ranges[1 + 1] = { diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/ExternalClientLoginRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/ExternalClientLoginRequest.pb-c.h index b2ff576b0..86ea53825 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/ExternalClientLoginRequest.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/ExternalClientLoginRequest.pb-c.h @@ -26,7 +26,7 @@ typedef struct _ExternalClientLoginRequest ExternalClientLoginRequest; struct _ExternalClientLoginRequest { ProtobufCMessage base; - char *key; + char *password; }; #define EXTERNAL_CLIENT_LOGIN_REQUEST__INIT \ { PROTOBUF_C_MESSAGE_INIT (&external_client_login_request__descriptor) \ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/OverrideDataBaseRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/OverrideDataBaseRequest.pb-c.c new file mode 100644 index 000000000..5c80a3949 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/OverrideDataBaseRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: OverrideDataBaseRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "OverrideDataBaseRequest.pb-c.h" +void override_data_base_request__init + (OverrideDataBaseRequest *message) +{ + static const OverrideDataBaseRequest init_value = OVERRIDE_DATA_BASE_REQUEST__INIT; + *message = init_value; +} +size_t override_data_base_request__get_packed_size + (const OverrideDataBaseRequest *message) +{ + assert(message->base.descriptor == &override_data_base_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t override_data_base_request__pack + (const OverrideDataBaseRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &override_data_base_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t override_data_base_request__pack_to_buffer + (const OverrideDataBaseRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &override_data_base_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +OverrideDataBaseRequest * + override_data_base_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (OverrideDataBaseRequest *) + protobuf_c_message_unpack (&override_data_base_request__descriptor, + allocator, len, data); +} +void override_data_base_request__free_unpacked + (OverrideDataBaseRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &override_data_base_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor override_data_base_request__field_descriptors[1] = +{ + { + "RemoteDB", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BYTES, + offsetof(OverrideDataBaseRequest, has_remotedb), + offsetof(OverrideDataBaseRequest, remotedb), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned override_data_base_request__field_indices_by_name[] = { + 0, /* field[0] = RemoteDB */ +}; +static const ProtobufCIntRange override_data_base_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor override_data_base_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "OverrideDataBaseRequest", + "OverrideDataBaseRequest", + "OverrideDataBaseRequest", + "", + sizeof(OverrideDataBaseRequest), + 1, + override_data_base_request__field_descriptors, + override_data_base_request__field_indices_by_name, + 1, override_data_base_request__number_ranges, + (ProtobufCMessageInit) override_data_base_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/OverrideDataBaseRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/OverrideDataBaseRequest.pb-c.h new file mode 100644 index 000000000..e73ab63cc --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/OverrideDataBaseRequest.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: OverrideDataBaseRequest.proto */ + +#ifndef PROTOBUF_C_OverrideDataBaseRequest_2eproto__INCLUDED +#define PROTOBUF_C_OverrideDataBaseRequest_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _OverrideDataBaseRequest OverrideDataBaseRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _OverrideDataBaseRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_remotedb; + ProtobufCBinaryData remotedb; +}; +#define OVERRIDE_DATA_BASE_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&override_data_base_request__descriptor) \ + , 0, {0,NULL} } + + +/* OverrideDataBaseRequest methods */ +void override_data_base_request__init + (OverrideDataBaseRequest *message); +size_t override_data_base_request__get_packed_size + (const OverrideDataBaseRequest *message); +size_t override_data_base_request__pack + (const OverrideDataBaseRequest *message, + uint8_t *out); +size_t override_data_base_request__pack_to_buffer + (const OverrideDataBaseRequest *message, + ProtobufCBuffer *buffer); +OverrideDataBaseRequest * + override_data_base_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void override_data_base_request__free_unpacked + (OverrideDataBaseRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*OverrideDataBaseRequest_Closure) + (const OverrideDataBaseRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor override_data_base_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_OverrideDataBaseRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/OverrideDataBaseResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/OverrideDataBaseResponse.pb-c.c new file mode 100644 index 000000000..fe11e66f0 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/OverrideDataBaseResponse.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: OverrideDataBaseResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "OverrideDataBaseResponse.pb-c.h" +void override_data_base_response__init + (OverrideDataBaseResponse *message) +{ + static const OverrideDataBaseResponse init_value = OVERRIDE_DATA_BASE_RESPONSE__INIT; + *message = init_value; +} +size_t override_data_base_response__get_packed_size + (const OverrideDataBaseResponse *message) +{ + assert(message->base.descriptor == &override_data_base_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t override_data_base_response__pack + (const OverrideDataBaseResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &override_data_base_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t override_data_base_response__pack_to_buffer + (const OverrideDataBaseResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &override_data_base_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +OverrideDataBaseResponse * + override_data_base_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (OverrideDataBaseResponse *) + protobuf_c_message_unpack (&override_data_base_response__descriptor, + allocator, len, data); +} +void override_data_base_response__free_unpacked + (OverrideDataBaseResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &override_data_base_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor override_data_base_response__field_descriptors[1] = +{ + { + "Successful", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(OverrideDataBaseResponse, has_successful), + offsetof(OverrideDataBaseResponse, successful), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned override_data_base_response__field_indices_by_name[] = { + 0, /* field[0] = Successful */ +}; +static const ProtobufCIntRange override_data_base_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor override_data_base_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "OverrideDataBaseResponse", + "OverrideDataBaseResponse", + "OverrideDataBaseResponse", + "", + sizeof(OverrideDataBaseResponse), + 1, + override_data_base_response__field_descriptors, + override_data_base_response__field_indices_by_name, + 1, override_data_base_response__number_ranges, + (ProtobufCMessageInit) override_data_base_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/OverrideDataBaseResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/OverrideDataBaseResponse.pb-c.h new file mode 100644 index 000000000..339349441 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Integration/OverrideDataBaseResponse.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: OverrideDataBaseResponse.proto */ + +#ifndef PROTOBUF_C_OverrideDataBaseResponse_2eproto__INCLUDED +#define PROTOBUF_C_OverrideDataBaseResponse_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _OverrideDataBaseResponse OverrideDataBaseResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _OverrideDataBaseResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_successful; + protobuf_c_boolean successful; +}; +#define OVERRIDE_DATA_BASE_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&override_data_base_response__descriptor) \ + , 0, 0 } + + +/* OverrideDataBaseResponse methods */ +void override_data_base_response__init + (OverrideDataBaseResponse *message); +size_t override_data_base_response__get_packed_size + (const OverrideDataBaseResponse *message); +size_t override_data_base_response__pack + (const OverrideDataBaseResponse *message, + uint8_t *out); +size_t override_data_base_response__pack_to_buffer + (const OverrideDataBaseResponse *message, + ProtobufCBuffer *buffer); +OverrideDataBaseResponse * + override_data_base_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void override_data_base_response__free_unpacked + (OverrideDataBaseResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*OverrideDataBaseResponse_Closure) + (const OverrideDataBaseResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor override_data_base_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_OverrideDataBaseResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/AbortJobRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/AbortJobRequest.pb-c.c new file mode 100644 index 000000000..a2b2826c0 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/AbortJobRequest.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: AbortJobRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "AbortJobRequest.pb-c.h" +void abort_job_request__init + (AbortJobRequest *message) +{ + static const AbortJobRequest init_value = ABORT_JOB_REQUEST__INIT; + *message = init_value; +} +size_t abort_job_request__get_packed_size + (const AbortJobRequest *message) +{ + assert(message->base.descriptor == &abort_job_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t abort_job_request__pack + (const AbortJobRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &abort_job_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t abort_job_request__pack_to_buffer + (const AbortJobRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &abort_job_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +AbortJobRequest * + abort_job_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (AbortJobRequest *) + protobuf_c_message_unpack (&abort_job_request__descriptor, + allocator, len, data); +} +void abort_job_request__free_unpacked + (AbortJobRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &abort_job_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define abort_job_request__field_descriptors NULL +#define abort_job_request__field_indices_by_name NULL +#define abort_job_request__number_ranges NULL +const ProtobufCMessageDescriptor abort_job_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "AbortJobRequest", + "AbortJobRequest", + "AbortJobRequest", + "", + sizeof(AbortJobRequest), + 0, + abort_job_request__field_descriptors, + abort_job_request__field_indices_by_name, + 0, abort_job_request__number_ranges, + (ProtobufCMessageInit) abort_job_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/AbortJobRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/AbortJobRequest.pb-c.h new file mode 100644 index 000000000..1635e0458 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/AbortJobRequest.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: AbortJobRequest.proto */ + +#ifndef PROTOBUF_C_AbortJobRequest_2eproto__INCLUDED +#define PROTOBUF_C_AbortJobRequest_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _AbortJobRequest AbortJobRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _AbortJobRequest +{ + ProtobufCMessage base; +}; +#define ABORT_JOB_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&abort_job_request__descriptor) \ + } + + +/* AbortJobRequest methods */ +void abort_job_request__init + (AbortJobRequest *message); +size_t abort_job_request__get_packed_size + (const AbortJobRequest *message); +size_t abort_job_request__pack + (const AbortJobRequest *message, + uint8_t *out); +size_t abort_job_request__pack_to_buffer + (const AbortJobRequest *message, + ProtobufCBuffer *buffer); +AbortJobRequest * + abort_job_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void abort_job_request__free_unpacked + (AbortJobRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*AbortJobRequest_Closure) + (const AbortJobRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor abort_job_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_AbortJobRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/AbortJobResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/AbortJobResponse.pb-c.c new file mode 100644 index 000000000..7a6f4e341 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/AbortJobResponse.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: AbortJobResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "AbortJobResponse.pb-c.h" +void abort_job_response__init + (AbortJobResponse *message) +{ + static const AbortJobResponse init_value = ABORT_JOB_RESPONSE__INIT; + *message = init_value; +} +size_t abort_job_response__get_packed_size + (const AbortJobResponse *message) +{ + assert(message->base.descriptor == &abort_job_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t abort_job_response__pack + (const AbortJobResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &abort_job_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t abort_job_response__pack_to_buffer + (const AbortJobResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &abort_job_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +AbortJobResponse * + abort_job_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (AbortJobResponse *) + protobuf_c_message_unpack (&abort_job_response__descriptor, + allocator, len, data); +} +void abort_job_response__free_unpacked + (AbortJobResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &abort_job_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define abort_job_response__field_descriptors NULL +#define abort_job_response__field_indices_by_name NULL +#define abort_job_response__number_ranges NULL +const ProtobufCMessageDescriptor abort_job_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "AbortJobResponse", + "AbortJobResponse", + "AbortJobResponse", + "", + sizeof(AbortJobResponse), + 0, + abort_job_response__field_descriptors, + abort_job_response__field_indices_by_name, + 0, abort_job_response__number_ranges, + (ProtobufCMessageInit) abort_job_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/AbortJobResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/AbortJobResponse.pb-c.h new file mode 100644 index 000000000..66c887250 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/AbortJobResponse.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: AbortJobResponse.proto */ + +#ifndef PROTOBUF_C_AbortJobResponse_2eproto__INCLUDED +#define PROTOBUF_C_AbortJobResponse_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _AbortJobResponse AbortJobResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _AbortJobResponse +{ + ProtobufCMessage base; +}; +#define ABORT_JOB_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&abort_job_response__descriptor) \ + } + + +/* AbortJobResponse methods */ +void abort_job_response__init + (AbortJobResponse *message); +size_t abort_job_response__get_packed_size + (const AbortJobResponse *message); +size_t abort_job_response__pack + (const AbortJobResponse *message, + uint8_t *out); +size_t abort_job_response__pack_to_buffer + (const AbortJobResponse *message, + ProtobufCBuffer *buffer); +AbortJobResponse * + abort_job_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void abort_job_response__free_unpacked + (AbortJobResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*AbortJobResponse_Closure) + (const AbortJobResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor abort_job_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_AbortJobResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobRequest.pb-c.c new file mode 100644 index 000000000..d282c0e56 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobRequest.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "JobRequest.pb-c.h" +void job_request__init + (JobRequest *message) +{ + static const JobRequest init_value = JOB_REQUEST__INIT; + *message = init_value; +} +size_t job_request__get_packed_size + (const JobRequest *message) +{ + assert(message->base.descriptor == &job_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t job_request__pack + (const JobRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &job_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t job_request__pack_to_buffer + (const JobRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &job_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +JobRequest * + job_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (JobRequest *) + protobuf_c_message_unpack (&job_request__descriptor, + allocator, len, data); +} +void job_request__free_unpacked + (JobRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &job_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor job_request__field_descriptors[2] = +{ + { + "Name", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(JobRequest, name), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "JobTicket", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(JobRequest, jobticket), + &job_ticket__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned job_request__field_indices_by_name[] = { + 1, /* field[1] = JobTicket */ + 0, /* field[0] = Name */ +}; +static const ProtobufCIntRange job_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor job_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "JobRequest", + "JobRequest", + "JobRequest", + "", + sizeof(JobRequest), + 2, + job_request__field_descriptors, + job_request__field_indices_by_name, + 1, job_request__number_ranges, + (ProtobufCMessageInit) job_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobRequest.pb-c.h new file mode 100644 index 000000000..2019c859b --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobRequest.pb-c.h @@ -0,0 +1,73 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobRequest.proto */ + +#ifndef PROTOBUF_C_JobRequest_2eproto__INCLUDED +#define PROTOBUF_C_JobRequest_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "JobTicket.pb-c.h" + +typedef struct _JobRequest JobRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _JobRequest +{ + ProtobufCMessage base; + JobTicket *jobticket; + char *name; +}; +#define JOB_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&job_request__descriptor) \ + , NULL, NULL } + + +/* JobRequest methods */ +void job_request__init + (JobRequest *message); +size_t job_request__get_packed_size + (const JobRequest *message); +size_t job_request__pack + (const JobRequest *message, + uint8_t *out); +size_t job_request__pack_to_buffer + (const JobRequest *message, + ProtobufCBuffer *buffer); +JobRequest * + job_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void job_request__free_unpacked + (JobRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*JobRequest_Closure) + (const JobRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor job_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_JobRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobResponse.pb-c.c new file mode 100644 index 000000000..692f2df66 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobResponse.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "JobResponse.pb-c.h" +void job_response__init + (JobResponse *message) +{ + static const JobResponse init_value = JOB_RESPONSE__INIT; + *message = init_value; +} +size_t job_response__get_packed_size + (const JobResponse *message) +{ + assert(message->base.descriptor == &job_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t job_response__pack + (const JobResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &job_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t job_response__pack_to_buffer + (const JobResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &job_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +JobResponse * + job_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (JobResponse *) + protobuf_c_message_unpack (&job_response__descriptor, + allocator, len, data); +} +void job_response__free_unpacked + (JobResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &job_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor job_response__field_descriptors[2] = +{ + { + "Status", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(JobResponse, status), + &job_status__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Canceled", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(JobResponse, has_canceled), + offsetof(JobResponse, canceled), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned job_response__field_indices_by_name[] = { + 1, /* field[1] = Canceled */ + 0, /* field[0] = Status */ +}; +static const ProtobufCIntRange job_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor job_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "JobResponse", + "JobResponse", + "JobResponse", + "", + sizeof(JobResponse), + 2, + job_response__field_descriptors, + job_response__field_indices_by_name, + 1, job_response__number_ranges, + (ProtobufCMessageInit) job_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobResponse.pb-c.h new file mode 100644 index 000000000..56efcd106 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobResponse.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobResponse.proto */ + +#ifndef PROTOBUF_C_JobResponse_2eproto__INCLUDED +#define PROTOBUF_C_JobResponse_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "JobStatus.pb-c.h" + +typedef struct _JobResponse JobResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _JobResponse +{ + ProtobufCMessage base; + JobStatus *status; + protobuf_c_boolean has_canceled; + protobuf_c_boolean canceled; +}; +#define JOB_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&job_response__descriptor) \ + , NULL, 0, 0 } + + +/* JobResponse methods */ +void job_response__init + (JobResponse *message); +size_t job_response__get_packed_size + (const JobResponse *message); +size_t job_response__pack + (const JobResponse *message, + uint8_t *out); +size_t job_response__pack_to_buffer + (const JobResponse *message, + ProtobufCBuffer *buffer); +JobResponse * + job_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void job_response__free_unpacked + (JobResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*JobResponse_Closure) + (const JobResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor job_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_JobResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSegment.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSegment.pb-c.c new file mode 100644 index 000000000..94042855d --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSegment.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobSegment.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "JobSegment.pb-c.h" +void job_segment__init + (JobSegment *message) +{ + static const JobSegment init_value = JOB_SEGMENT__INIT; + *message = init_value; +} +size_t job_segment__get_packed_size + (const JobSegment *message) +{ + assert(message->base.descriptor == &job_segment__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t job_segment__pack + (const JobSegment *message, + uint8_t *out) +{ + assert(message->base.descriptor == &job_segment__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t job_segment__pack_to_buffer + (const JobSegment *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &job_segment__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +JobSegment * + job_segment__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (JobSegment *) + protobuf_c_message_unpack (&job_segment__descriptor, + allocator, len, data); +} +void job_segment__free_unpacked + (JobSegment *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &job_segment__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor job_segment__field_descriptors[2] = +{ + { + "Name", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(JobSegment, name), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Length", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(JobSegment, has_length), + offsetof(JobSegment, length), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned job_segment__field_indices_by_name[] = { + 1, /* field[1] = Length */ + 0, /* field[0] = Name */ +}; +static const ProtobufCIntRange job_segment__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor job_segment__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "JobSegment", + "JobSegment", + "JobSegment", + "", + sizeof(JobSegment), + 2, + job_segment__field_descriptors, + job_segment__field_indices_by_name, + 1, job_segment__number_ranges, + (ProtobufCMessageInit) job_segment__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSegment.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSegment.pb-c.h new file mode 100644 index 000000000..df8fb21e5 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSegment.pb-c.h @@ -0,0 +1,73 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobSegment.proto */ + +#ifndef PROTOBUF_C_JobSegment_2eproto__INCLUDED +#define PROTOBUF_C_JobSegment_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _JobSegment JobSegment; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _JobSegment +{ + ProtobufCMessage base; + char *name; + protobuf_c_boolean has_length; + double length; +}; +#define JOB_SEGMENT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&job_segment__descriptor) \ + , NULL, 0, 0 } + + +/* JobSegment methods */ +void job_segment__init + (JobSegment *message); +size_t job_segment__get_packed_size + (const JobSegment *message); +size_t job_segment__pack + (const JobSegment *message, + uint8_t *out); +size_t job_segment__pack_to_buffer + (const JobSegment *message, + ProtobufCBuffer *buffer); +JobSegment * + job_segment__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void job_segment__free_unpacked + (JobSegment *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*JobSegment_Closure) + (const JobSegment *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor job_segment__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_JobSegment_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobStatus.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobStatus.pb-c.c new file mode 100644 index 000000000..c7682cdb2 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobStatus.pb-c.c @@ -0,0 +1,118 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobStatus.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "JobStatus.pb-c.h" +void job_status__init + (JobStatus *message) +{ + static const JobStatus init_value = JOB_STATUS__INIT; + *message = init_value; +} +size_t job_status__get_packed_size + (const JobStatus *message) +{ + assert(message->base.descriptor == &job_status__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t job_status__pack + (const JobStatus *message, + uint8_t *out) +{ + assert(message->base.descriptor == &job_status__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t job_status__pack_to_buffer + (const JobStatus *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &job_status__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +JobStatus * + job_status__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (JobStatus *) + protobuf_c_message_unpack (&job_status__descriptor, + allocator, len, data); +} +void job_status__free_unpacked + (JobStatus *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &job_status__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor job_status__field_descriptors[3] = +{ + { + "Message", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(JobStatus, message), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Progress", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(JobStatus, has_progress), + offsetof(JobStatus, progress), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "CurrentSegmentIndex", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(JobStatus, has_currentsegmentindex), + offsetof(JobStatus, currentsegmentindex), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned job_status__field_indices_by_name[] = { + 2, /* field[2] = CurrentSegmentIndex */ + 0, /* field[0] = Message */ + 1, /* field[1] = Progress */ +}; +static const ProtobufCIntRange job_status__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor job_status__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "JobStatus", + "JobStatus", + "JobStatus", + "", + sizeof(JobStatus), + 3, + job_status__field_descriptors, + job_status__field_indices_by_name, + 1, job_status__number_ranges, + (ProtobufCMessageInit) job_status__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobStatus.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobStatus.pb-c.h new file mode 100644 index 000000000..abfb9d71f --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobStatus.pb-c.h @@ -0,0 +1,75 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobStatus.proto */ + +#ifndef PROTOBUF_C_JobStatus_2eproto__INCLUDED +#define PROTOBUF_C_JobStatus_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _JobStatus JobStatus; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _JobStatus +{ + ProtobufCMessage base; + char *message; + protobuf_c_boolean has_progress; + double progress; + protobuf_c_boolean has_currentsegmentindex; + int32_t currentsegmentindex; +}; +#define JOB_STATUS__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&job_status__descriptor) \ + , NULL, 0, 0, 0, 0 } + + +/* JobStatus methods */ +void job_status__init + (JobStatus *message); +size_t job_status__get_packed_size + (const JobStatus *message); +size_t job_status__pack + (const JobStatus *message, + uint8_t *out); +size_t job_status__pack_to_buffer + (const JobStatus *message, + ProtobufCBuffer *buffer); +JobStatus * + job_status__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void job_status__free_unpacked + (JobStatus *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*JobStatus_Closure) + (const JobStatus *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor job_status__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_JobStatus_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobTicket.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobTicket.pb-c.c new file mode 100644 index 000000000..765494fce --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobTicket.pb-c.c @@ -0,0 +1,170 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobTicket.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "JobTicket.pb-c.h" +void job_ticket__init + (JobTicket *message) +{ + static const JobTicket init_value = JOB_TICKET__INIT; + *message = init_value; +} +size_t job_ticket__get_packed_size + (const JobTicket *message) +{ + assert(message->base.descriptor == &job_ticket__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t job_ticket__pack + (const JobTicket *message, + uint8_t *out) +{ + assert(message->base.descriptor == &job_ticket__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t job_ticket__pack_to_buffer + (const JobTicket *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &job_ticket__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +JobTicket * + job_ticket__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (JobTicket *) + protobuf_c_message_unpack (&job_ticket__descriptor, + allocator, len, data); +} +void job_ticket__free_unpacked + (JobTicket *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &job_ticket__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor job_ticket__field_descriptors[7] = +{ + { + "Name", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(JobTicket, name), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "EnableInterSegment", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(JobTicket, has_enableintersegment), + offsetof(JobTicket, enableintersegment), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "InterSegmentLength", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(JobTicket, has_intersegmentlength), + offsetof(JobTicket, intersegmentlength), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Length", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(JobTicket, has_length), + offsetof(JobTicket, length), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ProcessParameters", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(JobTicket, processparameters), + &process_parameters__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "WindingMethod", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(JobTicket, has_windingmethod), + offsetof(JobTicket, windingmethod), + &job_winding_method__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Segments", + 7, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(JobTicket, n_segments), + offsetof(JobTicket, segments), + &job_segment__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned job_ticket__field_indices_by_name[] = { + 1, /* field[1] = EnableInterSegment */ + 2, /* field[2] = InterSegmentLength */ + 3, /* field[3] = Length */ + 0, /* field[0] = Name */ + 4, /* field[4] = ProcessParameters */ + 6, /* field[6] = Segments */ + 5, /* field[5] = WindingMethod */ +}; +static const ProtobufCIntRange job_ticket__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor job_ticket__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "JobTicket", + "JobTicket", + "JobTicket", + "", + sizeof(JobTicket), + 7, + job_ticket__field_descriptors, + job_ticket__field_indices_by_name, + 1, job_ticket__number_ranges, + (ProtobufCMessageInit) job_ticket__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobTicket.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobTicket.pb-c.h new file mode 100644 index 000000000..b64ee6292 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobTicket.pb-c.h @@ -0,0 +1,85 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobTicket.proto */ + +#ifndef PROTOBUF_C_JobTicket_2eproto__INCLUDED +#define PROTOBUF_C_JobTicket_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "JobSegment.pb-c.h" +#include "ProcessParameters.pb-c.h" +#include "JobWindingMethod.pb-c.h" + +typedef struct _JobTicket JobTicket; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _JobTicket +{ + ProtobufCMessage base; + char *name; + protobuf_c_boolean has_enableintersegment; + protobuf_c_boolean enableintersegment; + protobuf_c_boolean has_intersegmentlength; + double intersegmentlength; + protobuf_c_boolean has_length; + double length; + ProcessParameters *processparameters; + protobuf_c_boolean has_windingmethod; + JobWindingMethod windingmethod; + size_t n_segments; + JobSegment **segments; +}; +#define JOB_TICKET__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&job_ticket__descriptor) \ + , NULL, 0, 0, 0, 0, 0, 0, NULL, 0, JOB_WINDING_METHOD__Embroidery, 0,NULL } + + +/* JobTicket methods */ +void job_ticket__init + (JobTicket *message); +size_t job_ticket__get_packed_size + (const JobTicket *message); +size_t job_ticket__pack + (const JobTicket *message, + uint8_t *out); +size_t job_ticket__pack_to_buffer + (const JobTicket *message, + ProtobufCBuffer *buffer); +JobTicket * + job_ticket__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void job_ticket__free_unpacked + (JobTicket *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*JobTicket_Closure) + (const JobTicket *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor job_ticket__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_JobTicket_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobWindingMethod.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobWindingMethod.pb-c.c new file mode 100644 index 000000000..89ca011a3 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobWindingMethod.pb-c.c @@ -0,0 +1,37 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobWindingMethod.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "JobWindingMethod.pb-c.h" +static const ProtobufCEnumValue job_winding_method__enum_values_by_number[2] = +{ + { "Embroidery", "JOB_WINDING_METHOD__Embroidery", 0 }, + { "Calibration", "JOB_WINDING_METHOD__Calibration", 1 }, +}; +static const ProtobufCIntRange job_winding_method__value_ranges[] = { +{0, 0},{0, 2} +}; +static const ProtobufCEnumValueIndex job_winding_method__enum_values_by_name[2] = +{ + { "Calibration", 1 }, + { "Embroidery", 0 }, +}; +const ProtobufCEnumDescriptor job_winding_method__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "JobWindingMethod", + "JobWindingMethod", + "JobWindingMethod", + "", + 2, + job_winding_method__enum_values_by_number, + 2, + job_winding_method__enum_values_by_name, + 1, + job_winding_method__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobWindingMethod.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobWindingMethod.pb-c.h new file mode 100644 index 000000000..a762ae2c5 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobWindingMethod.pb-c.h @@ -0,0 +1,43 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobWindingMethod.proto */ + +#ifndef PROTOBUF_C_JobWindingMethod_2eproto__INCLUDED +#define PROTOBUF_C_JobWindingMethod_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _JobWindingMethod { + JOB_WINDING_METHOD__Embroidery = 0, + JOB_WINDING_METHOD__Calibration = 1 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(JOB_WINDING_METHOD) +} JobWindingMethod; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor job_winding_method__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_JobWindingMethod_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/ProcessParameters.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/ProcessParameters.pb-c.c new file mode 100644 index 000000000..f1d45c351 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/ProcessParameters.pb-c.c @@ -0,0 +1,287 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ProcessParameters.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ProcessParameters.pb-c.h" +void process_parameters__init + (ProcessParameters *message) +{ + static const ProcessParameters init_value = PROCESS_PARAMETERS__INIT; + *message = init_value; +} +size_t process_parameters__get_packed_size + (const ProcessParameters *message) +{ + assert(message->base.descriptor == &process_parameters__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t process_parameters__pack + (const ProcessParameters *message, + uint8_t *out) +{ + assert(message->base.descriptor == &process_parameters__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t process_parameters__pack_to_buffer + (const ProcessParameters *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &process_parameters__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +ProcessParameters * + process_parameters__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (ProcessParameters *) + protobuf_c_message_unpack (&process_parameters__descriptor, + allocator, len, data); +} +void process_parameters__free_unpacked + (ProcessParameters *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &process_parameters__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor process_parameters__field_descriptors[16] = +{ + { + "Name", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(ProcessParameters, name), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "DyeingSpeed", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_dyeingspeed), + offsetof(ProcessParameters, dyeingspeed), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MinInkUptake", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_mininkuptake), + offsetof(ProcessParameters, mininkuptake), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MixerTemp", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_mixertemp), + offsetof(ProcessParameters, mixertemp), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "HeadZone1Temp", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_headzone1temp), + offsetof(ProcessParameters, headzone1temp), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "HeadZone2Temp", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_headzone2temp), + offsetof(ProcessParameters, headzone2temp), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "HeadZone3Temp", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_headzone3temp), + offsetof(ProcessParameters, headzone3temp), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "HeadAirFlow", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_headairflow), + offsetof(ProcessParameters, headairflow), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "FeederTension", + 9, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_feedertension), + offsetof(ProcessParameters, feedertension), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "PullerTension", + 10, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_pullertension), + offsetof(ProcessParameters, pullertension), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "DryerBufferLength", + 11, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_dryerbufferlength), + offsetof(ProcessParameters, dryerbufferlength), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "DryerZone1Temp", + 12, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_dryerzone1temp), + offsetof(ProcessParameters, dryerzone1temp), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "DryerZone2Temp", + 13, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_dryerzone2temp), + offsetof(ProcessParameters, dryerzone2temp), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "DryerZone3Temp", + 14, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_dryerzone3temp), + offsetof(ProcessParameters, dryerzone3temp), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "DryerAirFlow", + 15, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_dryerairflow), + offsetof(ProcessParameters, dryerairflow), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "WinderTension", + 16, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_windertension), + offsetof(ProcessParameters, windertension), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned process_parameters__field_indices_by_name[] = { + 14, /* field[14] = DryerAirFlow */ + 10, /* field[10] = DryerBufferLength */ + 11, /* field[11] = DryerZone1Temp */ + 12, /* field[12] = DryerZone2Temp */ + 13, /* field[13] = DryerZone3Temp */ + 1, /* field[1] = DyeingSpeed */ + 8, /* field[8] = FeederTension */ + 7, /* field[7] = HeadAirFlow */ + 4, /* field[4] = HeadZone1Temp */ + 5, /* field[5] = HeadZone2Temp */ + 6, /* field[6] = HeadZone3Temp */ + 2, /* field[2] = MinInkUptake */ + 3, /* field[3] = MixerTemp */ + 0, /* field[0] = Name */ + 9, /* field[9] = PullerTension */ + 15, /* field[15] = WinderTension */ +}; +static const ProtobufCIntRange process_parameters__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 16 } +}; +const ProtobufCMessageDescriptor process_parameters__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "ProcessParameters", + "ProcessParameters", + "ProcessParameters", + "", + sizeof(ProcessParameters), + 16, + process_parameters__field_descriptors, + process_parameters__field_indices_by_name, + 1, process_parameters__number_ranges, + (ProtobufCMessageInit) process_parameters__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/ProcessParameters.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/ProcessParameters.pb-c.h new file mode 100644 index 000000000..a658f6b5b --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/ProcessParameters.pb-c.h @@ -0,0 +1,101 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ProcessParameters.proto */ + +#ifndef PROTOBUF_C_ProcessParameters_2eproto__INCLUDED +#define PROTOBUF_C_ProcessParameters_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _ProcessParameters ProcessParameters; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _ProcessParameters +{ + ProtobufCMessage base; + char *name; + protobuf_c_boolean has_dyeingspeed; + double dyeingspeed; + protobuf_c_boolean has_mininkuptake; + double mininkuptake; + protobuf_c_boolean has_mixertemp; + double mixertemp; + protobuf_c_boolean has_headzone1temp; + double headzone1temp; + protobuf_c_boolean has_headzone2temp; + double headzone2temp; + protobuf_c_boolean has_headzone3temp; + double headzone3temp; + protobuf_c_boolean has_headairflow; + double headairflow; + protobuf_c_boolean has_feedertension; + double feedertension; + protobuf_c_boolean has_pullertension; + double pullertension; + protobuf_c_boolean has_dryerbufferlength; + double dryerbufferlength; + protobuf_c_boolean has_dryerzone1temp; + double dryerzone1temp; + protobuf_c_boolean has_dryerzone2temp; + double dryerzone2temp; + protobuf_c_boolean has_dryerzone3temp; + double dryerzone3temp; + protobuf_c_boolean has_dryerairflow; + double dryerairflow; + protobuf_c_boolean has_windertension; + double windertension; +}; +#define PROCESS_PARAMETERS__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&process_parameters__descriptor) \ + , NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* ProcessParameters methods */ +void process_parameters__init + (ProcessParameters *message); +size_t process_parameters__get_packed_size + (const ProcessParameters *message); +size_t process_parameters__pack + (const ProcessParameters *message, + uint8_t *out); +size_t process_parameters__pack_to_buffer + (const ProcessParameters *message, + ProtobufCBuffer *buffer); +ProcessParameters * + process_parameters__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void process_parameters__free_unpacked + (ProcessParameters *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*ProcessParameters_Closure) + (const ProcessParameters *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor process_parameters__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ProcessParameters_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeReadResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeReadResponse.pb-c.c index 7c23c1ffa..125ec15e2 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeReadResponse.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeReadResponse.pb-c.c @@ -52,7 +52,7 @@ void stub_cartridge_read_response__free_unpacked assert(message->base.descriptor == &stub_cartridge_read_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor stub_cartridge_read_response__field_descriptors[6] = +static const ProtobufCFieldDescriptor stub_cartridge_read_response__field_descriptors[7] = { { "CartridgeId", @@ -68,7 +68,7 @@ static const ProtobufCFieldDescriptor stub_cartridge_read_response__field_descri }, { "CartridgeColor", - 3, + 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubCartridgeReadResponse, has_cartridgecolor), @@ -80,7 +80,7 @@ static const ProtobufCFieldDescriptor stub_cartridge_read_response__field_descri }, { "CartridgeVersion", - 4, + 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubCartridgeReadResponse, has_cartridgeversion), @@ -92,7 +92,7 @@ static const ProtobufCFieldDescriptor stub_cartridge_read_response__field_descri }, { "CartridgeData", - 5, + 4, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT32, offsetof(StubCartridgeReadResponse, has_cartridgedata), @@ -104,7 +104,7 @@ static const ProtobufCFieldDescriptor stub_cartridge_read_response__field_descri }, { "CartridgeUsed", - 6, + 5, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubCartridgeReadResponse, has_cartridgeused), @@ -116,16 +116,28 @@ static const ProtobufCFieldDescriptor stub_cartridge_read_response__field_descri }, { "Status", - 8, + 6, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_UINT32, - offsetof(StubCartridgeReadResponse, has_status), + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ offsetof(StubCartridgeReadResponse, status), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "StatusWord", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubCartridgeReadResponse, has_statusword), + offsetof(StubCartridgeReadResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned stub_cartridge_read_response__field_indices_by_name[] = { 1, /* field[1] = CartridgeColor */ @@ -134,13 +146,12 @@ static const unsigned stub_cartridge_read_response__field_indices_by_name[] = { 4, /* field[4] = CartridgeUsed */ 2, /* field[2] = CartridgeVersion */ 5, /* field[5] = Status */ + 6, /* field[6] = StatusWord */ }; -static const ProtobufCIntRange stub_cartridge_read_response__number_ranges[3 + 1] = +static const ProtobufCIntRange stub_cartridge_read_response__number_ranges[1 + 1] = { { 1, 0 }, - { 3, 1 }, - { 8, 5 }, - { 0, 6 } + { 0, 7 } }; const ProtobufCMessageDescriptor stub_cartridge_read_response__descriptor = { @@ -150,10 +161,10 @@ const ProtobufCMessageDescriptor stub_cartridge_read_response__descriptor = "StubCartridgeReadResponse", "", sizeof(StubCartridgeReadResponse), - 6, + 7, stub_cartridge_read_response__field_descriptors, stub_cartridge_read_response__field_indices_by_name, - 3, stub_cartridge_read_response__number_ranges, + 1, stub_cartridge_read_response__number_ranges, (ProtobufCMessageInit) stub_cartridge_read_response__init, NULL,NULL,NULL /* reserved[123] */ }; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeReadResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeReadResponse.pb-c.h index 3b82ef645..06a173e8b 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeReadResponse.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeReadResponse.pb-c.h @@ -36,12 +36,19 @@ struct _StubCartridgeReadResponse int32_t cartridgedata; protobuf_c_boolean has_cartridgeused; protobuf_c_boolean cartridgeused; - protobuf_c_boolean has_status; - uint32_t status; + /* + * Passed/Failed + */ + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; }; #define STUB_CARTRIDGE_READ_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&stub_cartridge_read_response__descriptor) \ - , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0 } /* StubCartridgeReadResponse methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeWriteResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeWriteResponse.pb-c.c index 66454c20a..aa271df59 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeWriteResponse.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeWriteResponse.pb-c.c @@ -52,7 +52,7 @@ void stub_cartridge_write_response__free_unpacked assert(message->base.descriptor == &stub_cartridge_write_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor stub_cartridge_write_response__field_descriptors[2] = +static const ProtobufCFieldDescriptor stub_cartridge_write_response__field_descriptors[3] = { { "CartridgeId", @@ -68,26 +68,38 @@ static const ProtobufCFieldDescriptor stub_cartridge_write_response__field_descr }, { "Status", - 8, + 2, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_UINT32, - offsetof(StubCartridgeWriteResponse, has_status), + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ offsetof(StubCartridgeWriteResponse, status), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "StatusWord", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubCartridgeWriteResponse, has_statusword), + offsetof(StubCartridgeWriteResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned stub_cartridge_write_response__field_indices_by_name[] = { 0, /* field[0] = CartridgeId */ 1, /* field[1] = Status */ + 2, /* field[2] = StatusWord */ }; -static const ProtobufCIntRange stub_cartridge_write_response__number_ranges[2 + 1] = +static const ProtobufCIntRange stub_cartridge_write_response__number_ranges[1 + 1] = { { 1, 0 }, - { 8, 1 }, - { 0, 2 } + { 0, 3 } }; const ProtobufCMessageDescriptor stub_cartridge_write_response__descriptor = { @@ -97,10 +109,10 @@ const ProtobufCMessageDescriptor stub_cartridge_write_response__descriptor = "StubCartridgeWriteResponse", "", sizeof(StubCartridgeWriteResponse), - 2, + 3, stub_cartridge_write_response__field_descriptors, stub_cartridge_write_response__field_indices_by_name, - 2, stub_cartridge_write_response__number_ranges, + 1, stub_cartridge_write_response__number_ranges, (ProtobufCMessageInit) stub_cartridge_write_response__init, NULL,NULL,NULL /* reserved[123] */ }; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeWriteResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeWriteResponse.pb-c.h index 5ba0eb28c..dab3d46fb 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeWriteResponse.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubCartridgeWriteResponse.pb-c.h @@ -28,12 +28,19 @@ struct _StubCartridgeWriteResponse ProtobufCMessage base; protobuf_c_boolean has_cartridgeid; uint32_t cartridgeid; - protobuf_c_boolean has_status; - uint32_t status; + /* + * Passed/Failed + */ + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; }; #define STUB_CARTRIDGE_WRITE_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&stub_cartridge_write_response__descriptor) \ - , 0, 0, 0, 0 } + , 0, 0, NULL, 0, 0 } /* StubCartridgeWriteResponse methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubDispenserResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubDispenserResponse.pb-c.c index de699971a..cbfd886ec 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubDispenserResponse.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubDispenserResponse.pb-c.c @@ -52,7 +52,7 @@ void stub_dispenser_response__free_unpacked assert(message->base.descriptor == &stub_dispenser_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor stub_dispenser_response__field_descriptors[4] = +static const ProtobufCFieldDescriptor stub_dispenser_response__field_descriptors[5] = { { "DispenserId", @@ -94,25 +94,38 @@ static const ProtobufCFieldDescriptor stub_dispenser_response__field_descriptors "Status", 4, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_BOOL, - offsetof(StubDispenserResponse, has_status), + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ offsetof(StubDispenserResponse, status), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "StatusWord", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubDispenserResponse, has_statusword), + offsetof(StubDispenserResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned stub_dispenser_response__field_indices_by_name[] = { 0, /* field[0] = DispenserId */ 1, /* field[1] = DispenserPosition */ 2, /* field[2] = InkWorningLevel */ 3, /* field[3] = Status */ + 4, /* field[4] = StatusWord */ }; static const ProtobufCIntRange stub_dispenser_response__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 5 } }; const ProtobufCMessageDescriptor stub_dispenser_response__descriptor = { @@ -122,7 +135,7 @@ const ProtobufCMessageDescriptor stub_dispenser_response__descriptor = "StubDispenserResponse", "", sizeof(StubDispenserResponse), - 4, + 5, stub_dispenser_response__field_descriptors, stub_dispenser_response__field_indices_by_name, 1, stub_dispenser_response__number_ranges, diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubDispenserResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubDispenserResponse.pb-c.h index 7598720df..14d55b18e 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubDispenserResponse.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubDispenserResponse.pb-c.h @@ -41,14 +41,18 @@ struct _StubDispenserResponse protobuf_c_boolean has_inkworninglevel; uint32_t inkworninglevel; /* - * 0-OK 1-Failed + * Passed/Failed */ - protobuf_c_boolean has_status; - protobuf_c_boolean status; + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; }; #define STUB_DISPENSER_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&stub_dispenser_response__descriptor) \ - , 0, 0, 0, 0, 0, 0, 0, 0 } + , 0, 0, 0, 0, 0, 0, NULL, 0, 0 } /* StubDispenserResponse methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashReadRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashReadRequest.pb-c.c new file mode 100644 index 000000000..e5f22797a --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashReadRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubExtFlashReadRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubExtFlashReadRequest.pb-c.h" +void stub_ext_flash_read_request__init + (StubExtFlashReadRequest *message) +{ + static const StubExtFlashReadRequest init_value = STUB_EXT_FLASH_READ_REQUEST__INIT; + *message = init_value; +} +size_t stub_ext_flash_read_request__get_packed_size + (const StubExtFlashReadRequest *message) +{ + assert(message->base.descriptor == &stub_ext_flash_read_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_ext_flash_read_request__pack + (const StubExtFlashReadRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_ext_flash_read_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_ext_flash_read_request__pack_to_buffer + (const StubExtFlashReadRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_ext_flash_read_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubExtFlashReadRequest * + stub_ext_flash_read_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubExtFlashReadRequest *) + protobuf_c_message_unpack (&stub_ext_flash_read_request__descriptor, + allocator, len, data); +} +void stub_ext_flash_read_request__free_unpacked + (StubExtFlashReadRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_ext_flash_read_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_ext_flash_read_request__field_descriptors[1] = +{ + { + "Number_Of_Words", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubExtFlashReadRequest, has_number_of_words), + offsetof(StubExtFlashReadRequest, number_of_words), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_ext_flash_read_request__field_indices_by_name[] = { + 0, /* field[0] = Number_Of_Words */ +}; +static const ProtobufCIntRange stub_ext_flash_read_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor stub_ext_flash_read_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubExtFlashReadRequest", + "StubExtFlashReadRequest", + "StubExtFlashReadRequest", + "", + sizeof(StubExtFlashReadRequest), + 1, + stub_ext_flash_read_request__field_descriptors, + stub_ext_flash_read_request__field_indices_by_name, + 1, stub_ext_flash_read_request__number_ranges, + (ProtobufCMessageInit) stub_ext_flash_read_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashReadRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashReadRequest.pb-c.h new file mode 100644 index 000000000..0345c7c86 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashReadRequest.pb-c.h @@ -0,0 +1,75 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubExtFlashReadRequest.proto */ + +#ifndef PROTOBUF_C_StubExtFlashReadRequest_2eproto__INCLUDED +#define PROTOBUF_C_StubExtFlashReadRequest_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _StubExtFlashReadRequest StubExtFlashReadRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubExtFlashReadRequest +{ + ProtobufCMessage base; + /* + *Max 5 at this test + */ + protobuf_c_boolean has_number_of_words; + uint32_t number_of_words; +}; +#define STUB_EXT_FLASH_READ_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_ext_flash_read_request__descriptor) \ + , 0, 0 } + + +/* StubExtFlashReadRequest methods */ +void stub_ext_flash_read_request__init + (StubExtFlashReadRequest *message); +size_t stub_ext_flash_read_request__get_packed_size + (const StubExtFlashReadRequest *message); +size_t stub_ext_flash_read_request__pack + (const StubExtFlashReadRequest *message, + uint8_t *out); +size_t stub_ext_flash_read_request__pack_to_buffer + (const StubExtFlashReadRequest *message, + ProtobufCBuffer *buffer); +StubExtFlashReadRequest * + stub_ext_flash_read_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_ext_flash_read_request__free_unpacked + (StubExtFlashReadRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubExtFlashReadRequest_Closure) + (const StubExtFlashReadRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_ext_flash_read_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubExtFlashReadRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashReadResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashReadResponse.pb-c.c new file mode 100644 index 000000000..57045730d --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashReadResponse.pb-c.c @@ -0,0 +1,170 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubExtFlashReadResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubExtFlashReadResponse.pb-c.h" +void stub_ext_flash_read_response__init + (StubExtFlashReadResponse *message) +{ + static const StubExtFlashReadResponse init_value = STUB_EXT_FLASH_READ_RESPONSE__INIT; + *message = init_value; +} +size_t stub_ext_flash_read_response__get_packed_size + (const StubExtFlashReadResponse *message) +{ + assert(message->base.descriptor == &stub_ext_flash_read_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_ext_flash_read_response__pack + (const StubExtFlashReadResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_ext_flash_read_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_ext_flash_read_response__pack_to_buffer + (const StubExtFlashReadResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_ext_flash_read_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubExtFlashReadResponse * + stub_ext_flash_read_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubExtFlashReadResponse *) + protobuf_c_message_unpack (&stub_ext_flash_read_response__descriptor, + allocator, len, data); +} +void stub_ext_flash_read_response__free_unpacked + (StubExtFlashReadResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_ext_flash_read_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_ext_flash_read_response__field_descriptors[7] = +{ + { + "ReadWord_1", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(StubExtFlashReadResponse, has_readword_1), + offsetof(StubExtFlashReadResponse, readword_1), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ReadWord_2", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(StubExtFlashReadResponse, has_readword_2), + offsetof(StubExtFlashReadResponse, readword_2), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ReadWord_3", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(StubExtFlashReadResponse, has_readword_3), + offsetof(StubExtFlashReadResponse, readword_3), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ReadWord_4", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(StubExtFlashReadResponse, has_readword_4), + offsetof(StubExtFlashReadResponse, readword_4), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ReadWord_5", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(StubExtFlashReadResponse, has_readword_5), + offsetof(StubExtFlashReadResponse, readword_5), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Status", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(StubExtFlashReadResponse, status), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "StatusWord", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubExtFlashReadResponse, has_statusword), + offsetof(StubExtFlashReadResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_ext_flash_read_response__field_indices_by_name[] = { + 0, /* field[0] = ReadWord_1 */ + 1, /* field[1] = ReadWord_2 */ + 2, /* field[2] = ReadWord_3 */ + 3, /* field[3] = ReadWord_4 */ + 4, /* field[4] = ReadWord_5 */ + 5, /* field[5] = Status */ + 6, /* field[6] = StatusWord */ +}; +static const ProtobufCIntRange stub_ext_flash_read_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor stub_ext_flash_read_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubExtFlashReadResponse", + "StubExtFlashReadResponse", + "StubExtFlashReadResponse", + "", + sizeof(StubExtFlashReadResponse), + 7, + stub_ext_flash_read_response__field_descriptors, + stub_ext_flash_read_response__field_indices_by_name, + 1, stub_ext_flash_read_response__number_ranges, + (ProtobufCMessageInit) stub_ext_flash_read_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashReadResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashReadResponse.pb-c.h new file mode 100644 index 000000000..c0bfdd88c --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashReadResponse.pb-c.h @@ -0,0 +1,99 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubExtFlashReadResponse.proto */ + +#ifndef PROTOBUF_C_StubExtFlashReadResponse_2eproto__INCLUDED +#define PROTOBUF_C_StubExtFlashReadResponse_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _StubExtFlashReadResponse StubExtFlashReadResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubExtFlashReadResponse +{ + ProtobufCMessage base; + /* + */ + protobuf_c_boolean has_readword_1; + int32_t readword_1; + /* + */ + protobuf_c_boolean has_readword_2; + int32_t readword_2; + /* + */ + protobuf_c_boolean has_readword_3; + int32_t readword_3; + /* + */ + protobuf_c_boolean has_readword_4; + int32_t readword_4; + /* + */ + protobuf_c_boolean has_readword_5; + int32_t readword_5; + /* + * Passed/Failed + */ + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; +}; +#define STUB_EXT_FLASH_READ_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_ext_flash_read_response__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0 } + + +/* StubExtFlashReadResponse methods */ +void stub_ext_flash_read_response__init + (StubExtFlashReadResponse *message); +size_t stub_ext_flash_read_response__get_packed_size + (const StubExtFlashReadResponse *message); +size_t stub_ext_flash_read_response__pack + (const StubExtFlashReadResponse *message, + uint8_t *out); +size_t stub_ext_flash_read_response__pack_to_buffer + (const StubExtFlashReadResponse *message, + ProtobufCBuffer *buffer); +StubExtFlashReadResponse * + stub_ext_flash_read_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_ext_flash_read_response__free_unpacked + (StubExtFlashReadResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubExtFlashReadResponse_Closure) + (const StubExtFlashReadResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_ext_flash_read_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubExtFlashReadResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashWriteRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashWriteRequest.pb-c.c new file mode 100644 index 000000000..e74bb57de --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashWriteRequest.pb-c.c @@ -0,0 +1,144 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubExtFlashWriteRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubExtFlashWriteRequest.pb-c.h" +void stub_ext_flash_write_request__init + (StubExtFlashWriteRequest *message) +{ + static const StubExtFlashWriteRequest init_value = STUB_EXT_FLASH_WRITE_REQUEST__INIT; + *message = init_value; +} +size_t stub_ext_flash_write_request__get_packed_size + (const StubExtFlashWriteRequest *message) +{ + assert(message->base.descriptor == &stub_ext_flash_write_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_ext_flash_write_request__pack + (const StubExtFlashWriteRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_ext_flash_write_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_ext_flash_write_request__pack_to_buffer + (const StubExtFlashWriteRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_ext_flash_write_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubExtFlashWriteRequest * + stub_ext_flash_write_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubExtFlashWriteRequest *) + protobuf_c_message_unpack (&stub_ext_flash_write_request__descriptor, + allocator, len, data); +} +void stub_ext_flash_write_request__free_unpacked + (StubExtFlashWriteRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_ext_flash_write_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_ext_flash_write_request__field_descriptors[5] = +{ + { + "WordToWrite1", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(StubExtFlashWriteRequest, has_wordtowrite1), + offsetof(StubExtFlashWriteRequest, wordtowrite1), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "WordToWrite2", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(StubExtFlashWriteRequest, has_wordtowrite2), + offsetof(StubExtFlashWriteRequest, wordtowrite2), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "WordToWrite3", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(StubExtFlashWriteRequest, has_wordtowrite3), + offsetof(StubExtFlashWriteRequest, wordtowrite3), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "WordToWrite4", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(StubExtFlashWriteRequest, has_wordtowrite4), + offsetof(StubExtFlashWriteRequest, wordtowrite4), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "WordToWrite5", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(StubExtFlashWriteRequest, has_wordtowrite5), + offsetof(StubExtFlashWriteRequest, wordtowrite5), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_ext_flash_write_request__field_indices_by_name[] = { + 0, /* field[0] = WordToWrite1 */ + 1, /* field[1] = WordToWrite2 */ + 2, /* field[2] = WordToWrite3 */ + 3, /* field[3] = WordToWrite4 */ + 4, /* field[4] = WordToWrite5 */ +}; +static const ProtobufCIntRange stub_ext_flash_write_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor stub_ext_flash_write_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubExtFlashWriteRequest", + "StubExtFlashWriteRequest", + "StubExtFlashWriteRequest", + "", + sizeof(StubExtFlashWriteRequest), + 5, + stub_ext_flash_write_request__field_descriptors, + stub_ext_flash_write_request__field_indices_by_name, + 1, stub_ext_flash_write_request__number_ranges, + (ProtobufCMessageInit) stub_ext_flash_write_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashWriteRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashWriteRequest.pb-c.h new file mode 100644 index 000000000..91453d218 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashWriteRequest.pb-c.h @@ -0,0 +1,95 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubExtFlashWriteRequest.proto */ + +#ifndef PROTOBUF_C_StubExtFlashWriteRequest_2eproto__INCLUDED +#define PROTOBUF_C_StubExtFlashWriteRequest_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _StubExtFlashWriteRequest StubExtFlashWriteRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubExtFlashWriteRequest +{ + ProtobufCMessage base; + /* + *0..255 + */ + protobuf_c_boolean has_wordtowrite1; + int32_t wordtowrite1; + /* + *0..255 + */ + protobuf_c_boolean has_wordtowrite2; + int32_t wordtowrite2; + /* + *0..255 + */ + protobuf_c_boolean has_wordtowrite3; + int32_t wordtowrite3; + /* + *0..255 + */ + protobuf_c_boolean has_wordtowrite4; + int32_t wordtowrite4; + /* + *0..255 + */ + protobuf_c_boolean has_wordtowrite5; + int32_t wordtowrite5; +}; +#define STUB_EXT_FLASH_WRITE_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_ext_flash_write_request__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* StubExtFlashWriteRequest methods */ +void stub_ext_flash_write_request__init + (StubExtFlashWriteRequest *message); +size_t stub_ext_flash_write_request__get_packed_size + (const StubExtFlashWriteRequest *message); +size_t stub_ext_flash_write_request__pack + (const StubExtFlashWriteRequest *message, + uint8_t *out); +size_t stub_ext_flash_write_request__pack_to_buffer + (const StubExtFlashWriteRequest *message, + ProtobufCBuffer *buffer); +StubExtFlashWriteRequest * + stub_ext_flash_write_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_ext_flash_write_request__free_unpacked + (StubExtFlashWriteRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubExtFlashWriteRequest_Closure) + (const StubExtFlashWriteRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_ext_flash_write_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubExtFlashWriteRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashWriteResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashWriteResponse.pb-c.c new file mode 100644 index 000000000..33a3b7e98 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashWriteResponse.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubExtFlashWriteResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubExtFlashWriteResponse.pb-c.h" +void stub_ext_flash_write_response__init + (StubExtFlashWriteResponse *message) +{ + static const StubExtFlashWriteResponse init_value = STUB_EXT_FLASH_WRITE_RESPONSE__INIT; + *message = init_value; +} +size_t stub_ext_flash_write_response__get_packed_size + (const StubExtFlashWriteResponse *message) +{ + assert(message->base.descriptor == &stub_ext_flash_write_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_ext_flash_write_response__pack + (const StubExtFlashWriteResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_ext_flash_write_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_ext_flash_write_response__pack_to_buffer + (const StubExtFlashWriteResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_ext_flash_write_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubExtFlashWriteResponse * + stub_ext_flash_write_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubExtFlashWriteResponse *) + protobuf_c_message_unpack (&stub_ext_flash_write_response__descriptor, + allocator, len, data); +} +void stub_ext_flash_write_response__free_unpacked + (StubExtFlashWriteResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_ext_flash_write_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_ext_flash_write_response__field_descriptors[2] = +{ + { + "Status", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(StubExtFlashWriteResponse, status), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "StatusWord", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubExtFlashWriteResponse, has_statusword), + offsetof(StubExtFlashWriteResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_ext_flash_write_response__field_indices_by_name[] = { + 0, /* field[0] = Status */ + 1, /* field[1] = StatusWord */ +}; +static const ProtobufCIntRange stub_ext_flash_write_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor stub_ext_flash_write_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubExtFlashWriteResponse", + "StubExtFlashWriteResponse", + "StubExtFlashWriteResponse", + "", + sizeof(StubExtFlashWriteResponse), + 2, + stub_ext_flash_write_response__field_descriptors, + stub_ext_flash_write_response__field_indices_by_name, + 1, stub_ext_flash_write_response__number_ranges, + (ProtobufCMessageInit) stub_ext_flash_write_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashWriteResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashWriteResponse.pb-c.h new file mode 100644 index 000000000..50d2f94d4 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubExtFlashWriteResponse.pb-c.h @@ -0,0 +1,79 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubExtFlashWriteResponse.proto */ + +#ifndef PROTOBUF_C_StubExtFlashWriteResponse_2eproto__INCLUDED +#define PROTOBUF_C_StubExtFlashWriteResponse_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _StubExtFlashWriteResponse StubExtFlashWriteResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubExtFlashWriteResponse +{ + ProtobufCMessage base; + /* + * Passed/Failed + */ + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; +}; +#define STUB_EXT_FLASH_WRITE_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_ext_flash_write_response__descriptor) \ + , NULL, 0, 0 } + + +/* StubExtFlashWriteResponse methods */ +void stub_ext_flash_write_response__init + (StubExtFlashWriteResponse *message); +size_t stub_ext_flash_write_response__get_packed_size + (const StubExtFlashWriteResponse *message); +size_t stub_ext_flash_write_response__pack + (const StubExtFlashWriteResponse *message, + uint8_t *out); +size_t stub_ext_flash_write_response__pack_to_buffer + (const StubExtFlashWriteResponse *message, + ProtobufCBuffer *buffer); +StubExtFlashWriteResponse * + stub_ext_flash_write_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_ext_flash_write_response__free_unpacked + (StubExtFlashWriteResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubExtFlashWriteResponse_Closure) + (const StubExtFlashWriteResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_ext_flash_write_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubExtFlashWriteResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOInputSetupResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOInputSetupResponse.pb-c.c index d9d10ab20..a7ad8a8e5 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOInputSetupResponse.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOInputSetupResponse.pb-c.c @@ -52,7 +52,7 @@ void stub_gpioinput_setup_response__free_unpacked assert(message->base.descriptor == &stub_gpioinput_setup_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor stub_gpioinput_setup_response__field_descriptors[3] = +static const ProtobufCFieldDescriptor stub_gpioinput_setup_response__field_descriptors[4] = { { "PortId", @@ -82,24 +82,37 @@ static const ProtobufCFieldDescriptor stub_gpioinput_setup_response__field_descr "Status", 3, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_UINT32, - offsetof(StubGPIOInputSetupResponse, has_status), + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ offsetof(StubGPIOInputSetupResponse, status), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "StatusWord", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubGPIOInputSetupResponse, has_statusword), + offsetof(StubGPIOInputSetupResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned stub_gpioinput_setup_response__field_indices_by_name[] = { 1, /* field[1] = PinId */ 0, /* field[0] = PortId */ 2, /* field[2] = Status */ + 3, /* field[3] = StatusWord */ }; static const ProtobufCIntRange stub_gpioinput_setup_response__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 4 } }; const ProtobufCMessageDescriptor stub_gpioinput_setup_response__descriptor = { @@ -109,7 +122,7 @@ const ProtobufCMessageDescriptor stub_gpioinput_setup_response__descriptor = "StubGPIOInputSetupResponse", "", sizeof(StubGPIOInputSetupResponse), - 3, + 4, stub_gpioinput_setup_response__field_descriptors, stub_gpioinput_setup_response__field_indices_by_name, 1, stub_gpioinput_setup_response__number_ranges, diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOInputSetupResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOInputSetupResponse.pb-c.h index c0c18fa8c..7a93c3048 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOInputSetupResponse.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOInputSetupResponse.pb-c.h @@ -36,14 +36,18 @@ struct _StubGPIOInputSetupResponse protobuf_c_boolean has_pinid; uint32_t pinid; /* - * 0-OK 1-Failed + * Passed/Failed */ - protobuf_c_boolean has_status; - uint32_t status; + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; }; #define STUB_GPIOINPUT_SETUP_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&stub_gpioinput_setup_response__descriptor) \ - , NULL, 0, 0, 0, 0 } + , NULL, 0, 0, NULL, 0, 0 } /* StubGPIOInputSetupResponse methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadBitResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadBitResponse.pb-c.c index 95720a650..bc5bc2e84 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadBitResponse.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadBitResponse.pb-c.c @@ -52,7 +52,7 @@ void stub_gpioread_bit_response__free_unpacked assert(message->base.descriptor == &stub_gpioread_bit_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor stub_gpioread_bit_response__field_descriptors[4] = +static const ProtobufCFieldDescriptor stub_gpioread_bit_response__field_descriptors[5] = { { "PortId", @@ -94,25 +94,38 @@ static const ProtobufCFieldDescriptor stub_gpioread_bit_response__field_descript "Status", 4, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_UINT32, - offsetof(StubGPIOReadBitResponse, has_status), + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ offsetof(StubGPIOReadBitResponse, status), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "StatusWord", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubGPIOReadBitResponse, has_statusword), + offsetof(StubGPIOReadBitResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned stub_gpioread_bit_response__field_indices_by_name[] = { 2, /* field[2] = BitValue */ 1, /* field[1] = PinId */ 0, /* field[0] = PortId */ 3, /* field[3] = Status */ + 4, /* field[4] = StatusWord */ }; static const ProtobufCIntRange stub_gpioread_bit_response__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 5 } }; const ProtobufCMessageDescriptor stub_gpioread_bit_response__descriptor = { @@ -122,7 +135,7 @@ const ProtobufCMessageDescriptor stub_gpioread_bit_response__descriptor = "StubGPIOReadBitResponse", "", sizeof(StubGPIOReadBitResponse), - 4, + 5, stub_gpioread_bit_response__field_descriptors, stub_gpioread_bit_response__field_indices_by_name, 1, stub_gpioread_bit_response__number_ranges, diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadBitResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadBitResponse.pb-c.h index 09a7ea261..ebbdc199d 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadBitResponse.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadBitResponse.pb-c.h @@ -38,14 +38,18 @@ struct _StubGPIOReadBitResponse protobuf_c_boolean has_bitvalue; protobuf_c_boolean bitvalue; /* - * 0-OK 1-Failed + * Passed/Failed */ - protobuf_c_boolean has_status; - uint32_t status; + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; }; #define STUB_GPIOREAD_BIT_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&stub_gpioread_bit_response__descriptor) \ - , NULL, 0, 0, 0, 0, 0, 0 } + , NULL, 0, 0, 0, 0, NULL, 0, 0 } /* StubGPIOReadBitResponse methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadByteResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadByteResponse.pb-c.c index a6ca419de..b43726c3e 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadByteResponse.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadByteResponse.pb-c.c @@ -52,7 +52,7 @@ void stub_gpioread_byte_response__free_unpacked assert(message->base.descriptor == &stub_gpioread_byte_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor stub_gpioread_byte_response__field_descriptors[3] = +static const ProtobufCFieldDescriptor stub_gpioread_byte_response__field_descriptors[4] = { { "PortId", @@ -79,27 +79,40 @@ static const ProtobufCFieldDescriptor stub_gpioread_byte_response__field_descrip 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "status", + "Status", 3, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_UINT32, - offsetof(StubGPIOReadByteResponse, has_status), + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ offsetof(StubGPIOReadByteResponse, status), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "StatusWord", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubGPIOReadByteResponse, has_statusword), + offsetof(StubGPIOReadByteResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned stub_gpioread_byte_response__field_indices_by_name[] = { 1, /* field[1] = ByteValue */ 0, /* field[0] = PortId */ - 2, /* field[2] = status */ + 2, /* field[2] = Status */ + 3, /* field[3] = StatusWord */ }; static const ProtobufCIntRange stub_gpioread_byte_response__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 4 } }; const ProtobufCMessageDescriptor stub_gpioread_byte_response__descriptor = { @@ -109,7 +122,7 @@ const ProtobufCMessageDescriptor stub_gpioread_byte_response__descriptor = "StubGPIOReadByteResponse", "", sizeof(StubGPIOReadByteResponse), - 3, + 4, stub_gpioread_byte_response__field_descriptors, stub_gpioread_byte_response__field_indices_by_name, 1, stub_gpioread_byte_response__number_ranges, diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadByteResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadByteResponse.pb-c.h index a1a8fe399..dad405984 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadByteResponse.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOReadByteResponse.pb-c.h @@ -33,14 +33,18 @@ struct _StubGPIOReadByteResponse protobuf_c_boolean has_bytevalue; uint32_t bytevalue; /* - * 0-OK 1-Failed + * Passed/Failed */ - protobuf_c_boolean has_status; - uint32_t status; + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; }; #define STUB_GPIOREAD_BYTE_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&stub_gpioread_byte_response__descriptor) \ - , NULL, 0, 0, 0, 0 } + , NULL, 0, 0, NULL, 0, 0 } /* StubGPIOReadByteResponse methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteBitResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteBitResponse.pb-c.c index f650dff67..ef26dbf57 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteBitResponse.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteBitResponse.pb-c.c @@ -52,7 +52,7 @@ void stub_gpiowrite_bit_response__free_unpacked assert(message->base.descriptor == &stub_gpiowrite_bit_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor stub_gpiowrite_bit_response__field_descriptors[3] = +static const ProtobufCFieldDescriptor stub_gpiowrite_bit_response__field_descriptors[4] = { { "PortId", @@ -82,24 +82,37 @@ static const ProtobufCFieldDescriptor stub_gpiowrite_bit_response__field_descrip "Status", 3, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_UINT32, - offsetof(StubGPIOWriteBitResponse, has_status), + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ offsetof(StubGPIOWriteBitResponse, status), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "StatusWord", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubGPIOWriteBitResponse, has_statusword), + offsetof(StubGPIOWriteBitResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned stub_gpiowrite_bit_response__field_indices_by_name[] = { 1, /* field[1] = PinId */ 0, /* field[0] = PortId */ 2, /* field[2] = Status */ + 3, /* field[3] = StatusWord */ }; static const ProtobufCIntRange stub_gpiowrite_bit_response__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 4 } }; const ProtobufCMessageDescriptor stub_gpiowrite_bit_response__descriptor = { @@ -109,7 +122,7 @@ const ProtobufCMessageDescriptor stub_gpiowrite_bit_response__descriptor = "StubGPIOWriteBitResponse", "", sizeof(StubGPIOWriteBitResponse), - 3, + 4, stub_gpiowrite_bit_response__field_descriptors, stub_gpiowrite_bit_response__field_indices_by_name, 1, stub_gpiowrite_bit_response__number_ranges, diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteBitResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteBitResponse.pb-c.h index 0516ad60e..831732f4a 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteBitResponse.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteBitResponse.pb-c.h @@ -36,14 +36,18 @@ struct _StubGPIOWriteBitResponse protobuf_c_boolean has_pinid; uint32_t pinid; /* - * 0-OK 1-Failed + * Passed/Failed */ - protobuf_c_boolean has_status; - uint32_t status; + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; }; #define STUB_GPIOWRITE_BIT_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&stub_gpiowrite_bit_response__descriptor) \ - , NULL, 0, 0, 0, 0 } + , NULL, 0, 0, NULL, 0, 0 } /* StubGPIOWriteBitResponse methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteByteResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteByteResponse.pb-c.c index 4a72207c7..ab6b357d9 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteByteResponse.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteByteResponse.pb-c.c @@ -52,7 +52,7 @@ void stub_gpiowrite_byte_response__free_unpacked assert(message->base.descriptor == &stub_gpiowrite_byte_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor stub_gpiowrite_byte_response__field_descriptors[2] = +static const ProtobufCFieldDescriptor stub_gpiowrite_byte_response__field_descriptors[3] = { { "PortId", @@ -67,12 +67,24 @@ static const ProtobufCFieldDescriptor stub_gpiowrite_byte_response__field_descri 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "status", + "Status", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(StubGPIOWriteByteResponse, status), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "StatusWord", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, - offsetof(StubGPIOWriteByteResponse, has_status), - offsetof(StubGPIOWriteByteResponse, status), + offsetof(StubGPIOWriteByteResponse, has_statusword), + offsetof(StubGPIOWriteByteResponse, statusword), NULL, NULL, 0, /* flags */ @@ -81,13 +93,13 @@ static const ProtobufCFieldDescriptor stub_gpiowrite_byte_response__field_descri }; static const unsigned stub_gpiowrite_byte_response__field_indices_by_name[] = { 0, /* field[0] = PortId */ - 1, /* field[1] = status */ + 1, /* field[1] = Status */ + 2, /* field[2] = StatusWord */ }; -static const ProtobufCIntRange stub_gpiowrite_byte_response__number_ranges[2 + 1] = +static const ProtobufCIntRange stub_gpiowrite_byte_response__number_ranges[1 + 1] = { { 1, 0 }, - { 3, 1 }, - { 0, 2 } + { 0, 3 } }; const ProtobufCMessageDescriptor stub_gpiowrite_byte_response__descriptor = { @@ -97,10 +109,10 @@ const ProtobufCMessageDescriptor stub_gpiowrite_byte_response__descriptor = "StubGPIOWriteByteResponse", "", sizeof(StubGPIOWriteByteResponse), - 2, + 3, stub_gpiowrite_byte_response__field_descriptors, stub_gpiowrite_byte_response__field_indices_by_name, - 2, stub_gpiowrite_byte_response__number_ranges, + 1, stub_gpiowrite_byte_response__number_ranges, (ProtobufCMessageInit) stub_gpiowrite_byte_response__init, NULL,NULL,NULL /* reserved[123] */ }; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteByteResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteByteResponse.pb-c.h index f02ec9254..6995dbc15 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteByteResponse.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubGPIOWriteByteResponse.pb-c.h @@ -31,14 +31,18 @@ struct _StubGPIOWriteByteResponse */ char *portid; /* - * 0-OK 1-Failed + * Passed/Failed */ - protobuf_c_boolean has_status; - uint32_t status; + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; }; #define STUB_GPIOWRITE_BYTE_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&stub_gpiowrite_byte_response__descriptor) \ - , NULL, 0, 0 } + , NULL, NULL, 0, 0 } /* StubGPIOWriteByteResponse methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHeaterResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHeaterResponse.pb-c.c index 83586b8da..f45ed51b6 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHeaterResponse.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHeaterResponse.pb-c.c @@ -52,7 +52,7 @@ void stub_heater_response__free_unpacked assert(message->base.descriptor == &stub_heater_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor stub_heater_response__field_descriptors[3] = +static const ProtobufCFieldDescriptor stub_heater_response__field_descriptors[4] = { { "HeaterGroupId", @@ -82,24 +82,37 @@ static const ProtobufCFieldDescriptor stub_heater_response__field_descriptors[3] "Status", 3, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_BOOL, - offsetof(StubHeaterResponse, has_status), + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ offsetof(StubHeaterResponse, status), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "StatusWord", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubHeaterResponse, has_statusword), + offsetof(StubHeaterResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned stub_heater_response__field_indices_by_name[] = { 0, /* field[0] = HeaterGroupId */ 1, /* field[1] = HeaterTemperatureSensor */ 2, /* field[2] = Status */ + 3, /* field[3] = StatusWord */ }; static const ProtobufCIntRange stub_heater_response__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 4 } }; const ProtobufCMessageDescriptor stub_heater_response__descriptor = { @@ -109,7 +122,7 @@ const ProtobufCMessageDescriptor stub_heater_response__descriptor = "StubHeaterResponse", "", sizeof(StubHeaterResponse), - 3, + 4, stub_heater_response__field_descriptors, stub_heater_response__field_indices_by_name, 1, stub_heater_response__number_ranges, diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHeaterResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHeaterResponse.pb-c.h index c7b2d08d2..fd37a5ae7 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHeaterResponse.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHeaterResponse.pb-c.h @@ -34,14 +34,18 @@ struct _StubHeaterResponse protobuf_c_boolean has_heatertemperaturesensor; uint32_t heatertemperaturesensor; /* - * 0-OK 1-Failed + * Passed/Failed */ - protobuf_c_boolean has_status; - protobuf_c_boolean status; + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; }; #define STUB_HEATER_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&stub_heater_response__descriptor) \ - , 0, 0, 0, 0, 0, 0 } + , 0, 0, 0, 0, NULL, 0, 0 } /* StubHeaterResponse methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorEncoderResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorEncoderResponse.pb-c.c index c5eac4915..5204790a0 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorEncoderResponse.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorEncoderResponse.pb-c.c @@ -52,7 +52,7 @@ void stub_motor_encoder_response__free_unpacked assert(message->base.descriptor == &stub_motor_encoder_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor stub_motor_encoder_response__field_descriptors[5] = +static const ProtobufCFieldDescriptor stub_motor_encoder_response__field_descriptors[6] = { { "EncoderId", @@ -106,14 +106,26 @@ static const ProtobufCFieldDescriptor stub_motor_encoder_response__field_descrip "Status", 5, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_BOOL, - offsetof(StubMotorEncoderResponse, has_status), + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ offsetof(StubMotorEncoderResponse, status), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "StatusWord", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorEncoderResponse, has_statusword), + offsetof(StubMotorEncoderResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned stub_motor_encoder_response__field_indices_by_name[] = { 0, /* field[0] = EncoderId */ @@ -121,11 +133,12 @@ static const unsigned stub_motor_encoder_response__field_indices_by_name[] = { 3, /* field[3] = MotorDirection */ 2, /* field[2] = MotorSpeed */ 4, /* field[4] = Status */ + 5, /* field[5] = StatusWord */ }; static const ProtobufCIntRange stub_motor_encoder_response__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 6 } }; const ProtobufCMessageDescriptor stub_motor_encoder_response__descriptor = { @@ -135,7 +148,7 @@ const ProtobufCMessageDescriptor stub_motor_encoder_response__descriptor = "StubMotorEncoderResponse", "", sizeof(StubMotorEncoderResponse), - 5, + 6, stub_motor_encoder_response__field_descriptors, stub_motor_encoder_response__field_indices_by_name, 1, stub_motor_encoder_response__number_ranges, diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorEncoderResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorEncoderResponse.pb-c.h index cff4adfa4..d1e150306 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorEncoderResponse.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorEncoderResponse.pb-c.h @@ -41,14 +41,18 @@ struct _StubMotorEncoderResponse protobuf_c_boolean has_motordirection; protobuf_c_boolean motordirection; /* - * 0-OK 1-Failed ( motion control error > ?) + * Passed/Failed */ - protobuf_c_boolean has_status; - protobuf_c_boolean status; + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; }; #define STUB_MOTOR_ENCODER_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&stub_motor_encoder_response__descriptor) \ - , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + , 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0 } /* StubMotorEncoderResponse methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubOptLimitSwitchResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubOptLimitSwitchResponse.pb-c.c index a14fd9720..1f8445842 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubOptLimitSwitchResponse.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubOptLimitSwitchResponse.pb-c.c @@ -52,7 +52,7 @@ void stub_opt_limit_switch_response__free_unpacked assert(message->base.descriptor == &stub_opt_limit_switch_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor stub_opt_limit_switch_response__field_descriptors[3] = +static const ProtobufCFieldDescriptor stub_opt_limit_switch_response__field_descriptors[4] = { { "LimitSwitchrId", @@ -82,24 +82,37 @@ static const ProtobufCFieldDescriptor stub_opt_limit_switch_response__field_desc "Status", 3, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_BOOL, - offsetof(StubOptLimitSwitchResponse, has_status), + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ offsetof(StubOptLimitSwitchResponse, status), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "StatusWord", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubOptLimitSwitchResponse, has_statusword), + offsetof(StubOptLimitSwitchResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned stub_opt_limit_switch_response__field_indices_by_name[] = { 1, /* field[1] = LimitSwitchDitection */ 0, /* field[0] = LimitSwitchrId */ 2, /* field[2] = Status */ + 3, /* field[3] = StatusWord */ }; static const ProtobufCIntRange stub_opt_limit_switch_response__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 4 } }; const ProtobufCMessageDescriptor stub_opt_limit_switch_response__descriptor = { @@ -109,7 +122,7 @@ const ProtobufCMessageDescriptor stub_opt_limit_switch_response__descriptor = "StubOptLimitSwitchResponse", "", sizeof(StubOptLimitSwitchResponse), - 3, + 4, stub_opt_limit_switch_response__field_descriptors, stub_opt_limit_switch_response__field_indices_by_name, 1, stub_opt_limit_switch_response__number_ranges, diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubOptLimitSwitchResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubOptLimitSwitchResponse.pb-c.h index 61656ccde..74ebe93d8 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubOptLimitSwitchResponse.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubOptLimitSwitchResponse.pb-c.h @@ -36,14 +36,18 @@ struct _StubOptLimitSwitchResponse protobuf_c_boolean has_limitswitchditection; protobuf_c_boolean limitswitchditection; /* - * 0-OK 1-Failed + * Passed/Failed */ - protobuf_c_boolean has_status; - protobuf_c_boolean status; + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; }; #define STUB_OPT_LIMIT_SWITCH_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&stub_opt_limit_switch_response__descriptor) \ - , 0, 0, 0, 0, 0, 0 } + , 0, 0, 0, 0, NULL, 0, 0 } /* StubOptLimitSwitchResponse methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubSteperMotorResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubSteperMotorResponse.pb-c.c index 994bcda15..1d13edf23 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubSteperMotorResponse.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubSteperMotorResponse.pb-c.c @@ -52,7 +52,7 @@ void stub_steper_motor_response__free_unpacked assert(message->base.descriptor == &stub_steper_motor_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor stub_steper_motor_response__field_descriptors[3] = +static const ProtobufCFieldDescriptor stub_steper_motor_response__field_descriptors[4] = { { "MotorId", @@ -82,24 +82,37 @@ static const ProtobufCFieldDescriptor stub_steper_motor_response__field_descript "Status", 3, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_BOOL, - offsetof(StubSteperMotorResponse, has_status), + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ offsetof(StubSteperMotorResponse, status), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "StatusWord", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubSteperMotorResponse, has_statusword), + offsetof(StubSteperMotorResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned stub_steper_motor_response__field_indices_by_name[] = { 0, /* field[0] = MotorId */ 1, /* field[1] = MotorVersion */ 2, /* field[2] = Status */ + 3, /* field[3] = StatusWord */ }; static const ProtobufCIntRange stub_steper_motor_response__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 4 } }; const ProtobufCMessageDescriptor stub_steper_motor_response__descriptor = { @@ -109,7 +122,7 @@ const ProtobufCMessageDescriptor stub_steper_motor_response__descriptor = "StubSteperMotorResponse", "", sizeof(StubSteperMotorResponse), - 3, + 4, stub_steper_motor_response__field_descriptors, stub_steper_motor_response__field_indices_by_name, 1, stub_steper_motor_response__number_ranges, diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubSteperMotorResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubSteperMotorResponse.pb-c.h index 978fb8b2c..fbe1f63ef 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubSteperMotorResponse.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubSteperMotorResponse.pb-c.h @@ -36,14 +36,18 @@ struct _StubSteperMotorResponse protobuf_c_boolean has_motorversion; uint32_t motorversion; /* - * 0-OK 1-Failed + * Passed / Failed */ - protobuf_c_boolean has_status; - protobuf_c_boolean status; + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; }; #define STUB_STEPER_MOTOR_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&stub_steper_motor_response__descriptor) \ - , 0, 0, 0, 0, 0, 0 } + , 0, 0, 0, 0, NULL, 0, 0 } /* StubSteperMotorResponse methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubValveResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubValveResponse.pb-c.c index 4fbed304f..4556cc4d2 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubValveResponse.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubValveResponse.pb-c.c @@ -52,28 +52,41 @@ void stub_valve_response__free_unpacked assert(message->base.descriptor == &stub_valve_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor stub_valve_response__field_descriptors[1] = +static const ProtobufCFieldDescriptor stub_valve_response__field_descriptors[2] = { { "Status", - 3, + 1, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_BOOL, - offsetof(StubValveResponse, has_status), + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ offsetof(StubValveResponse, status), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "StatusWord", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubValveResponse, has_statusword), + offsetof(StubValveResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned stub_valve_response__field_indices_by_name[] = { 0, /* field[0] = Status */ + 1, /* field[1] = StatusWord */ }; static const ProtobufCIntRange stub_valve_response__number_ranges[1 + 1] = { - { 3, 0 }, - { 0, 1 } + { 1, 0 }, + { 0, 2 } }; const ProtobufCMessageDescriptor stub_valve_response__descriptor = { @@ -83,7 +96,7 @@ const ProtobufCMessageDescriptor stub_valve_response__descriptor = "StubValveResponse", "", sizeof(StubValveResponse), - 1, + 2, stub_valve_response__field_descriptors, stub_valve_response__field_indices_by_name, 1, stub_valve_response__number_ranges, diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubValveResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubValveResponse.pb-c.h index 1949b4602..3b1512450 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubValveResponse.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubValveResponse.pb-c.h @@ -27,14 +27,18 @@ struct _StubValveResponse { ProtobufCMessage base; /* - * 0-OK 1-Failed + * Passed/Failed */ - protobuf_c_boolean has_status; - protobuf_c_boolean status; + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; }; #define STUB_VALVE_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&stub_valve_response__descriptor) \ - , 0, 0 } + , NULL, 0, 0 } /* StubValveResponse methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/Tango.ColorLib.vcxproj b/Software/Visual_Studio/Native/Tango.ColorLib/Tango.ColorLib.vcxproj index 8026e3054..58c610ef3 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/Tango.ColorLib.vcxproj +++ b/Software/Visual_Studio/Native/Tango.ColorLib/Tango.ColorLib.vcxproj @@ -148,6 +148,13 @@ <Text Include="ReadMe.txt" /> </ItemGroup> <ItemGroup> + <ClInclude Include="ColorConverter.h" /> + <ClInclude Include="PMR\ColorLab\CalibrationPoint.pb-c.h" /> + <ClInclude Include="PMR\ColorLab\ColorSpace.pb-c.h" /> + <ClInclude Include="PMR\ColorLab\ConversionInput.pb-c.h" /> + <ClInclude Include="PMR\ColorLab\ConversionOutput.pb-c.h" /> + <ClInclude Include="PMR\ColorLab\InputColor.pb-c.h" /> + <ClInclude Include="PMR\ColorLab\OutputColor.pb-c.h" /> <ClInclude Include="Tester.h" /> <ClInclude Include="PMR\Common\ErrorCode.pb-c.h" /> <ClInclude Include="PMR\Common\MessageContainer.pb-c.h" /> @@ -158,7 +165,14 @@ <ClInclude Include="targetver.h" /> </ItemGroup> <ItemGroup> + <ClCompile Include="ColorConverter.cpp" /> <ClCompile Include="Exports.cpp" /> + <ClCompile Include="PMR\ColorLab\CalibrationPoint.pb-c.c" /> + <ClCompile Include="PMR\ColorLab\ColorSpace.pb-c.c" /> + <ClCompile Include="PMR\ColorLab\ConversionInput.pb-c.c" /> + <ClCompile Include="PMR\ColorLab\ConversionOutput.pb-c.c" /> + <ClCompile Include="PMR\ColorLab\InputColor.pb-c.c" /> + <ClCompile Include="PMR\ColorLab\OutputColor.pb-c.c" /> <ClCompile Include="Tester.cpp" /> <ClCompile Include="PMR\Common\ErrorCode.pb-c.c" /> <ClCompile Include="PMR\Common\MessageContainer.pb-c.c" /> diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/Tango.ColorLib.vcxproj.filters b/Software/Visual_Studio/Native/Tango.ColorLib/Tango.ColorLib.vcxproj.filters index 792d60478..871011841 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/Tango.ColorLib.vcxproj.filters +++ b/Software/Visual_Studio/Native/Tango.ColorLib/Tango.ColorLib.vcxproj.filters @@ -13,6 +13,9 @@ <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> </Filter> + <Filter Include="PMR"> + <UniqueIdentifier>{0f952433-0681-4d49-9d48-c95684b56970}</UniqueIdentifier> + </Filter> </ItemGroup> <ItemGroup> <Text Include="ReadMe.txt" /> @@ -42,6 +45,27 @@ <ClInclude Include="Tester.h"> <Filter>Header Files</Filter> </ClInclude> + <ClInclude Include="ColorConverter.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="PMR\ColorLab\ColorSpace.pb-c.h"> + <Filter>PMR</Filter> + </ClInclude> + <ClInclude Include="PMR\ColorLab\ConversionInput.pb-c.h"> + <Filter>PMR</Filter> + </ClInclude> + <ClInclude Include="PMR\ColorLab\ConversionOutput.pb-c.h"> + <Filter>PMR</Filter> + </ClInclude> + <ClInclude Include="PMR\ColorLab\InputColor.pb-c.h"> + <Filter>PMR</Filter> + </ClInclude> + <ClInclude Include="PMR\ColorLab\OutputColor.pb-c.h"> + <Filter>PMR</Filter> + </ClInclude> + <ClInclude Include="PMR\ColorLab\CalibrationPoint.pb-c.h"> + <Filter>PMR</Filter> + </ClInclude> </ItemGroup> <ItemGroup> <ClCompile Include="PMR\Common\ErrorCode.pb-c.c"> @@ -68,5 +92,26 @@ <ClCompile Include="Exports.cpp"> <Filter>Source Files</Filter> </ClCompile> + <ClCompile Include="ColorConverter.cpp"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="PMR\ColorLab\ConversionInput.pb-c.c"> + <Filter>PMR</Filter> + </ClCompile> + <ClCompile Include="PMR\ColorLab\ConversionOutput.pb-c.c"> + <Filter>PMR</Filter> + </ClCompile> + <ClCompile Include="PMR\ColorLab\InputColor.pb-c.c"> + <Filter>PMR</Filter> + </ClCompile> + <ClCompile Include="PMR\ColorLab\OutputColor.pb-c.c"> + <Filter>PMR</Filter> + </ClCompile> + <ClCompile Include="PMR\ColorLab\CalibrationPoint.pb-c.c"> + <Filter>PMR</Filter> + </ClCompile> + <ClCompile Include="PMR\ColorLab\ColorSpace.pb-c.c"> + <Filter>PMR</Filter> + </ClCompile> </ItemGroup> </Project>
\ No newline at end of file diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/CalibrationPoint.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/CalibrationPoint.cs new file mode 100644 index 000000000..d1f6ed9ed --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/ColorLab/CalibrationPoint.cs @@ -0,0 +1,187 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CalibrationPoint.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.ColorLab { + + /// <summary>Holder for reflection information generated from CalibrationPoint.proto</summary> + public static partial class CalibrationPointReflection { + + #region Descriptor + /// <summary>File descriptor for CalibrationPoint.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CalibrationPointReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZDYWxpYnJhdGlvblBvaW50LnByb3RvEhJUYW5nby5QTVIuQ29sb3JMYWIi", + "KAoQQ2FsaWJyYXRpb25Qb2ludBIJCgFYGAEgASgBEgkKAVkYAiABKAFCHgoc", + "Y29tLnR3aW5lLnRhbmdvLnBtci5jb2xvcmxhYmIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.CalibrationPoint), global::Tango.PMR.ColorLab.CalibrationPoint.Parser, new[]{ "X", "Y" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class CalibrationPoint : pb::IMessage<CalibrationPoint> { + private static readonly pb::MessageParser<CalibrationPoint> _parser = new pb::MessageParser<CalibrationPoint>(() => new CalibrationPoint()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<CalibrationPoint> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.ColorLab.CalibrationPointReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CalibrationPoint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CalibrationPoint(CalibrationPoint other) : this() { + x_ = other.x_; + y_ = other.y_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public CalibrationPoint Clone() { + return new CalibrationPoint(this); + } + + /// <summary>Field number for the "X" field.</summary> + public const int XFieldNumber = 1; + private double x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double X { + get { return x_; } + set { + x_ = value; + } + } + + /// <summary>Field number for the "Y" field.</summary> + public const int YFieldNumber = 2; + private double y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Y { + get { return y_; } + set { + y_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as CalibrationPoint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(CalibrationPoint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (X != 0D) hash ^= X.GetHashCode(); + if (Y != 0D) hash ^= Y.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (X != 0D) { + output.WriteRawTag(9); + output.WriteDouble(X); + } + if (Y != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Y); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (X != 0D) { + size += 1 + 8; + } + if (Y != 0D) { + size += 1 + 8; + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(CalibrationPoint other) { + if (other == null) { + return; + } + if (other.X != 0D) { + X = other.X; + } + if (other.Y != 0D) { + Y = other.Y; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 9: { + X = input.ReadDouble(); + break; + } + case 17: { + Y = input.ReadDouble(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/ColorSpace.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/ColorSpace.cs new file mode 100644 index 000000000..55a558e5a --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/ColorLab/ColorSpace.cs @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ColorSpace.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.ColorLab { + + /// <summary>Holder for reflection information generated from ColorSpace.proto</summary> + public static partial class ColorSpaceReflection { + + #region Descriptor + /// <summary>File descriptor for ColorSpace.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ColorSpaceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBDb2xvclNwYWNlLnByb3RvEhJUYW5nby5QTVIuQ29sb3JMYWIqQAoKQ29s", + "b3JTcGFjZRIKCgZWb2x1bWUQABIHCgNSR0IQARIICgRDTVlLEAISBwoDTEFC", + "EAMSCgoGUGFudG9uEARCHgocY29tLnR3aW5lLnRhbmdvLnBtci5jb2xvcmxh", + "YmIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tango.PMR.ColorLab.ColorSpace), }, null)); + } + #endregion + + } + #region Enums + public enum ColorSpace { + [pbr::OriginalName("Volume")] Volume = 0, + [pbr::OriginalName("RGB")] Rgb = 1, + [pbr::OriginalName("CMYK")] Cmyk = 2, + [pbr::OriginalName("LAB")] Lab = 3, + [pbr::OriginalName("Panton")] Panton = 4, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/ConversionInput.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/ConversionInput.cs new file mode 100644 index 000000000..c011b6b4d --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/ColorLab/ConversionInput.cs @@ -0,0 +1,359 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ConversionInput.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.ColorLab { + + /// <summary>Holder for reflection information generated from ConversionInput.proto</summary> + public static partial class ConversionInputReflection { + + #region Descriptor + /// <summary>File descriptor for ConversionInput.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ConversionInputReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVDb252ZXJzaW9uSW5wdXQucHJvdG8SElRhbmdvLlBNUi5Db2xvckxhYhoQ", + "SW5wdXRDb2xvci5wcm90bxoWQ2FsaWJyYXRpb25Qb2ludC5wcm90byLzAQoP", + "Q29udmVyc2lvbklucHV0Eg8KB1RocmVhZEwYASABKAESDwoHVGhyZWFkQRgC", + "IAEoARIPCgdUaHJlYWRCGAMgASgBEi0KBUlucHV0GAQgASgLMh4uVGFuZ28u", + "UE1SLkNvbG9yTGFiLklucHV0Q29sb3ISEwoLRm9yd2FyZERhdGEYBSABKAwS", + "EwoLSW52ZXJzZURhdGEYBiABKAwSPQoPQ2FsaWJyYXRpb25EYXRhGAcgAygL", + "MiQuVGFuZ28uUE1SLkNvbG9yTGFiLkNhbGlicmF0aW9uUG9pbnQSFQoNU2Vn", + "bWVudExlbmd0aBgIIAEoAUIeChxjb20udHdpbmUudGFuZ28ucG1yLmNvbG9y", + "bGFiYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Tango.PMR.ColorLab.InputColorReflection.Descriptor, global::Tango.PMR.ColorLab.CalibrationPointReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.ConversionInput), global::Tango.PMR.ColorLab.ConversionInput.Parser, new[]{ "ThreadL", "ThreadA", "ThreadB", "Input", "ForwardData", "InverseData", "CalibrationData", "SegmentLength" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class ConversionInput : pb::IMessage<ConversionInput> { + private static readonly pb::MessageParser<ConversionInput> _parser = new pb::MessageParser<ConversionInput>(() => new ConversionInput()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<ConversionInput> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.ColorLab.ConversionInputReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConversionInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConversionInput(ConversionInput other) : this() { + threadL_ = other.threadL_; + threadA_ = other.threadA_; + threadB_ = other.threadB_; + Input = other.input_ != null ? other.Input.Clone() : null; + forwardData_ = other.forwardData_; + inverseData_ = other.inverseData_; + calibrationData_ = other.calibrationData_.Clone(); + segmentLength_ = other.segmentLength_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConversionInput Clone() { + return new ConversionInput(this); + } + + /// <summary>Field number for the "ThreadL" field.</summary> + public const int ThreadLFieldNumber = 1; + private double threadL_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double ThreadL { + get { return threadL_; } + set { + threadL_ = value; + } + } + + /// <summary>Field number for the "ThreadA" field.</summary> + public const int ThreadAFieldNumber = 2; + private double threadA_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double ThreadA { + get { return threadA_; } + set { + threadA_ = value; + } + } + + /// <summary>Field number for the "ThreadB" field.</summary> + public const int ThreadBFieldNumber = 3; + private double threadB_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double ThreadB { + get { return threadB_; } + set { + threadB_ = value; + } + } + + /// <summary>Field number for the "Input" field.</summary> + public const int InputFieldNumber = 4; + private global::Tango.PMR.ColorLab.InputColor input_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tango.PMR.ColorLab.InputColor Input { + get { return input_; } + set { + input_ = value; + } + } + + /// <summary>Field number for the "ForwardData" field.</summary> + public const int ForwardDataFieldNumber = 5; + private pb::ByteString forwardData_ = pb::ByteString.Empty; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString ForwardData { + get { return forwardData_; } + set { + forwardData_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "InverseData" field.</summary> + public const int InverseDataFieldNumber = 6; + private pb::ByteString inverseData_ = pb::ByteString.Empty; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString InverseData { + get { return inverseData_; } + set { + inverseData_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "CalibrationData" field.</summary> + public const int CalibrationDataFieldNumber = 7; + private static readonly pb::FieldCodec<global::Tango.PMR.ColorLab.CalibrationPoint> _repeated_calibrationData_codec + = pb::FieldCodec.ForMessage(58, global::Tango.PMR.ColorLab.CalibrationPoint.Parser); + private readonly pbc::RepeatedField<global::Tango.PMR.ColorLab.CalibrationPoint> calibrationData_ = new pbc::RepeatedField<global::Tango.PMR.ColorLab.CalibrationPoint>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField<global::Tango.PMR.ColorLab.CalibrationPoint> CalibrationData { + get { return calibrationData_; } + } + + /// <summary>Field number for the "SegmentLength" field.</summary> + public const int SegmentLengthFieldNumber = 8; + private double segmentLength_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double SegmentLength { + get { return segmentLength_; } + set { + segmentLength_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ConversionInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ConversionInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ThreadL != other.ThreadL) return false; + if (ThreadA != other.ThreadA) return false; + if (ThreadB != other.ThreadB) return false; + if (!object.Equals(Input, other.Input)) return false; + if (ForwardData != other.ForwardData) return false; + if (InverseData != other.InverseData) return false; + if(!calibrationData_.Equals(other.calibrationData_)) return false; + if (SegmentLength != other.SegmentLength) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ThreadL != 0D) hash ^= ThreadL.GetHashCode(); + if (ThreadA != 0D) hash ^= ThreadA.GetHashCode(); + if (ThreadB != 0D) hash ^= ThreadB.GetHashCode(); + if (input_ != null) hash ^= Input.GetHashCode(); + if (ForwardData.Length != 0) hash ^= ForwardData.GetHashCode(); + if (InverseData.Length != 0) hash ^= InverseData.GetHashCode(); + hash ^= calibrationData_.GetHashCode(); + if (SegmentLength != 0D) hash ^= SegmentLength.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ThreadL != 0D) { + output.WriteRawTag(9); + output.WriteDouble(ThreadL); + } + if (ThreadA != 0D) { + output.WriteRawTag(17); + output.WriteDouble(ThreadA); + } + if (ThreadB != 0D) { + output.WriteRawTag(25); + output.WriteDouble(ThreadB); + } + if (input_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Input); + } + if (ForwardData.Length != 0) { + output.WriteRawTag(42); + output.WriteBytes(ForwardData); + } + if (InverseData.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(InverseData); + } + calibrationData_.WriteTo(output, _repeated_calibrationData_codec); + if (SegmentLength != 0D) { + output.WriteRawTag(65); + output.WriteDouble(SegmentLength); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ThreadL != 0D) { + size += 1 + 8; + } + if (ThreadA != 0D) { + size += 1 + 8; + } + if (ThreadB != 0D) { + size += 1 + 8; + } + if (input_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Input); + } + if (ForwardData.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(ForwardData); + } + if (InverseData.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(InverseData); + } + size += calibrationData_.CalculateSize(_repeated_calibrationData_codec); + if (SegmentLength != 0D) { + size += 1 + 8; + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ConversionInput other) { + if (other == null) { + return; + } + if (other.ThreadL != 0D) { + ThreadL = other.ThreadL; + } + if (other.ThreadA != 0D) { + ThreadA = other.ThreadA; + } + if (other.ThreadB != 0D) { + ThreadB = other.ThreadB; + } + if (other.input_ != null) { + if (input_ == null) { + input_ = new global::Tango.PMR.ColorLab.InputColor(); + } + Input.MergeFrom(other.Input); + } + if (other.ForwardData.Length != 0) { + ForwardData = other.ForwardData; + } + if (other.InverseData.Length != 0) { + InverseData = other.InverseData; + } + calibrationData_.Add(other.calibrationData_); + if (other.SegmentLength != 0D) { + SegmentLength = other.SegmentLength; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 9: { + ThreadL = input.ReadDouble(); + break; + } + case 17: { + ThreadA = input.ReadDouble(); + break; + } + case 25: { + ThreadB = input.ReadDouble(); + break; + } + case 34: { + if (input_ == null) { + input_ = new global::Tango.PMR.ColorLab.InputColor(); + } + input.ReadMessage(input_); + break; + } + case 42: { + ForwardData = input.ReadBytes(); + break; + } + case 50: { + InverseData = input.ReadBytes(); + break; + } + case 58: { + calibrationData_.AddEntriesFrom(input, _repeated_calibrationData_codec); + break; + } + case 65: { + SegmentLength = input.ReadDouble(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/ConversionOutput.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/ConversionOutput.cs new file mode 100644 index 000000000..818a88771 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/ColorLab/ConversionOutput.cs @@ -0,0 +1,181 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ConversionOutput.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.ColorLab { + + /// <summary>Holder for reflection information generated from ConversionOutput.proto</summary> + public static partial class ConversionOutputReflection { + + #region Descriptor + /// <summary>File descriptor for ConversionOutput.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ConversionOutputReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZDb252ZXJzaW9uT3V0cHV0LnByb3RvEhJUYW5nby5QTVIuQ29sb3JMYWIa", + "EU91dHB1dENvbG9yLnByb3RvIlwKEENvbnZlcnNpb25PdXRwdXQSNAoLU3Vn", + "Z2VzdGlvbnMYASADKAsyHy5UYW5nby5QTVIuQ29sb3JMYWIuT3V0cHV0Q29s", + "b3ISEgoKT3V0T2ZHYW11dBgCIAEoCEIeChxjb20udHdpbmUudGFuZ28ucG1y", + "LmNvbG9ybGFiYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Tango.PMR.ColorLab.OutputColorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.ConversionOutput), global::Tango.PMR.ColorLab.ConversionOutput.Parser, new[]{ "Suggestions", "OutOfGamut" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class ConversionOutput : pb::IMessage<ConversionOutput> { + private static readonly pb::MessageParser<ConversionOutput> _parser = new pb::MessageParser<ConversionOutput>(() => new ConversionOutput()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<ConversionOutput> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.ColorLab.ConversionOutputReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConversionOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConversionOutput(ConversionOutput other) : this() { + suggestions_ = other.suggestions_.Clone(); + outOfGamut_ = other.outOfGamut_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConversionOutput Clone() { + return new ConversionOutput(this); + } + + /// <summary>Field number for the "Suggestions" field.</summary> + public const int SuggestionsFieldNumber = 1; + private static readonly pb::FieldCodec<global::Tango.PMR.ColorLab.OutputColor> _repeated_suggestions_codec + = pb::FieldCodec.ForMessage(10, global::Tango.PMR.ColorLab.OutputColor.Parser); + private readonly pbc::RepeatedField<global::Tango.PMR.ColorLab.OutputColor> suggestions_ = new pbc::RepeatedField<global::Tango.PMR.ColorLab.OutputColor>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField<global::Tango.PMR.ColorLab.OutputColor> Suggestions { + get { return suggestions_; } + } + + /// <summary>Field number for the "OutOfGamut" field.</summary> + public const int OutOfGamutFieldNumber = 2; + private bool outOfGamut_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool OutOfGamut { + get { return outOfGamut_; } + set { + outOfGamut_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as ConversionOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ConversionOutput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!suggestions_.Equals(other.suggestions_)) return false; + if (OutOfGamut != other.OutOfGamut) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= suggestions_.GetHashCode(); + if (OutOfGamut != false) hash ^= OutOfGamut.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + suggestions_.WriteTo(output, _repeated_suggestions_codec); + if (OutOfGamut != false) { + output.WriteRawTag(16); + output.WriteBool(OutOfGamut); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += suggestions_.CalculateSize(_repeated_suggestions_codec); + if (OutOfGamut != false) { + size += 1 + 1; + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ConversionOutput other) { + if (other == null) { + return; + } + suggestions_.Add(other.suggestions_); + if (other.OutOfGamut != false) { + OutOfGamut = other.OutOfGamut; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 10: { + suggestions_.AddEntriesFrom(input, _repeated_suggestions_codec); + break; + } + case 16: { + OutOfGamut = input.ReadBool(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/InputColor.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/InputColor.cs new file mode 100644 index 000000000..e901fa265 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/ColorLab/InputColor.cs @@ -0,0 +1,726 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InputColor.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.ColorLab { + + /// <summary>Holder for reflection information generated from InputColor.proto</summary> + public static partial class InputColorReflection { + + #region Descriptor + /// <summary>File descriptor for InputColor.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InputColorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBJbnB1dENvbG9yLnByb3RvEhJUYW5nby5QTVIuQ29sb3JMYWIaEENvbG9y", + "U3BhY2UucHJvdG8izQIKCklucHV0Q29sb3ISMgoKQ29sb3JTcGFjZRgBIAEo", + "DjIeLlRhbmdvLlBNUi5Db2xvckxhYi5Db2xvclNwYWNlEg4KBkxlbmd0aBgC", + "IAEoARILCgNSZWQYAyABKAUSDQoFR3JlZW4YBCABKAUSDAoEQmx1ZRgFIAEo", + "BRIMCgRDeWFuGAYgASgBEg8KB01hZ2VudGEYByABKAESDgoGWWVsbG93GAgg", + "ASgBEg0KBUJsYWNrGAkgASgBEgkKAUwYCiABKAESCQoBQRgLIAEoARIJCgFC", + "GAwgASgBEgoKAlYwGA0gASgBEgoKAlYxGA4gASgBEgoKAlYyGA8gASgBEgoK", + "AlYzGBAgASgBEgoKAlY0GBEgASgBEgoKAlY1GBIgASgBEgoKAlY2GBMgASgB", + "EgoKAlY3GBQgASgBEhIKClBhbnRvbkNvZGUYFSABKAVCHgocY29tLnR3aW5l", + "LnRhbmdvLnBtci5jb2xvcmxhYmIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Tango.PMR.ColorLab.ColorSpaceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.InputColor), global::Tango.PMR.ColorLab.InputColor.Parser, new[]{ "ColorSpace", "Length", "Red", "Green", "Blue", "Cyan", "Magenta", "Yellow", "Black", "L", "A", "B", "V0", "V1", "V2", "V3", "V4", "V5", "V6", "V7", "PantonCode" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class InputColor : pb::IMessage<InputColor> { + private static readonly pb::MessageParser<InputColor> _parser = new pb::MessageParser<InputColor>(() => new InputColor()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<InputColor> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.ColorLab.InputColorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InputColor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InputColor(InputColor other) : this() { + colorSpace_ = other.colorSpace_; + length_ = other.length_; + red_ = other.red_; + green_ = other.green_; + blue_ = other.blue_; + cyan_ = other.cyan_; + magenta_ = other.magenta_; + yellow_ = other.yellow_; + black_ = other.black_; + l_ = other.l_; + a_ = other.a_; + b_ = other.b_; + v0_ = other.v0_; + v1_ = other.v1_; + v2_ = other.v2_; + v3_ = other.v3_; + v4_ = other.v4_; + v5_ = other.v5_; + v6_ = other.v6_; + v7_ = other.v7_; + pantonCode_ = other.pantonCode_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InputColor Clone() { + return new InputColor(this); + } + + /// <summary>Field number for the "ColorSpace" field.</summary> + public const int ColorSpaceFieldNumber = 1; + private global::Tango.PMR.ColorLab.ColorSpace colorSpace_ = 0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tango.PMR.ColorLab.ColorSpace ColorSpace { + get { return colorSpace_; } + set { + colorSpace_ = value; + } + } + + /// <summary>Field number for the "Length" field.</summary> + public const int LengthFieldNumber = 2; + private double length_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Length { + get { return length_; } + set { + length_ = value; + } + } + + /// <summary>Field number for the "Red" field.</summary> + public const int RedFieldNumber = 3; + private int red_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Red { + get { return red_; } + set { + red_ = value; + } + } + + /// <summary>Field number for the "Green" field.</summary> + public const int GreenFieldNumber = 4; + private int green_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Green { + get { return green_; } + set { + green_ = value; + } + } + + /// <summary>Field number for the "Blue" field.</summary> + public const int BlueFieldNumber = 5; + private int blue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Blue { + get { return blue_; } + set { + blue_ = value; + } + } + + /// <summary>Field number for the "Cyan" field.</summary> + public const int CyanFieldNumber = 6; + private double cyan_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Cyan { + get { return cyan_; } + set { + cyan_ = value; + } + } + + /// <summary>Field number for the "Magenta" field.</summary> + public const int MagentaFieldNumber = 7; + private double magenta_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Magenta { + get { return magenta_; } + set { + magenta_ = value; + } + } + + /// <summary>Field number for the "Yellow" field.</summary> + public const int YellowFieldNumber = 8; + private double yellow_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Yellow { + get { return yellow_; } + set { + yellow_ = value; + } + } + + /// <summary>Field number for the "Black" field.</summary> + public const int BlackFieldNumber = 9; + private double black_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Black { + get { return black_; } + set { + black_ = value; + } + } + + /// <summary>Field number for the "L" field.</summary> + public const int LFieldNumber = 10; + private double l_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double L { + get { return l_; } + set { + l_ = value; + } + } + + /// <summary>Field number for the "A" field.</summary> + public const int AFieldNumber = 11; + private double a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double A { + get { return a_; } + set { + a_ = value; + } + } + + /// <summary>Field number for the "B" field.</summary> + public const int BFieldNumber = 12; + private double b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double B { + get { return b_; } + set { + b_ = value; + } + } + + /// <summary>Field number for the "V0" field.</summary> + public const int V0FieldNumber = 13; + private double v0_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V0 { + get { return v0_; } + set { + v0_ = value; + } + } + + /// <summary>Field number for the "V1" field.</summary> + public const int V1FieldNumber = 14; + private double v1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V1 { + get { return v1_; } + set { + v1_ = value; + } + } + + /// <summary>Field number for the "V2" field.</summary> + public const int V2FieldNumber = 15; + private double v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// <summary>Field number for the "V3" field.</summary> + public const int V3FieldNumber = 16; + private double v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// <summary>Field number for the "V4" field.</summary> + public const int V4FieldNumber = 17; + private double v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + /// <summary>Field number for the "V5" field.</summary> + public const int V5FieldNumber = 18; + private double v5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V5 { + get { return v5_; } + set { + v5_ = value; + } + } + + /// <summary>Field number for the "V6" field.</summary> + public const int V6FieldNumber = 19; + private double v6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V6 { + get { return v6_; } + set { + v6_ = value; + } + } + + /// <summary>Field number for the "V7" field.</summary> + public const int V7FieldNumber = 20; + private double v7_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V7 { + get { return v7_; } + set { + v7_ = value; + } + } + + /// <summary>Field number for the "PantonCode" field.</summary> + public const int PantonCodeFieldNumber = 21; + private int pantonCode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int PantonCode { + get { return pantonCode_; } + set { + pantonCode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as InputColor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(InputColor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ColorSpace != other.ColorSpace) return false; + if (Length != other.Length) return false; + if (Red != other.Red) return false; + if (Green != other.Green) return false; + if (Blue != other.Blue) return false; + if (Cyan != other.Cyan) return false; + if (Magenta != other.Magenta) return false; + if (Yellow != other.Yellow) return false; + if (Black != other.Black) return false; + if (L != other.L) return false; + if (A != other.A) return false; + if (B != other.B) return false; + if (V0 != other.V0) return false; + if (V1 != other.V1) return false; + if (V2 != other.V2) return false; + if (V3 != other.V3) return false; + if (V4 != other.V4) return false; + if (V5 != other.V5) return false; + if (V6 != other.V6) return false; + if (V7 != other.V7) return false; + if (PantonCode != other.PantonCode) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ColorSpace != 0) hash ^= ColorSpace.GetHashCode(); + if (Length != 0D) hash ^= Length.GetHashCode(); + if (Red != 0) hash ^= Red.GetHashCode(); + if (Green != 0) hash ^= Green.GetHashCode(); + if (Blue != 0) hash ^= Blue.GetHashCode(); + if (Cyan != 0D) hash ^= Cyan.GetHashCode(); + if (Magenta != 0D) hash ^= Magenta.GetHashCode(); + if (Yellow != 0D) hash ^= Yellow.GetHashCode(); + if (Black != 0D) hash ^= Black.GetHashCode(); + if (L != 0D) hash ^= L.GetHashCode(); + if (A != 0D) hash ^= A.GetHashCode(); + if (B != 0D) hash ^= B.GetHashCode(); + if (V0 != 0D) hash ^= V0.GetHashCode(); + if (V1 != 0D) hash ^= V1.GetHashCode(); + if (V2 != 0D) hash ^= V2.GetHashCode(); + if (V3 != 0D) hash ^= V3.GetHashCode(); + if (V4 != 0D) hash ^= V4.GetHashCode(); + if (V5 != 0D) hash ^= V5.GetHashCode(); + if (V6 != 0D) hash ^= V6.GetHashCode(); + if (V7 != 0D) hash ^= V7.GetHashCode(); + if (PantonCode != 0) hash ^= PantonCode.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ColorSpace != 0) { + output.WriteRawTag(8); + output.WriteEnum((int) ColorSpace); + } + if (Length != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Length); + } + if (Red != 0) { + output.WriteRawTag(24); + output.WriteInt32(Red); + } + if (Green != 0) { + output.WriteRawTag(32); + output.WriteInt32(Green); + } + if (Blue != 0) { + output.WriteRawTag(40); + output.WriteInt32(Blue); + } + if (Cyan != 0D) { + output.WriteRawTag(49); + output.WriteDouble(Cyan); + } + if (Magenta != 0D) { + output.WriteRawTag(57); + output.WriteDouble(Magenta); + } + if (Yellow != 0D) { + output.WriteRawTag(65); + output.WriteDouble(Yellow); + } + if (Black != 0D) { + output.WriteRawTag(73); + output.WriteDouble(Black); + } + if (L != 0D) { + output.WriteRawTag(81); + output.WriteDouble(L); + } + if (A != 0D) { + output.WriteRawTag(89); + output.WriteDouble(A); + } + if (B != 0D) { + output.WriteRawTag(97); + output.WriteDouble(B); + } + if (V0 != 0D) { + output.WriteRawTag(105); + output.WriteDouble(V0); + } + if (V1 != 0D) { + output.WriteRawTag(113); + output.WriteDouble(V1); + } + if (V2 != 0D) { + output.WriteRawTag(121); + output.WriteDouble(V2); + } + if (V3 != 0D) { + output.WriteRawTag(129, 1); + output.WriteDouble(V3); + } + if (V4 != 0D) { + output.WriteRawTag(137, 1); + output.WriteDouble(V4); + } + if (V5 != 0D) { + output.WriteRawTag(145, 1); + output.WriteDouble(V5); + } + if (V6 != 0D) { + output.WriteRawTag(153, 1); + output.WriteDouble(V6); + } + if (V7 != 0D) { + output.WriteRawTag(161, 1); + output.WriteDouble(V7); + } + if (PantonCode != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(PantonCode); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ColorSpace != 0) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ColorSpace); + } + if (Length != 0D) { + size += 1 + 8; + } + if (Red != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Red); + } + if (Green != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Green); + } + if (Blue != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Blue); + } + if (Cyan != 0D) { + size += 1 + 8; + } + if (Magenta != 0D) { + size += 1 + 8; + } + if (Yellow != 0D) { + size += 1 + 8; + } + if (Black != 0D) { + size += 1 + 8; + } + if (L != 0D) { + size += 1 + 8; + } + if (A != 0D) { + size += 1 + 8; + } + if (B != 0D) { + size += 1 + 8; + } + if (V0 != 0D) { + size += 1 + 8; + } + if (V1 != 0D) { + size += 1 + 8; + } + if (V2 != 0D) { + size += 1 + 8; + } + if (V3 != 0D) { + size += 2 + 8; + } + if (V4 != 0D) { + size += 2 + 8; + } + if (V5 != 0D) { + size += 2 + 8; + } + if (V6 != 0D) { + size += 2 + 8; + } + if (V7 != 0D) { + size += 2 + 8; + } + if (PantonCode != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PantonCode); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(InputColor other) { + if (other == null) { + return; + } + if (other.ColorSpace != 0) { + ColorSpace = other.ColorSpace; + } + if (other.Length != 0D) { + Length = other.Length; + } + if (other.Red != 0) { + Red = other.Red; + } + if (other.Green != 0) { + Green = other.Green; + } + if (other.Blue != 0) { + Blue = other.Blue; + } + if (other.Cyan != 0D) { + Cyan = other.Cyan; + } + if (other.Magenta != 0D) { + Magenta = other.Magenta; + } + if (other.Yellow != 0D) { + Yellow = other.Yellow; + } + if (other.Black != 0D) { + Black = other.Black; + } + if (other.L != 0D) { + L = other.L; + } + if (other.A != 0D) { + A = other.A; + } + if (other.B != 0D) { + B = other.B; + } + if (other.V0 != 0D) { + V0 = other.V0; + } + if (other.V1 != 0D) { + V1 = other.V1; + } + if (other.V2 != 0D) { + V2 = other.V2; + } + if (other.V3 != 0D) { + V3 = other.V3; + } + if (other.V4 != 0D) { + V4 = other.V4; + } + if (other.V5 != 0D) { + V5 = other.V5; + } + if (other.V6 != 0D) { + V6 = other.V6; + } + if (other.V7 != 0D) { + V7 = other.V7; + } + if (other.PantonCode != 0) { + PantonCode = other.PantonCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + colorSpace_ = (global::Tango.PMR.ColorLab.ColorSpace) input.ReadEnum(); + break; + } + case 17: { + Length = input.ReadDouble(); + break; + } + case 24: { + Red = input.ReadInt32(); + break; + } + case 32: { + Green = input.ReadInt32(); + break; + } + case 40: { + Blue = input.ReadInt32(); + break; + } + case 49: { + Cyan = input.ReadDouble(); + break; + } + case 57: { + Magenta = input.ReadDouble(); + break; + } + case 65: { + Yellow = input.ReadDouble(); + break; + } + case 73: { + Black = input.ReadDouble(); + break; + } + case 81: { + L = input.ReadDouble(); + break; + } + case 89: { + A = input.ReadDouble(); + break; + } + case 97: { + B = input.ReadDouble(); + break; + } + case 105: { + V0 = input.ReadDouble(); + break; + } + case 113: { + V1 = input.ReadDouble(); + break; + } + case 121: { + V2 = input.ReadDouble(); + break; + } + case 129: { + V3 = input.ReadDouble(); + break; + } + case 137: { + V4 = input.ReadDouble(); + break; + } + case 145: { + V5 = input.ReadDouble(); + break; + } + case 153: { + V6 = input.ReadDouble(); + break; + } + case 161: { + V7 = input.ReadDouble(); + break; + } + case 168: { + PantonCode = input.ReadInt32(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/OutputColor.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/OutputColor.cs new file mode 100644 index 000000000..0228171bc --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/ColorLab/OutputColor.cs @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: OutputColor.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.ColorLab { + + /// <summary>Holder for reflection information generated from OutputColor.proto</summary> + public static partial class OutputColorReflection { + + #region Descriptor + /// <summary>File descriptor for OutputColor.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static OutputColorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFPdXRwdXRDb2xvci5wcm90bxISVGFuZ28uUE1SLkNvbG9yTGFiIswBCgtP", + "dXRwdXRDb2xvchILCgNSZWQYASABKAUSDQoFR3JlZW4YAiABKAUSDAoEQmx1", + "ZRgDIAEoBRIKCgJWMBgEIAEoARIKCgJWMRgFIAEoARIKCgJWMhgGIAEoARIK", + "CgJWMxgHIAEoARIKCgJWNBgIIAEoARIKCgJWNRgJIAEoARIKCgJWNhgKIAEo", + "ARIKCgJWNxgLIAEoARIOCgZMZW5ndGgYDCABKAESIwobUHJvY2Vzc1BhcmFt", + "ZXRlcnNUYWJsZUluZGV4GA0gASgFQh4KHGNvbS50d2luZS50YW5nby5wbXIu", + "Y29sb3JsYWJiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.OutputColor), global::Tango.PMR.ColorLab.OutputColor.Parser, new[]{ "Red", "Green", "Blue", "V0", "V1", "V2", "V3", "V4", "V5", "V6", "V7", "Length", "ProcessParametersTableIndex" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class OutputColor : pb::IMessage<OutputColor> { + private static readonly pb::MessageParser<OutputColor> _parser = new pb::MessageParser<OutputColor>(() => new OutputColor()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<OutputColor> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.ColorLab.OutputColorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OutputColor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OutputColor(OutputColor other) : this() { + red_ = other.red_; + green_ = other.green_; + blue_ = other.blue_; + v0_ = other.v0_; + v1_ = other.v1_; + v2_ = other.v2_; + v3_ = other.v3_; + v4_ = other.v4_; + v5_ = other.v5_; + v6_ = other.v6_; + v7_ = other.v7_; + length_ = other.length_; + processParametersTableIndex_ = other.processParametersTableIndex_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OutputColor Clone() { + return new OutputColor(this); + } + + /// <summary>Field number for the "Red" field.</summary> + public const int RedFieldNumber = 1; + private int red_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Red { + get { return red_; } + set { + red_ = value; + } + } + + /// <summary>Field number for the "Green" field.</summary> + public const int GreenFieldNumber = 2; + private int green_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Green { + get { return green_; } + set { + green_ = value; + } + } + + /// <summary>Field number for the "Blue" field.</summary> + public const int BlueFieldNumber = 3; + private int blue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Blue { + get { return blue_; } + set { + blue_ = value; + } + } + + /// <summary>Field number for the "V0" field.</summary> + public const int V0FieldNumber = 4; + private double v0_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V0 { + get { return v0_; } + set { + v0_ = value; + } + } + + /// <summary>Field number for the "V1" field.</summary> + public const int V1FieldNumber = 5; + private double v1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V1 { + get { return v1_; } + set { + v1_ = value; + } + } + + /// <summary>Field number for the "V2" field.</summary> + public const int V2FieldNumber = 6; + private double v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// <summary>Field number for the "V3" field.</summary> + public const int V3FieldNumber = 7; + private double v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// <summary>Field number for the "V4" field.</summary> + public const int V4FieldNumber = 8; + private double v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + /// <summary>Field number for the "V5" field.</summary> + public const int V5FieldNumber = 9; + private double v5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V5 { + get { return v5_; } + set { + v5_ = value; + } + } + + /// <summary>Field number for the "V6" field.</summary> + public const int V6FieldNumber = 10; + private double v6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V6 { + get { return v6_; } + set { + v6_ = value; + } + } + + /// <summary>Field number for the "V7" field.</summary> + public const int V7FieldNumber = 11; + private double v7_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double V7 { + get { return v7_; } + set { + v7_ = value; + } + } + + /// <summary>Field number for the "Length" field.</summary> + public const int LengthFieldNumber = 12; + private double length_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Length { + get { return length_; } + set { + length_ = value; + } + } + + /// <summary>Field number for the "ProcessParametersTableIndex" field.</summary> + public const int ProcessParametersTableIndexFieldNumber = 13; + private int processParametersTableIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ProcessParametersTableIndex { + get { return processParametersTableIndex_; } + set { + processParametersTableIndex_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as OutputColor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(OutputColor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Red != other.Red) return false; + if (Green != other.Green) return false; + if (Blue != other.Blue) return false; + if (V0 != other.V0) return false; + if (V1 != other.V1) return false; + if (V2 != other.V2) return false; + if (V3 != other.V3) return false; + if (V4 != other.V4) return false; + if (V5 != other.V5) return false; + if (V6 != other.V6) return false; + if (V7 != other.V7) return false; + if (Length != other.Length) return false; + if (ProcessParametersTableIndex != other.ProcessParametersTableIndex) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Red != 0) hash ^= Red.GetHashCode(); + if (Green != 0) hash ^= Green.GetHashCode(); + if (Blue != 0) hash ^= Blue.GetHashCode(); + if (V0 != 0D) hash ^= V0.GetHashCode(); + if (V1 != 0D) hash ^= V1.GetHashCode(); + if (V2 != 0D) hash ^= V2.GetHashCode(); + if (V3 != 0D) hash ^= V3.GetHashCode(); + if (V4 != 0D) hash ^= V4.GetHashCode(); + if (V5 != 0D) hash ^= V5.GetHashCode(); + if (V6 != 0D) hash ^= V6.GetHashCode(); + if (V7 != 0D) hash ^= V7.GetHashCode(); + if (Length != 0D) hash ^= Length.GetHashCode(); + if (ProcessParametersTableIndex != 0) hash ^= ProcessParametersTableIndex.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Red != 0) { + output.WriteRawTag(8); + output.WriteInt32(Red); + } + if (Green != 0) { + output.WriteRawTag(16); + output.WriteInt32(Green); + } + if (Blue != 0) { + output.WriteRawTag(24); + output.WriteInt32(Blue); + } + if (V0 != 0D) { + output.WriteRawTag(33); + output.WriteDouble(V0); + } + if (V1 != 0D) { + output.WriteRawTag(41); + output.WriteDouble(V1); + } + if (V2 != 0D) { + output.WriteRawTag(49); + output.WriteDouble(V2); + } + if (V3 != 0D) { + output.WriteRawTag(57); + output.WriteDouble(V3); + } + if (V4 != 0D) { + output.WriteRawTag(65); + output.WriteDouble(V4); + } + if (V5 != 0D) { + output.WriteRawTag(73); + output.WriteDouble(V5); + } + if (V6 != 0D) { + output.WriteRawTag(81); + output.WriteDouble(V6); + } + if (V7 != 0D) { + output.WriteRawTag(89); + output.WriteDouble(V7); + } + if (Length != 0D) { + output.WriteRawTag(97); + output.WriteDouble(Length); + } + if (ProcessParametersTableIndex != 0) { + output.WriteRawTag(104); + output.WriteInt32(ProcessParametersTableIndex); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Red != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Red); + } + if (Green != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Green); + } + if (Blue != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Blue); + } + if (V0 != 0D) { + size += 1 + 8; + } + if (V1 != 0D) { + size += 1 + 8; + } + if (V2 != 0D) { + size += 1 + 8; + } + if (V3 != 0D) { + size += 1 + 8; + } + if (V4 != 0D) { + size += 1 + 8; + } + if (V5 != 0D) { + size += 1 + 8; + } + if (V6 != 0D) { + size += 1 + 8; + } + if (V7 != 0D) { + size += 1 + 8; + } + if (Length != 0D) { + size += 1 + 8; + } + if (ProcessParametersTableIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ProcessParametersTableIndex); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(OutputColor other) { + if (other == null) { + return; + } + if (other.Red != 0) { + Red = other.Red; + } + if (other.Green != 0) { + Green = other.Green; + } + if (other.Blue != 0) { + Blue = other.Blue; + } + if (other.V0 != 0D) { + V0 = other.V0; + } + if (other.V1 != 0D) { + V1 = other.V1; + } + if (other.V2 != 0D) { + V2 = other.V2; + } + if (other.V3 != 0D) { + V3 = other.V3; + } + if (other.V4 != 0D) { + V4 = other.V4; + } + if (other.V5 != 0D) { + V5 = other.V5; + } + if (other.V6 != 0D) { + V6 = other.V6; + } + if (other.V7 != 0D) { + V7 = other.V7; + } + if (other.Length != 0D) { + Length = other.Length; + } + if (other.ProcessParametersTableIndex != 0) { + ProcessParametersTableIndex = other.ProcessParametersTableIndex; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + Red = input.ReadInt32(); + break; + } + case 16: { + Green = input.ReadInt32(); + break; + } + case 24: { + Blue = input.ReadInt32(); + break; + } + case 33: { + V0 = input.ReadDouble(); + break; + } + case 41: { + V1 = input.ReadDouble(); + break; + } + case 49: { + V2 = input.ReadDouble(); + break; + } + case 57: { + V3 = input.ReadDouble(); + break; + } + case 65: { + V4 = input.ReadDouble(); + break; + } + case 73: { + V5 = input.ReadDouble(); + break; + } + case 81: { + V6 = input.ReadDouble(); + break; + } + case 89: { + V7 = input.ReadDouble(); + break; + } + case 97: { + Length = input.ReadDouble(); + break; + } + case 104: { + ProcessParametersTableIndex = input.ReadInt32(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/Common/DoubleArray.cs b/Software/Visual_Studio/Tango.PMR/Diagnostics/DoubleArray.cs index 3977e2f86..949b1deda 100644 --- a/Software/Visual_Studio/Tango.PMR/Common/DoubleArray.cs +++ b/Software/Visual_Studio/Tango.PMR/Diagnostics/DoubleArray.cs @@ -7,7 +7,7 @@ using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; -namespace Tango.PMR.Common { +namespace Tango.PMR.Diagnostics { /// <summary>Holder for reflection information generated from DoubleArray.proto</summary> public static partial class DoubleArrayReflection { @@ -22,13 +22,13 @@ namespace Tango.PMR.Common { static DoubleArrayReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "ChFEb3VibGVBcnJheS5wcm90bxIQVGFuZ28uUE1SLkNvbW1vbiIbCgtEb3Vi", - "bGVBcnJheRIMCgREYXRhGAEgAygBQhwKGmNvbS50d2luZS50YW5nby5wbXIu", - "Y29tbW9uYgZwcm90bzM=")); + "ChFEb3VibGVBcnJheS5wcm90bxIVVGFuZ28uUE1SLkRpYWdub3N0aWNzIhsK", + "C0RvdWJsZUFycmF5EgwKBERhdGEYASADKAFCIQofY29tLnR3aW5lLnRhbmdv", + "LnBtci5kaWFnbm9zdGljc2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Common.DoubleArray), global::Tango.PMR.Common.DoubleArray.Parser, new[]{ "Data" }, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.DoubleArray), global::Tango.PMR.Diagnostics.DoubleArray.Parser, new[]{ "Data" }, null, null, null) })); } #endregion @@ -42,7 +42,7 @@ namespace Tango.PMR.Common { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return global::Tango.PMR.Common.DoubleArrayReflection.Descriptor.MessageTypes[0]; } + get { return global::Tango.PMR.Diagnostics.DoubleArrayReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] diff --git a/Software/Visual_Studio/Tango.PMR/Diagnostics/PushDiagnosticsResponse.cs b/Software/Visual_Studio/Tango.PMR/Diagnostics/PushDiagnosticsResponse.cs index 5fa343d81..85fba5d22 100644 --- a/Software/Visual_Studio/Tango.PMR/Diagnostics/PushDiagnosticsResponse.cs +++ b/Software/Visual_Studio/Tango.PMR/Diagnostics/PushDiagnosticsResponse.cs @@ -23,14 +23,14 @@ namespace Tango.PMR.Diagnostics { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Ch1QdXNoRGlhZ25vc3RpY3NSZXNwb25zZS5wcm90bxIVVGFuZ28uUE1SLkRp", - "YWdub3N0aWNzGhFEb3VibGVBcnJheS5wcm90byKdAQoXUHVzaERpYWdub3N0", + "YWdub3N0aWNzGhFEb3VibGVBcnJheS5wcm90byKiAQoXUHVzaERpYWdub3N0", "aWNzUmVzcG9uc2USFAoMRGFuY2VyMUFuZ2xlGAEgAygBEhQKDERhbmNlcjJB", - "bmdsZRgCIAMoARIUCgxEYW5jZXIzQW5nbGUYAyADKAESQAoZRGlzcGVuc2Vy", - "c01vdG9yc0ZyZXF1ZW5jeRgEIAMoCzIdLlRhbmdvLlBNUi5Db21tb24uRG91", - "YmxlQXJyYXlCIQofY29tLnR3aW5lLnRhbmdvLnBtci5kaWFnbm9zdGljc2IG", - "cHJvdG8z")); + "bmdsZRgCIAMoARIUCgxEYW5jZXIzQW5nbGUYAyADKAESRQoZRGlzcGVuc2Vy", + "c01vdG9yc0ZyZXF1ZW5jeRgEIAMoCzIiLlRhbmdvLlBNUi5EaWFnbm9zdGlj", + "cy5Eb3VibGVBcnJheUIhCh9jb20udHdpbmUudGFuZ28ucG1yLmRpYWdub3N0", + "aWNzYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Tango.PMR.Common.DoubleArrayReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::Tango.PMR.Diagnostics.DoubleArrayReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.PushDiagnosticsResponse), global::Tango.PMR.Diagnostics.PushDiagnosticsResponse.Parser, new[]{ "Dancer1Angle", "Dancer2Angle", "Dancer3Angle", "DispensersMotorsFrequency" }, null, null, null) })); @@ -106,11 +106,11 @@ namespace Tango.PMR.Diagnostics { /// <summary>Field number for the "DispensersMotorsFrequency" field.</summary> public const int DispensersMotorsFrequencyFieldNumber = 4; - private static readonly pb::FieldCodec<global::Tango.PMR.Common.DoubleArray> _repeated_dispensersMotorsFrequency_codec - = pb::FieldCodec.ForMessage(34, global::Tango.PMR.Common.DoubleArray.Parser); - private readonly pbc::RepeatedField<global::Tango.PMR.Common.DoubleArray> dispensersMotorsFrequency_ = new pbc::RepeatedField<global::Tango.PMR.Common.DoubleArray>(); + private static readonly pb::FieldCodec<global::Tango.PMR.Diagnostics.DoubleArray> _repeated_dispensersMotorsFrequency_codec + = pb::FieldCodec.ForMessage(34, global::Tango.PMR.Diagnostics.DoubleArray.Parser); + private readonly pbc::RepeatedField<global::Tango.PMR.Diagnostics.DoubleArray> dispensersMotorsFrequency_ = new pbc::RepeatedField<global::Tango.PMR.Diagnostics.DoubleArray>(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField<global::Tango.PMR.Common.DoubleArray> DispensersMotorsFrequency { + public pbc::RepeatedField<global::Tango.PMR.Diagnostics.DoubleArray> DispensersMotorsFrequency { get { return dispensersMotorsFrequency_; } } diff --git a/Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj b/Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj index 09eeccf3a..87f7c61e2 100644 --- a/Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj +++ b/Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj @@ -47,7 +47,13 @@ <Compile Include="..\Versioning\GlobalVersionInfo.cs"> <Link>GlobalVersionInfo.cs</Link> </Compile> - <Compile Include="Common\DoubleArray.cs" /> + <Compile Include="ColorLab\CalibrationPoint.cs" /> + <Compile Include="ColorLab\ColorSpace.cs" /> + <Compile Include="ColorLab\ConversionInput.cs" /> + <Compile Include="ColorLab\ConversionOutput.cs" /> + <Compile Include="ColorLab\InputColor.cs" /> + <Compile Include="ColorLab\OutputColor.cs" /> + <Compile Include="Diagnostics\DoubleArray.cs" /> <Compile Include="Diagnostics\PushDiagnosticsRequest.cs" /> <Compile Include="Diagnostics\PushDiagnosticsResponse.cs" /> <Compile Include="ExtensionMethods.cs" /> |
