/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: common_types.proto */ #ifndef PROTOBUF_C_common_5ftypes_2eproto__INCLUDED #define PROTOBUF_C_common_5ftypes_2eproto__INCLUDED #include PROTOBUF_C__BEGIN_DECLS #if PROTOBUF_C_VERSION_NUMBER < 1003000 # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. #elif 1003002 < 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 _StreamingProtobufs__Null StreamingProtobufs__Null; typedef struct _StreamingProtobufs__ConfiguredOpt StreamingProtobufs__ConfiguredOpt; typedef struct _StreamingProtobufs__TrueOpt StreamingProtobufs__TrueOpt; typedef struct _StreamingProtobufs__FalseOpt StreamingProtobufs__FalseOpt; typedef struct _StreamingProtobufs__EnabledOpt StreamingProtobufs__EnabledOpt; typedef struct _StreamingProtobufs__DisabledOpt StreamingProtobufs__DisabledOpt; typedef struct _StreamingProtobufs__EnabledDisabledOpt StreamingProtobufs__EnabledDisabledOpt; typedef struct _StreamingProtobufs__OnOffOpt StreamingProtobufs__OnOffOpt; /* --- enums --- */ typedef enum _StreamingProtobufs__ConfiguredOpt__Value { STREAMING_PROTOBUFS__CONFIGURED_OPT__VALUE__protobuf_unspecified = 0, STREAMING_PROTOBUFS__CONFIGURED_OPT__VALUE__configured = 1 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(STREAMING_PROTOBUFS__CONFIGURED_OPT__VALUE) } StreamingProtobufs__ConfiguredOpt__Value; typedef enum _StreamingProtobufs__TrueOpt__Value { STREAMING_PROTOBUFS__TRUE_OPT__VALUE__protobuf_unspecified = 0, STREAMING_PROTOBUFS__TRUE_OPT__VALUE__true = 1 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(STREAMING_PROTOBUFS__TRUE_OPT__VALUE) } StreamingProtobufs__TrueOpt__Value; typedef enum _StreamingProtobufs__FalseOpt__Value { STREAMING_PROTOBUFS__FALSE_OPT__VALUE__protobuf_unspecified = 0, STREAMING_PROTOBUFS__FALSE_OPT__VALUE__false = 1 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(STREAMING_PROTOBUFS__FALSE_OPT__VALUE) } StreamingProtobufs__FalseOpt__Value; typedef enum _StreamingProtobufs__EnabledOpt__Value { STREAMING_PROTOBUFS__ENABLED_OPT__VALUE__protobuf_unspecified = 0, STREAMING_PROTOBUFS__ENABLED_OPT__VALUE__enabled = 1 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(STREAMING_PROTOBUFS__ENABLED_OPT__VALUE) } StreamingProtobufs__EnabledOpt__Value; typedef enum _StreamingProtobufs__DisabledOpt__Value { STREAMING_PROTOBUFS__DISABLED_OPT__VALUE__protobuf_unspecified = 0, STREAMING_PROTOBUFS__DISABLED_OPT__VALUE__disabled = 1 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(STREAMING_PROTOBUFS__DISABLED_OPT__VALUE) } StreamingProtobufs__DisabledOpt__Value; typedef enum _StreamingProtobufs__EnabledDisabledOpt__Value { STREAMING_PROTOBUFS__ENABLED_DISABLED_OPT__VALUE__protobuf_unspecified = 0, STREAMING_PROTOBUFS__ENABLED_DISABLED_OPT__VALUE__enabled = 1, STREAMING_PROTOBUFS__ENABLED_DISABLED_OPT__VALUE__disabled = 2 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(STREAMING_PROTOBUFS__ENABLED_DISABLED_OPT__VALUE) } StreamingProtobufs__EnabledDisabledOpt__Value; typedef enum _StreamingProtobufs__OnOffOpt__Value { STREAMING_PROTOBUFS__ON_OFF_OPT__VALUE__protobuf_unspecified = 0, STREAMING_PROTOBUFS__ON_OFF_OPT__VALUE__on = 1, STREAMING_PROTOBUFS__ON_OFF_OPT__VALUE__off = 2 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(STREAMING_PROTOBUFS__ON_OFF_OPT__VALUE) } StreamingProtobufs__OnOffOpt__Value; /* --- messages --- */ struct _StreamingProtobufs__Null { ProtobufCMessage base; }; #define STREAMING_PROTOBUFS__NULL__INIT \ { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__null__descriptor) \ } struct _StreamingProtobufs__ConfiguredOpt { ProtobufCMessage base; StreamingProtobufs__ConfiguredOpt__Value value; }; #define STREAMING_PROTOBUFS__CONFIGURED_OPT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__configured_opt__descriptor) \ , STREAMING_PROTOBUFS__CONFIGURED_OPT__VALUE__protobuf_unspecified } struct _StreamingProtobufs__TrueOpt { ProtobufCMessage base; StreamingProtobufs__TrueOpt__Value value; }; #define STREAMING_PROTOBUFS__TRUE_OPT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__true_opt__descriptor) \ , STREAMING_PROTOBUFS__TRUE_OPT__VALUE__protobuf_unspecified } struct _StreamingProtobufs__FalseOpt { ProtobufCMessage base; StreamingProtobufs__FalseOpt__Value value; }; #define STREAMING_PROTOBUFS__FALSE_OPT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__false_opt__descriptor) \ , STREAMING_PROTOBUFS__FALSE_OPT__VALUE__protobuf_unspecified } struct _StreamingProtobufs__EnabledOpt { ProtobufCMessage base; StreamingProtobufs__EnabledOpt__Value value; }; #define STREAMING_PROTOBUFS__ENABLED_OPT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__enabled_opt__descriptor) \ , STREAMING_PROTOBUFS__ENABLED_OPT__VALUE__protobuf_unspecified } struct _StreamingProtobufs__DisabledOpt { ProtobufCMessage base; StreamingProtobufs__DisabledOpt__Value value; }; #define STREAMING_PROTOBUFS__DISABLED_OPT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__disabled_opt__descriptor) \ , STREAMING_PROTOBUFS__DISABLED_OPT__VALUE__protobuf_unspecified } struct _StreamingProtobufs__EnabledDisabledOpt { ProtobufCMessage base; StreamingProtobufs__EnabledDisabledOpt__Value value; }; #define STREAMING_PROTOBUFS__ENABLED_DISABLED_OPT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__enabled_disabled_opt__descriptor) \ , STREAMING_PROTOBUFS__ENABLED_DISABLED_OPT__VALUE__protobuf_unspecified } struct _StreamingProtobufs__OnOffOpt { ProtobufCMessage base; StreamingProtobufs__OnOffOpt__Value value; }; #define STREAMING_PROTOBUFS__ON_OFF_OPT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__on_off_opt__descriptor) \ , STREAMING_PROTOBUFS__ON_OFF_OPT__VALUE__protobuf_unspecified } /* StreamingProtobufs__Null methods */ void streaming_protobufs__null__init (StreamingProtobufs__Null *message); size_t streaming_protobufs__null__get_packed_size (const StreamingProtobufs__Null *message); size_t streaming_protobufs__null__pack (const StreamingProtobufs__Null *message, uint8_t *out); size_t streaming_protobufs__null__pack_to_buffer (const StreamingProtobufs__Null *message, ProtobufCBuffer *buffer); StreamingProtobufs__Null * streaming_protobufs__null__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void streaming_protobufs__null__free_unpacked (StreamingProtobufs__Null *message, ProtobufCAllocator *allocator); /* StreamingProtobufs__ConfiguredOpt methods */ void streaming_protobufs__configured_opt__init (StreamingProtobufs__ConfiguredOpt *message); size_t streaming_protobufs__configured_opt__get_packed_size (const StreamingProtobufs__ConfiguredOpt *message); size_t streaming_protobufs__configured_opt__pack (const StreamingProtobufs__ConfiguredOpt *message, uint8_t *out); size_t streaming_protobufs__configured_opt__pack_to_buffer (const StreamingProtobufs__ConfiguredOpt *message, ProtobufCBuffer *buffer); StreamingProtobufs__ConfiguredOpt * streaming_protobufs__configured_opt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void streaming_protobufs__configured_opt__free_unpacked (StreamingProtobufs__ConfiguredOpt *message, ProtobufCAllocator *allocator); /* StreamingProtobufs__TrueOpt methods */ void streaming_protobufs__true_opt__init (StreamingProtobufs__TrueOpt *message); size_t streaming_protobufs__true_opt__get_packed_size (const StreamingProtobufs__TrueOpt *message); size_t streaming_protobufs__true_opt__pack (const StreamingProtobufs__TrueOpt *message, uint8_t *out); size_t streaming_protobufs__true_opt__pack_to_buffer (const StreamingProtobufs__TrueOpt *message, ProtobufCBuffer *buffer); StreamingProtobufs__TrueOpt * streaming_protobufs__true_opt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void streaming_protobufs__true_opt__free_unpacked (StreamingProtobufs__TrueOpt *message, ProtobufCAllocator *allocator); /* StreamingProtobufs__FalseOpt methods */ void streaming_protobufs__false_opt__init (StreamingProtobufs__FalseOpt *message); size_t streaming_protobufs__false_opt__get_packed_size (const StreamingProtobufs__FalseOpt *message); size_t streaming_protobufs__false_opt__pack (const StreamingProtobufs__FalseOpt *message, uint8_t *out); size_t streaming_protobufs__false_opt__pack_to_buffer (const StreamingProtobufs__FalseOpt *message, ProtobufCBuffer *buffer); StreamingProtobufs__FalseOpt * streaming_protobufs__false_opt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void streaming_protobufs__false_opt__free_unpacked (StreamingProtobufs__FalseOpt *message, ProtobufCAllocator *allocator); /* StreamingProtobufs__EnabledOpt methods */ void streaming_protobufs__enabled_opt__init (StreamingProtobufs__EnabledOpt *message); size_t streaming_protobufs__enabled_opt__get_packed_size (const StreamingProtobufs__EnabledOpt *message); size_t streaming_protobufs__enabled_opt__pack (const StreamingProtobufs__EnabledOpt *message, uint8_t *out); size_t streaming_protobufs__enabled_opt__pack_to_buffer (const StreamingProtobufs__EnabledOpt *message, ProtobufCBuffer *buffer); StreamingProtobufs__EnabledOpt * streaming_protobufs__enabled_opt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void streaming_protobufs__enabled_opt__free_unpacked (StreamingProtobufs__EnabledOpt *message, ProtobufCAllocator *allocator); /* StreamingProtobufs__DisabledOpt methods */ void streaming_protobufs__disabled_opt__init (StreamingProtobufs__DisabledOpt *message); size_t streaming_protobufs__disabled_opt__get_packed_size (const StreamingProtobufs__DisabledOpt *message); size_t streaming_protobufs__disabled_opt__pack (const StreamingProtobufs__DisabledOpt *message, uint8_t *out); size_t streaming_protobufs__disabled_opt__pack_to_buffer (const StreamingProtobufs__DisabledOpt *message, ProtobufCBuffer *buffer); StreamingProtobufs__DisabledOpt * streaming_protobufs__disabled_opt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void streaming_protobufs__disabled_opt__free_unpacked (StreamingProtobufs__DisabledOpt *message, ProtobufCAllocator *allocator); /* StreamingProtobufs__EnabledDisabledOpt methods */ void streaming_protobufs__enabled_disabled_opt__init (StreamingProtobufs__EnabledDisabledOpt *message); size_t streaming_protobufs__enabled_disabled_opt__get_packed_size (const StreamingProtobufs__EnabledDisabledOpt *message); size_t streaming_protobufs__enabled_disabled_opt__pack (const StreamingProtobufs__EnabledDisabledOpt *message, uint8_t *out); size_t streaming_protobufs__enabled_disabled_opt__pack_to_buffer (const StreamingProtobufs__EnabledDisabledOpt *message, ProtobufCBuffer *buffer); StreamingProtobufs__EnabledDisabledOpt * streaming_protobufs__enabled_disabled_opt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void streaming_protobufs__enabled_disabled_opt__free_unpacked (StreamingProtobufs__EnabledDisabledOpt *message, ProtobufCAllocator *allocator); /* StreamingProtobufs__OnOffOpt methods */ void streaming_protobufs__on_off_opt__init (StreamingProtobufs__OnOffOpt *message); size_t streaming_protobufs__on_off_opt__get_packed_size (const StreamingProtobufs__OnOffOpt *message); size_t streaming_protobufs__on_off_opt__pack (const StreamingProtobufs__OnOffOpt *message, uint8_t *out); size_t streaming_protobufs__on_off_opt__pack_to_buffer (const StreamingProtobufs__OnOffOpt *message, ProtobufCBuffer *buffer); StreamingProtobufs__OnOffOpt * streaming_protobufs__on_off_opt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void streaming_protobufs__on_off_opt__free_unpacked (StreamingProtobufs__OnOffOpt *message, ProtobufCAllocator *allocator); /* --- per-message closures --- */ typedef void (*StreamingProtobufs__Null_Closure) (const StreamingProtobufs__Null *message, void *closure_data); typedef void (*StreamingProtobufs__ConfiguredOpt_Closure) (const StreamingProtobufs__ConfiguredOpt *message, void *closure_data); typedef void (*StreamingProtobufs__TrueOpt_Closure) (const StreamingProtobufs__TrueOpt *message, void *closure_data); typedef void (*StreamingProtobufs__FalseOpt_Closure) (const StreamingProtobufs__FalseOpt *message, void *closure_data); typedef void (*StreamingProtobufs__EnabledOpt_Closure) (const StreamingProtobufs__EnabledOpt *message, void *closure_data); typedef void (*StreamingProtobufs__DisabledOpt_Closure) (const StreamingProtobufs__DisabledOpt *message, void *closure_data); typedef void (*StreamingProtobufs__EnabledDisabledOpt_Closure) (const StreamingProtobufs__EnabledDisabledOpt *message, void *closure_data); typedef void (*StreamingProtobufs__OnOffOpt_Closure) (const StreamingProtobufs__OnOffOpt *message, void *closure_data); /* --- services --- */ /* --- descriptors --- */ extern const ProtobufCMessageDescriptor streaming_protobufs__null__descriptor; extern const ProtobufCMessageDescriptor streaming_protobufs__configured_opt__descriptor; extern const ProtobufCEnumDescriptor streaming_protobufs__configured_opt__value__descriptor; extern const ProtobufCMessageDescriptor streaming_protobufs__true_opt__descriptor; extern const ProtobufCEnumDescriptor streaming_protobufs__true_opt__value__descriptor; extern const ProtobufCMessageDescriptor streaming_protobufs__false_opt__descriptor; extern const ProtobufCEnumDescriptor streaming_protobufs__false_opt__value__descriptor; extern const ProtobufCMessageDescriptor streaming_protobufs__enabled_opt__descriptor; extern const ProtobufCEnumDescriptor streaming_protobufs__enabled_opt__value__descriptor; extern const ProtobufCMessageDescriptor streaming_protobufs__disabled_opt__descriptor; extern const ProtobufCEnumDescriptor streaming_protobufs__disabled_opt__value__descriptor; extern const ProtobufCMessageDescriptor streaming_protobufs__enabled_disabled_opt__descriptor; extern const ProtobufCEnumDescriptor streaming_protobufs__enabled_disabled_opt__value__descriptor; extern const ProtobufCMessageDescriptor streaming_protobufs__on_off_opt__descriptor; extern const ProtobufCEnumDescriptor streaming_protobufs__on_off_opt__value__descriptor; PROTOBUF_C__END_DECLS #endif /* PROTOBUF_C_common_5ftypes_2eproto__INCLUDED */