Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
21fddfe2
Commit
21fddfe2
authored
Oct 23, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Use proper naming and types for IObject* interfaces.
parent
b9956f75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
42 deletions
+38
-42
domdoc.c
dlls/msxml3/domdoc.c
+38
-42
No files found.
dlls/msxml3/domdoc.c
View file @
21fddfe2
...
...
@@ -2986,30 +2986,27 @@ void ConnectionPoint_Init(ConnectionPoint *cp, struct domdoc *doc, REFIID riid)
cp
->
container
=
(
IConnectionPointContainer
*
)
&
doc
->
lpVtblConnectionPointContainer
;
}
/*
xml
doc implementation of IObjectWithSite */
/*
dom
doc implementation of IObjectWithSite */
static
HRESULT
WINAPI
xml
doc_ObjectWithSite_QueryInterface
(
IObjectWithSite
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
dom
doc_ObjectWithSite_QueryInterface
(
IObjectWithSite
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
domdoc
*
This
=
impl_from_IObjectWithSite
(
iface
);
return
IXMLD
ocument_QueryInterface
(
(
IXMLDocument
*
)
This
,
riid
,
ppvObject
);
return
IXMLD
OMDocument3_QueryInterface
(
(
IXMLDOMDocument3
*
)
This
,
riid
,
ppvObject
);
}
static
ULONG
WINAPI
xmldoc_ObjectWithSite_AddRef
(
IObjectWithSite
*
iface
)
static
ULONG
WINAPI
domdoc_ObjectWithSite_AddRef
(
IObjectWithSite
*
iface
)
{
domdoc
*
This
=
impl_from_IObjectWithSite
(
iface
);
return
IXMLD
ocument_AddRef
((
IXMLDocument
*
)
This
);
return
IXMLD
OMDocument3_AddRef
((
IXMLDOMDocument3
*
)
This
);
}
static
ULONG
WINAPI
xmldoc_ObjectWithSite_Release
(
IObjectWithSite
*
iface
)
static
ULONG
WINAPI
domdoc_ObjectWithSite_Release
(
IObjectWithSite
*
iface
)
{
domdoc
*
This
=
impl_from_IObjectWithSite
(
iface
);
return
IXMLD
ocument_Release
((
IXMLDocument
*
)
This
);
return
IXMLD
OMDocument3_Release
((
IXMLDOMDocument3
*
)
This
);
}
static
HRESULT
WINAPI
xmldoc_GetSite
(
IObjectWithSite
*
iface
,
REFIID
iid
,
void
**
ppvSite
)
static
HRESULT
WINAPI
domdoc_ObjectWithSite_GetSite
(
IObjectWithSite
*
iface
,
REFIID
iid
,
void
**
ppvSite
)
{
domdoc
*
This
=
impl_from_IObjectWithSite
(
iface
);
...
...
@@ -3021,8 +3018,7 @@ xmldoc_GetSite( IObjectWithSite *iface, REFIID iid, void ** ppvSite )
return
IUnknown_QueryInterface
(
This
->
site
,
iid
,
ppvSite
);
}
static
HRESULT
WINAPI
xmldoc_SetSite
(
IObjectWithSite
*
iface
,
IUnknown
*
punk
)
static
HRESULT
WINAPI
domdoc_ObjectWithSite_SetSite
(
IObjectWithSite
*
iface
,
IUnknown
*
punk
)
{
domdoc
*
This
=
impl_from_IObjectWithSite
(
iface
);
...
...
@@ -3051,71 +3047,71 @@ xmldoc_SetSite( IObjectWithSite *iface, IUnknown *punk )
static
const
IObjectWithSiteVtbl
domdocObjectSite
=
{
xml
doc_ObjectWithSite_QueryInterface
,
xml
doc_ObjectWithSite_AddRef
,
xml
doc_ObjectWithSite_Release
,
xmldoc
_SetSite
,
xmldoc_GetSite
,
dom
doc_ObjectWithSite_QueryInterface
,
dom
doc_ObjectWithSite_AddRef
,
dom
doc_ObjectWithSite_Release
,
domdoc_ObjectWithSite
_SetSite
,
domdoc_ObjectWithSite_GetSite
};
static
HRESULT
WINAPI
xml
doc_Safety_QueryInterface
(
IObjectSafety
*
iface
,
REFIID
riid
,
void
**
ppv
)
static
HRESULT
WINAPI
dom
doc_Safety_QueryInterface
(
IObjectSafety
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
domdoc
*
This
=
impl_from_IObjectSafety
(
iface
);
return
IXMLD
ocument_QueryInterface
(
(
IXMLDocument
*
)
This
,
riid
,
ppv
);
return
IXMLD
OMDocument3_QueryInterface
(
(
IXMLDOMDocument3
*
)
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
xml
doc_Safety_AddRef
(
IObjectSafety
*
iface
)
static
ULONG
WINAPI
dom
doc_Safety_AddRef
(
IObjectSafety
*
iface
)
{
domdoc
*
This
=
impl_from_IObjectSafety
(
iface
);
return
IXMLD
ocument_AddRef
((
IXMLDocument
*
)
This
);
return
IXMLD
OMDocument3_AddRef
((
IXMLDOMDocument3
*
)
This
);
}
static
ULONG
WINAPI
xml
doc_Safety_Release
(
IObjectSafety
*
iface
)
static
ULONG
WINAPI
dom
doc_Safety_Release
(
IObjectSafety
*
iface
)
{
domdoc
*
This
=
impl_from_IObjectSafety
(
iface
);
return
IXMLD
ocument_Release
((
IXMLDocument
*
)
This
);
return
IXMLD
OMDocument3_Release
((
IXMLDOMDocument3
*
)
This
);
}
#define SAFETY_SUPPORTED_OPTIONS (INTERFACESAFE_FOR_UNTRUSTED_CALLER|INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_SECURITY_MANAGER)
static
HRESULT
WINAPI
xml
doc_Safety_GetInterfaceSafetyOptions
(
IObjectSafety
*
iface
,
REFIID
riid
,
DWORD
*
pdwSupportedOptions
,
DWORD
*
pdwEnabledOptions
)
static
HRESULT
WINAPI
dom
doc_Safety_GetInterfaceSafetyOptions
(
IObjectSafety
*
iface
,
REFIID
riid
,
DWORD
*
supported
,
DWORD
*
enabled
)
{
domdoc
*
This
=
impl_from_IObjectSafety
(
iface
);
TRACE
(
"(%p)->(%s %p %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
pdwSupportedOptions
,
pdwEnabledOptions
);
TRACE
(
"(%p)->(%s %p %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
supported
,
enabled
);
if
(
!
pdwSupportedOptions
||
!
pdwEnabledOptions
)
return
E_POINTER
;
if
(
!
supported
||
!
enabled
)
return
E_POINTER
;
*
pdwSupportedOptions
=
SAFETY_SUPPORTED_OPTIONS
;
*
pdwEnabledOptions
=
This
->
safeopt
;
*
supported
=
SAFETY_SUPPORTED_OPTIONS
;
*
enabled
=
This
->
safeopt
;
return
S_OK
;
}
static
HRESULT
WINAPI
xml
doc_Safety_SetInterfaceSafetyOptions
(
IObjectSafety
*
iface
,
REFIID
riid
,
DWORD
dwOptionSetMask
,
DWORD
dwEnabledOptions
)
static
HRESULT
WINAPI
dom
doc_Safety_SetInterfaceSafetyOptions
(
IObjectSafety
*
iface
,
REFIID
riid
,
DWORD
mask
,
DWORD
enabled
)
{
domdoc
*
This
=
impl_from_IObjectSafety
(
iface
);
TRACE
(
"(%p)->(%s %x %x)
\n
"
,
This
,
debugstr_guid
(
riid
),
dwOptionSetMask
,
dwEnabledOptions
);
TRACE
(
"(%p)->(%s %x %x)
\n
"
,
This
,
debugstr_guid
(
riid
),
mask
,
enabled
);
if
((
dwOptionSetM
ask
&
~
SAFETY_SUPPORTED_OPTIONS
)
!=
0
)
if
((
m
ask
&
~
SAFETY_SUPPORTED_OPTIONS
)
!=
0
)
return
E_FAIL
;
This
->
safeopt
=
dwEnabledOptions
&
dwOptionSetM
ask
&
SAFETY_SUPPORTED_OPTIONS
;
This
->
safeopt
=
enabled
&
m
ask
&
SAFETY_SUPPORTED_OPTIONS
;
return
S_OK
;
}
#undef SAFETY_SUPPORTED_OPTIONS
static
const
IObjectSafetyVtbl
domdocObjectSafetyVtbl
=
{
xml
doc_Safety_QueryInterface
,
xml
doc_Safety_AddRef
,
xml
doc_Safety_Release
,
xml
doc_Safety_GetInterfaceSafetyOptions
,
xml
doc_Safety_SetInterfaceSafetyOptions
dom
doc_Safety_QueryInterface
,
dom
doc_Safety_AddRef
,
dom
doc_Safety_Release
,
dom
doc_Safety_GetInterfaceSafetyOptions
,
dom
doc_Safety_SetInterfaceSafetyOptions
};
static
const
tid_t
domdoc_iface_tids
[]
=
{
IXMLDOMNode_tid
,
IXMLDOMDocument_tid
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment