TESTING -- override pthreads to fix gstreamer v5
[wine/multimedia.git] / dlls / webservices / webservices_private.h
blob5c121a1b186cbc0b36fa250633e19a5e83cd1a68
1 /*
2 * Copyright 2015 Hans Leidekker for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 struct xmlbuf
21 WS_HEAP *heap;
22 void *ptr;
23 SIZE_T size_allocated;
24 SIZE_T size;
27 void *ws_alloc( WS_HEAP *, SIZE_T ) DECLSPEC_HIDDEN;
28 void *ws_realloc( WS_HEAP *, void *, SIZE_T ) DECLSPEC_HIDDEN;
29 void ws_free( WS_HEAP *, void * ) DECLSPEC_HIDDEN;
30 const char *debugstr_xmlstr( const WS_XML_STRING * ) DECLSPEC_HIDDEN;
31 WS_XML_STRING *alloc_xml_string( const char *, ULONG ) DECLSPEC_HIDDEN;
32 WS_XML_UTF8_TEXT *alloc_utf8_text( const char *, ULONG ) DECLSPEC_HIDDEN;
33 HRESULT append_attribute( WS_XML_ELEMENT_NODE *, WS_XML_ATTRIBUTE * ) DECLSPEC_HIDDEN;
34 void free_attribute( WS_XML_ATTRIBUTE * ) DECLSPEC_HIDDEN;
36 struct node
38 WS_XML_ELEMENT_NODE hdr;
39 struct list entry;
40 struct node *parent;
41 struct list children;
44 struct node *alloc_node( WS_XML_NODE_TYPE ) DECLSPEC_HIDDEN;
45 void free_node( struct node * ) DECLSPEC_HIDDEN;
46 void destroy_nodes( struct node * ) DECLSPEC_HIDDEN;
48 static inline void *heap_alloc( SIZE_T size )
50 return HeapAlloc( GetProcessHeap(), 0, size );
53 static inline void *heap_alloc_zero( SIZE_T size )
55 return HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, size );
58 static inline void *heap_realloc( void *mem, SIZE_T size )
60 return HeapReAlloc( GetProcessHeap(), 0, mem, size );
63 static inline BOOL heap_free( void *mem )
65 return HeapFree( GetProcessHeap(), 0, mem );