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
4c69e86d
Commit
4c69e86d
authored
Jul 31, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Prepare functions for IVBSAX... interfaces implementation.
parent
6818cc6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
saxreader.c
dlls/msxml3/saxreader.c
+20
-8
No files found.
dlls/msxml3/saxreader.c
View file @
4c69e86d
...
...
@@ -48,7 +48,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
typedef
struct
_saxreader
{
const
struct
IVBSAXXMLReaderVtbl
*
lpVtbl
;
const
struct
IVBSAXXMLReaderVtbl
*
lpV
BSAXXMLReaderV
tbl
;
const
struct
ISAXXMLReaderVtbl
*
lpSAXXMLReaderVtbl
;
LONG
ref
;
struct
ISAXContentHandler
*
contentHandler
;
...
...
@@ -58,6 +58,7 @@ typedef struct _saxreader
typedef
struct
_saxlocator
{
const
struct
IVBSAXLocatorVtbl
*
lpVBSAXLocatorVtbl
;
const
struct
ISAXLocatorVtbl
*
lpSAXLocatorVtbl
;
LONG
ref
;
saxreader
*
saxreader
;
...
...
@@ -72,6 +73,7 @@ typedef struct _saxlocator
typedef
struct
_saxattributes
{
const
struct
IVBSAXAttributesVtbl
*
lpVBSAXAttributesVtbl
;
const
struct
ISAXAttributesVtbl
*
lpSAXAttributesVtbl
;
LONG
ref
;
int
nb_attributes
;
...
...
@@ -84,7 +86,7 @@ typedef struct _saxattributes
static
inline
saxreader
*
impl_from_IVBSAXXMLReader
(
IVBSAXXMLReader
*
iface
)
{
return
(
saxreader
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
saxreader
,
lpVtbl
));
return
(
saxreader
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
saxreader
,
lpV
BSAXXMLReaderV
tbl
));
}
static
inline
saxreader
*
impl_from_ISAXXMLReader
(
ISAXXMLReader
*
iface
)
...
...
@@ -92,11 +94,21 @@ static inline saxreader *impl_from_ISAXXMLReader( ISAXXMLReader *iface )
return
(
saxreader
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
saxreader
,
lpSAXXMLReaderVtbl
));
}
static
inline
saxlocator
*
impl_from_IVBSAXLocator
(
IVBSAXLocator
*
iface
)
{
return
(
saxlocator
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
saxlocator
,
lpVBSAXLocatorVtbl
));
}
static
inline
saxlocator
*
impl_from_ISAXLocator
(
ISAXLocator
*
iface
)
{
return
(
saxlocator
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
saxlocator
,
lpSAXLocatorVtbl
));
}
static
inline
saxattributes
*
impl_from_IVBSAXAttributes
(
IVBSAXAttributes
*
iface
)
{
return
(
saxattributes
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
saxattributes
,
lpVBSAXAttributesVtbl
));
}
static
inline
saxattributes
*
impl_from_ISAXAttributes
(
ISAXAttributes
*
iface
)
{
return
(
saxattributes
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
saxattributes
,
lpSAXAttributesVtbl
));
...
...
@@ -1065,7 +1077,7 @@ static HRESULT WINAPI saxxmlreader_Invoke(
hr
=
get_typeinfo
(
IVBSAXXMLReader_tid
,
&
typeinfo
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
(
This
->
lpVtbl
),
dispIdMember
,
wFlags
,
pDispParams
,
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
(
This
->
lpV
BSAXXMLReaderV
tbl
),
dispIdMember
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
ITypeInfo_Release
(
typeinfo
);
}
...
...
@@ -1293,19 +1305,19 @@ static const struct IVBSAXXMLReaderVtbl saxreader_vtbl =
static
HRESULT
WINAPI
isaxxmlreader_QueryInterface
(
ISAXXMLReader
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
saxreader
*
This
=
impl_from_ISAXXMLReader
(
iface
);
return
saxxmlreader_QueryInterface
((
IVBSAXXMLReader
*
)
&
This
->
lpVtbl
,
riid
,
ppvObject
);
return
saxxmlreader_QueryInterface
((
IVBSAXXMLReader
*
)
&
This
->
lpV
BSAXXMLReaderV
tbl
,
riid
,
ppvObject
);
}
static
ULONG
WINAPI
isaxxmlreader_AddRef
(
ISAXXMLReader
*
iface
)
{
saxreader
*
This
=
impl_from_ISAXXMLReader
(
iface
);
return
saxxmlreader_AddRef
((
IVBSAXXMLReader
*
)
&
This
->
lpVtbl
);
return
saxxmlreader_AddRef
((
IVBSAXXMLReader
*
)
&
This
->
lpV
BSAXXMLReaderV
tbl
);
}
static
ULONG
WINAPI
isaxxmlreader_Release
(
ISAXXMLReader
*
iface
)
{
saxreader
*
This
=
impl_from_ISAXXMLReader
(
iface
);
return
saxxmlreader_Release
((
IVBSAXXMLReader
*
)
&
This
->
lpVtbl
);
return
saxxmlreader_Release
((
IVBSAXXMLReader
*
)
&
This
->
lpV
BSAXXMLReaderV
tbl
);
}
/*** ISAXXMLReader methods ***/
...
...
@@ -1686,7 +1698,7 @@ HRESULT SAXXMLReader_create(IUnknown *pUnkOuter, LPVOID *ppObj)
if
(
!
reader
)
return
E_OUTOFMEMORY
;
reader
->
lpVtbl
=
&
saxreader_vtbl
;
reader
->
lpV
BSAXXMLReaderV
tbl
=
&
saxreader_vtbl
;
reader
->
lpSAXXMLReaderVtbl
=
&
isaxreader_vtbl
;
reader
->
ref
=
1
;
reader
->
contentHandler
=
NULL
;
...
...
@@ -1703,7 +1715,7 @@ HRESULT SAXXMLReader_create(IUnknown *pUnkOuter, LPVOID *ppObj)
reader
->
sax
.
error
=
libxmlFatalError
;
reader
->
sax
.
fatalError
=
libxmlFatalError
;
*
ppObj
=
&
reader
->
lpVtbl
;
*
ppObj
=
&
reader
->
lpV
BSAXXMLReaderV
tbl
;
TRACE
(
"returning iface %p
\n
"
,
*
ppObj
);
...
...
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