/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: AlarmHandlingItem.proto */ #ifndef PROTOBUF_C_AlarmHandlingItem_2eproto__INCLUDED #define PROTOBUF_C_AlarmHandlingItem_2eproto__INCLUDED #include PROTOBUF_C__BEGIN_DECLS #if PROTOBUF_C_VERSION_NUMBER < 1003000 # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. #elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION # error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. #endif #include "AlarmSourceType.pb-c.h" #include "DebugLogCategory.pb-c.h" #include "EventType.pb-c.h" typedef struct _AlarmHandlingItem AlarmHandlingItem; /* --- enums --- */ /* --- messages --- */ struct _AlarmHandlingItem { ProtobufCMessage base; protobuf_c_boolean has_alarmsource; AlarmSourceType alarmsource; protobuf_c_boolean has_deviceid; uint32_t deviceid; protobuf_c_boolean has_moduledeviceid; uint32_t moduledeviceid; protobuf_c_boolean has_alarmvalue; uint32_t alarmvalue; protobuf_c_boolean has_alarmdirection; protobuf_c_boolean alarmdirection; protobuf_c_boolean has_severity; DebugLogCategory severity; protobuf_c_boolean has_debouncevalue; uint32_t debouncevalue; protobuf_c_boolean has_eventtype; EventType eventtype; char *eventname; protobuf_c_boolean has_ispersistent; protobuf_c_boolean ispersistent; }; #define ALARM_HANDLING_ITEM__INIT \ { PROTOBUF_C_MESSAGE_INIT (&alarm_handling_item__descriptor) \ , 0, ALARM_SOURCE_TYPE__TemperatureAlarm, 0, 0, 0, 0, 0, 0, 0, 0, 0, DEBUG_LOG_CATEGORY__Info, 0, 0, 0, EVENT_TYPE__None, NULL, 0, 0 } /* AlarmHandlingItem methods */ void alarm_handling_item__init (AlarmHandlingItem *message); size_t alarm_handling_item__get_packed_size (const AlarmHandlingItem *message); size_t alarm_handling_item__pack (const AlarmHandlingItem *message, uint8_t *out); size_t alarm_handling_item__pack_to_buffer (const AlarmHandlingItem *message, ProtobufCBuffer *buffer); AlarmHandlingItem * alarm_handling_item__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void alarm_handling_item__free_unpacked (AlarmHandlingItem *message, ProtobufCAllocator *allocator); /* --- per-message closures --- */ typedef void (*AlarmHandlingItem_Closure) (const AlarmHandlingItem *message, void *closure_data); /* --- services --- */ /* --- descriptors --- */ extern const ProtobufCMessageDescriptor alarm_handling_item__descriptor; PROTOBUF_C__END_DECLS #endif /* PROTOBUF_C_AlarmHandlingItem_2eproto__INCLUDED */