amessage.pb-c.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* Generated by the protocol buffer compiler. DO NOT EDIT! */
  2. /* Generated from: amessage.proto */
  3. #ifndef PROTOBUF_C_amessage_2eproto__INCLUDED
  4. #define PROTOBUF_C_amessage_2eproto__INCLUDED
  5. #include "protobuf-c.h"
  6. PROTOBUF_C__BEGIN_DECLS
  7. #if PROTOBUF_C_VERSION_NUMBER < 1000000
  8. # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
  9. #elif 1002001 < PROTOBUF_C_MIN_COMPILER_VERSION
  10. # 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.
  11. #endif
  12. typedef struct _AMessage AMessage;
  13. /* --- enums --- */
  14. /* --- messages --- */
  15. struct _AMessage
  16. {
  17. ProtobufCMessage base;
  18. protobuf_c_boolean has_a;
  19. int32_t a;
  20. protobuf_c_boolean has_b;
  21. int32_t b;
  22. };
  23. #define AMESSAGE__INIT \
  24. { PROTOBUF_C_MESSAGE_INIT (&amessage__descriptor) \
  25. , 0,0, 0,0 }
  26. /* AMessage methods */
  27. void amessage__init
  28. (AMessage *message);
  29. size_t amessage__get_packed_size
  30. (const AMessage *message);
  31. size_t amessage__pack
  32. (const AMessage *message,
  33. uint8_t *out);
  34. size_t amessage__pack_to_buffer
  35. (const AMessage *message,
  36. ProtobufCBuffer *buffer);
  37. AMessage *
  38. amessage__unpack
  39. (ProtobufCAllocator *allocator,
  40. size_t len,
  41. const uint8_t *data);
  42. void amessage__free_unpacked
  43. (AMessage *message,
  44. ProtobufCAllocator *allocator);
  45. /* --- per-message closures --- */
  46. typedef void (*AMessage_Closure)
  47. (const AMessage *message,
  48. void *closure_data);
  49. /* --- services --- */
  50. /* --- descriptors --- */
  51. extern const ProtobufCMessageDescriptor amessage__descriptor;
  52. PROTOBUF_C__END_DECLS
  53. #endif /* PROTOBUF_C_amessage_2eproto__INCLUDED */