mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
msxml3: Add a function to initialize xmlDoc->_private data.
This commit is contained in:
parent
302d63a225
commit
8db0dd5335
@ -393,6 +393,12 @@ static xmlDocPtr doparse(domdoc* This, char *ptr, int len)
|
||||
return doc;
|
||||
}
|
||||
|
||||
void xmldoc_init(xmlDocPtr doc, const GUID *clsid)
|
||||
{
|
||||
doc->_private = create_priv();
|
||||
priv_from_xmlDocPtr(doc)->properties = create_properties(clsid);
|
||||
}
|
||||
|
||||
LONG xmldoc_add_ref(xmlDocPtr doc)
|
||||
{
|
||||
LONG ref = InterlockedIncrement(&priv_from_xmlDocPtr(doc)->refs);
|
||||
|
@ -130,6 +130,7 @@ xmlNodePtr xmlNodePtr_from_domnode( IXMLDOMNode *iface, xmlElementType type );
|
||||
/* helpers */
|
||||
extern xmlChar *xmlChar_from_wchar( LPCWSTR str );
|
||||
|
||||
extern void xmldoc_init( xmlDocPtr doc, const GUID *clsid );
|
||||
extern LONG xmldoc_add_ref( xmlDocPtr doc );
|
||||
extern LONG xmldoc_release( xmlDocPtr doc );
|
||||
extern HRESULT xmldoc_add_orphan( xmlDocPtr doc, xmlNodePtr node );
|
||||
|
Loading…
Reference in New Issue
Block a user