PageRenderTime 39ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 1ms

/CppWithProtoBufC/Source/ProtoBufRemote/RpcMessage.pb-c.h

https://code.google.com/p/protobuf-remote/
C Header | 145 lines | 109 code | 26 blank | 10 comment | 0 complexity | d755d35ddfbcc65ebcfbfd647f71434b MD5 | raw file
  1. /* Generated by the protocol buffer compiler. DO NOT EDIT! */
  2. #ifndef PROTOBUF_C_RpcMessage_2eproto__INCLUDED
  3. #define PROTOBUF_C_RpcMessage_2eproto__INCLUDED
  4. #include <framework/protobuf/protobuf-c.h>
  5. PROTOBUF_C_BEGIN_DECLS
  6. typedef struct _ProtoBufRemote__RpcMessage ProtoBufRemote__RpcMessage;
  7. typedef struct _ProtoBufRemote__RpcMessage__Call ProtoBufRemote__RpcMessage__Call;
  8. typedef struct _ProtoBufRemote__RpcMessage__Result ProtoBufRemote__RpcMessage__Result;
  9. typedef struct _ProtoBufRemote__RpcMessage__Parameter ProtoBufRemote__RpcMessage__Parameter;
  10. /* --- enums --- */
  11. /* --- messages --- */
  12. struct _ProtoBufRemote__RpcMessage__Call
  13. {
  14. ProtobufCMessage base;
  15. char *service;
  16. char *method;
  17. size_t n_parameters;
  18. ProtoBufRemote__RpcMessage__Parameter **parameters;
  19. protobuf_c_boolean expects_result;
  20. };
  21. #define PROTO_BUF_REMOTE__RPC_MESSAGE__CALL__INIT \
  22. { PROTOBUF_C_MESSAGE_INIT (&proto_buf_remote__rpc_message__call__descriptor) \
  23. , NULL, NULL, 0,NULL, 0 }
  24. struct _ProtoBufRemote__RpcMessage__Result
  25. {
  26. ProtobufCMessage base;
  27. protobuf_c_boolean has_is_failed;
  28. protobuf_c_boolean is_failed;
  29. char *error_message;
  30. ProtoBufRemote__RpcMessage__Parameter *call_result;
  31. };
  32. #define PROTO_BUF_REMOTE__RPC_MESSAGE__RESULT__INIT \
  33. { PROTOBUF_C_MESSAGE_INIT (&proto_buf_remote__rpc_message__result__descriptor) \
  34. , 0,0, NULL, NULL }
  35. struct _ProtoBufRemote__RpcMessage__Parameter
  36. {
  37. ProtobufCMessage base;
  38. protobuf_c_boolean has_proto_param;
  39. ProtobufCBinaryData proto_param;
  40. char *string_param;
  41. protobuf_c_boolean has_int_param;
  42. int32_t int_param;
  43. protobuf_c_boolean has_uint_param;
  44. uint32_t uint_param;
  45. protobuf_c_boolean has_int64_param;
  46. int64_t int64_param;
  47. protobuf_c_boolean has_uint64_param;
  48. uint64_t uint64_param;
  49. protobuf_c_boolean has_bool_param;
  50. protobuf_c_boolean bool_param;
  51. protobuf_c_boolean has_float_param;
  52. float float_param;
  53. protobuf_c_boolean has_double_param;
  54. double double_param;
  55. protobuf_c_boolean has_is_null;
  56. protobuf_c_boolean is_null;
  57. };
  58. #define PROTO_BUF_REMOTE__RPC_MESSAGE__PARAMETER__INIT \
  59. { PROTOBUF_C_MESSAGE_INIT (&proto_buf_remote__rpc_message__parameter__descriptor) \
  60. , 0,{0,NULL}, NULL, 0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,0 }
  61. struct _ProtoBufRemote__RpcMessage
  62. {
  63. ProtobufCMessage base;
  64. int32_t id;
  65. ProtoBufRemote__RpcMessage__Call *call_message;
  66. ProtoBufRemote__RpcMessage__Result *result_message;
  67. };
  68. #define PROTO_BUF_REMOTE__RPC_MESSAGE__INIT \
  69. { PROTOBUF_C_MESSAGE_INIT (&proto_buf_remote__rpc_message__descriptor) \
  70. , 0, NULL, NULL }
  71. /* ProtoBufRemote__RpcMessage__Call methods */
  72. void proto_buf_remote__rpc_message__call__init
  73. (ProtoBufRemote__RpcMessage__Call *message);
  74. /* ProtoBufRemote__RpcMessage__Result methods */
  75. void proto_buf_remote__rpc_message__result__init
  76. (ProtoBufRemote__RpcMessage__Result *message);
  77. /* ProtoBufRemote__RpcMessage__Parameter methods */
  78. void proto_buf_remote__rpc_message__parameter__init
  79. (ProtoBufRemote__RpcMessage__Parameter *message);
  80. /* ProtoBufRemote__RpcMessage methods */
  81. void proto_buf_remote__rpc_message__init
  82. (ProtoBufRemote__RpcMessage *message);
  83. size_t proto_buf_remote__rpc_message__get_packed_size
  84. (const ProtoBufRemote__RpcMessage *message);
  85. size_t proto_buf_remote__rpc_message__pack
  86. (const ProtoBufRemote__RpcMessage *message,
  87. uint8_t *out);
  88. size_t proto_buf_remote__rpc_message__pack_to_buffer
  89. (const ProtoBufRemote__RpcMessage *message,
  90. ProtobufCBuffer *buffer);
  91. ProtoBufRemote__RpcMessage *
  92. proto_buf_remote__rpc_message__unpack
  93. (ProtobufCAllocator *allocator,
  94. size_t len,
  95. const uint8_t *data);
  96. void proto_buf_remote__rpc_message__free_unpacked
  97. (ProtoBufRemote__RpcMessage *message,
  98. ProtobufCAllocator *allocator);
  99. /* --- per-message closures --- */
  100. typedef void (*ProtoBufRemote__RpcMessage__Call_Closure)
  101. (const ProtoBufRemote__RpcMessage__Call *message,
  102. void *closure_data);
  103. typedef void (*ProtoBufRemote__RpcMessage__Result_Closure)
  104. (const ProtoBufRemote__RpcMessage__Result *message,
  105. void *closure_data);
  106. typedef void (*ProtoBufRemote__RpcMessage__Parameter_Closure)
  107. (const ProtoBufRemote__RpcMessage__Parameter *message,
  108. void *closure_data);
  109. typedef void (*ProtoBufRemote__RpcMessage_Closure)
  110. (const ProtoBufRemote__RpcMessage *message,
  111. void *closure_data);
  112. /* --- services --- */
  113. /* --- descriptors --- */
  114. extern const ProtobufCMessageDescriptor proto_buf_remote__rpc_message__descriptor;
  115. extern const ProtobufCMessageDescriptor proto_buf_remote__rpc_message__call__descriptor;
  116. extern const ProtobufCMessageDescriptor proto_buf_remote__rpc_message__result__descriptor;
  117. extern const ProtobufCMessageDescriptor proto_buf_remote__rpc_message__parameter__descriptor;
  118. PROTOBUF_C_END_DECLS
  119. #endif /* PROTOBUF_RpcMessage_2eproto__INCLUDED */