From cf46733632c7279a9fd0fe6ce26f9185a4ae82a9 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Sat, 5 Aug 2017 16:22:51 +0000 Subject: subversion-1.9.7 --- subversion/include/private/svn_temp_serializer.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'subversion/include/private/svn_temp_serializer.h') diff --git a/subversion/include/private/svn_temp_serializer.h b/subversion/include/private/svn_temp_serializer.h index 7a007c3..dd2e047 100644 --- a/subversion/include/private/svn_temp_serializer.h +++ b/subversion/include/private/svn_temp_serializer.h @@ -142,6 +142,22 @@ svn_temp_serializer__push(svn_temp_serializer__context_t *context, void svn_temp_serializer__pop(svn_temp_serializer__context_t *context); +/** + * Serialize a referenced sub-structure within the serialization + * @a context. @a source_struct must be a reference to the + * pointer in the original parent structure so that the correspondence in + * the serialized structure can be established. @a struct_size must match + * the result of @c sizeof() of the actual structure. + * + * This function is equivalent but more efficient than calling + * #svn_temp_serializer__push() immediately followed by + * #svn_temp_serializer__pop(). + */ +void +svn_temp_serializer__add_leaf(svn_temp_serializer__context_t *context, + const void * const * source_struct, + apr_size_t struct_size); + /** * Serialize a string referenced from the current structure within the * serialization @a context. @a s must be a reference to the @c char* -- cgit v1.2.1