diff options
author | Bo Yang <teboring@google.com> | 2019-03-04 10:18:18 -0800 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2019-03-04 10:18:18 -0800 |
commit | cb6fa92ee8f924e8c524efdbe502858e97e6975d (patch) | |
tree | fd47f781115c7a55aac7538e652ce96b94a1a7af /php/ext/google/protobuf/protobuf.h | |
parent | 50bd9f0a7c14ed7689fcb9f5885e9ffacf9b80a9 (diff) | |
parent | 582743bf40c5d3639a70f98f183914a2c0cd0680 (diff) | |
download | protobuf-cb6fa92ee8f924e8c524efdbe502858e97e6975d.tar.gz |
Merge branch '3.7.x'
Diffstat (limited to 'php/ext/google/protobuf/protobuf.h')
-rw-r--r-- | php/ext/google/protobuf/protobuf.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/php/ext/google/protobuf/protobuf.h b/php/ext/google/protobuf/protobuf.h index c4ab8860d..908e3bad9 100644 --- a/php/ext/google/protobuf/protobuf.h +++ b/php/ext/google/protobuf/protobuf.h @@ -37,7 +37,7 @@ #include "upb.h" #define PHP_PROTOBUF_EXTNAME "protobuf" -#define PHP_PROTOBUF_VERSION "3.6.1" +#define PHP_PROTOBUF_VERSION "3.7.0" #define MAX_LENGTH_OF_INT64 20 #define SIZEOF_INT64 8 @@ -770,7 +770,8 @@ PHP_METHOD(InternalDescriptorPool, getGeneratedPool); PHP_METHOD(InternalDescriptorPool, internalAddGeneratedFile); void internal_add_generated_file(const char* data, PHP_PROTO_SIZE data_len, - InternalDescriptorPool* pool TSRMLS_DC); + InternalDescriptorPool* pool, + bool use_nested_submsg TSRMLS_DC); void init_generated_pool_once(TSRMLS_D); // wrapper of generated pool @@ -1453,6 +1454,18 @@ const zend_class_entry* field_type_class( const upb_fielddef* field PHP_PROTO_TSRMLS_DC); void stringsink_uninit_opaque(void *sink); +typedef struct { + upb_byteshandler handler; + upb_bytessink sink; + char *ptr; + size_t len, size; +} stringsink; + +void stringsink_init(stringsink *sink); +void stringsink_uninit(stringsink *sink); +size_t stringsink_string(void *_sink, const void *hd, const char *ptr, + size_t len, const upb_bufhandle *handle); + // ----------------------------------------------------------------------------- // Utilities. // ----------------------------------------------------------------------------- |