80 lines
2.6 KiB
C
80 lines
2.6 KiB
C
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
|
|
/* Generated from: processvalue.proto */
|
|
|
|
#ifndef PROTOBUF_C_processvalue_2eproto__INCLUDED
|
|
#define PROTOBUF_C_processvalue_2eproto__INCLUDED
|
|
|
|
#include <protobuf-c/protobuf-c.h>
|
|
|
|
PROTOBUF_C__BEGIN_DECLS
|
|
|
|
#if PROTOBUF_C_VERSION_NUMBER < 1000000
|
|
# 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 1002001 < 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 _Krohne__ProcessValue Krohne__ProcessValue;
|
|
|
|
|
|
/* --- enums --- */
|
|
|
|
typedef enum _Krohne__ProcessValue__StatusType {
|
|
KROHNE__PROCESS_VALUE__STATUS_TYPE__valid = 0,
|
|
KROHNE__PROCESS_VALUE__STATUS_TYPE__invalid = 1
|
|
PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(KROHNE__PROCESS_VALUE__STATUS_TYPE)
|
|
} Krohne__ProcessValue__StatusType;
|
|
|
|
/* --- messages --- */
|
|
|
|
struct _Krohne__ProcessValue
|
|
{
|
|
ProtobufCMessage base;
|
|
double value;
|
|
int32_t unit;
|
|
Krohne__ProcessValue__StatusType status;
|
|
};
|
|
#define KROHNE__PROCESS_VALUE__INIT \
|
|
{ PROTOBUF_C_MESSAGE_INIT (&krohne__process_value__descriptor) \
|
|
, 0, 0, 0 }
|
|
|
|
|
|
/* Krohne__ProcessValue methods */
|
|
void krohne__process_value__init
|
|
(Krohne__ProcessValue *message);
|
|
size_t krohne__process_value__get_packed_size
|
|
(const Krohne__ProcessValue *message);
|
|
size_t krohne__process_value__pack
|
|
(const Krohne__ProcessValue *message,
|
|
uint8_t *out);
|
|
size_t krohne__process_value__pack_to_buffer
|
|
(const Krohne__ProcessValue *message,
|
|
ProtobufCBuffer *buffer);
|
|
Krohne__ProcessValue *
|
|
krohne__process_value__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data);
|
|
void krohne__process_value__free_unpacked
|
|
(Krohne__ProcessValue *message,
|
|
ProtobufCAllocator *allocator);
|
|
/* --- per-message closures --- */
|
|
|
|
typedef void (*Krohne__ProcessValue_Closure)
|
|
(const Krohne__ProcessValue *message,
|
|
void *closure_data);
|
|
|
|
/* --- services --- */
|
|
|
|
|
|
/* --- descriptors --- */
|
|
|
|
extern const ProtobufCMessageDescriptor krohne__process_value__descriptor;
|
|
extern const ProtobufCEnumDescriptor krohne__process_value__status_type__descriptor;
|
|
|
|
PROTOBUF_C__END_DECLS
|
|
|
|
|
|
#endif /* PROTOBUF_C_processvalue_2eproto__INCLUDED */
|