diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2018-06-03 14:54:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-03 14:54:53 -0700 |
commit | a7252bf42df8f0841cf3a0c85fdbf1a5172adecb (patch) | |
tree | 1faaacdc957f50a0b2f0a8819ca47d93f102cae0 /python/google/protobuf/pyext/message.h | |
parent | 17ab85deab32b09b751aa28ec9ad548236e7128a (diff) | |
parent | 7c6514245b6e256cc97dd31a6da1e2c72de487e6 (diff) | |
download | protobuf-a7252bf42df8f0841cf3a0c85fdbf1a5172adecb.tar.gz protobuf-a7252bf42df8f0841cf3a0c85fdbf1a5172adecb.tar.bz2 protobuf-a7252bf42df8f0841cf3a0c85fdbf1a5172adecb.zip |
Merge pull request #4698 from ThomasColthurst/proto_c_api
Introduce Proto C API; based on cl/198113115 by amauryfa
Diffstat (limited to 'python/google/protobuf/pyext/message.h')
-rw-r--r-- | python/google/protobuf/pyext/message.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/google/protobuf/pyext/message.h b/python/google/protobuf/pyext/message.h index 72bcfa83..d754e62a 100644 --- a/python/google/protobuf/pyext/message.h +++ b/python/google/protobuf/pyext/message.h @@ -341,6 +341,9 @@ bool CheckFieldBelongsToMessage(const FieldDescriptor* field_descriptor, extern PyObject* PickleError_class; +const Message* PyMessage_GetMessagePointer(PyObject* msg); +Message* PyMessage_GetMutableMessagePointer(PyObject* msg); + bool InitProto2MessageModule(PyObject *m); #if LANG_CXX11 |