Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
23e9a042
Commit
23e9a042
authored
Aug 19, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement the IXMLDOMNodeList interface for
IXMLDOMNode::get_childNodes.
parent
9d99a048
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
229 additions
and
4 deletions
+229
-4
Makefile.in
dlls/msxml3/Makefile.in
+1
-0
node.c
dlls/msxml3/node.c
+2
-4
nodelist.c
dlls/msxml3/nodelist.c
+226
-0
No files found.
dlls/msxml3/Makefile.in
View file @
23e9a042
...
@@ -14,6 +14,7 @@ C_SRCS = \
...
@@ -14,6 +14,7 @@ C_SRCS = \
factory.c
\
factory.c
\
main.c
\
main.c
\
node.c
\
node.c
\
nodelist.c
\
nodemap.c
nodemap.c
SUBDIRS
=
tests
SUBDIRS
=
tests
...
...
dlls/msxml3/node.c
View file @
23e9a042
...
@@ -292,12 +292,10 @@ static HRESULT WINAPI xmlnode_get_childNodes(
...
@@ -292,12 +292,10 @@ static HRESULT WINAPI xmlnode_get_childNodes(
if
(
!
childList
)
if
(
!
childList
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
#if 0
*
childList
=
create_nodelist
(
This
->
node
->
children
);
*
childList
=
create_nodelist
(
This
->
node
->
children
);
if
(
!*
childList
)
return
S_FALSE
;
return
S_OK
;
return
S_OK
;
#else
return
E_NOTIMPL
;
#endif
}
}
static
HRESULT
WINAPI
xmlnode_get_firstChild
(
static
HRESULT
WINAPI
xmlnode_get_firstChild
(
...
...
dlls/msxml3/nodelist.c
0 → 100644
View file @
23e9a042
/*
* Node list implementation
*
* Copyright 2005 Mike McCormack
*
* iface library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* iface library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define COBJMACROS
#include "config.h"
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "winnls.h"
#include "ole2.h"
#include "ocidl.h"
#include "msxml.h"
#include "xmldom.h"
#include "msxml.h"
#include "msxml_private.h"
#include "wine/debug.h"
#ifdef HAVE_LIBXML2
WINE_DEFAULT_DEBUG_CHANNEL
(
msxml
);
typedef
struct
_xmlnodelist
{
const
struct
IXMLDOMNodeListVtbl
*
lpVtbl
;
LONG
ref
;
xmlNodePtr
node
;
xmlNodePtr
current
;
}
xmlnodelist
;
static
inline
xmlnodelist
*
impl_from_IXMLDOMNodeList
(
IXMLDOMNodeList
*
iface
)
{
return
(
xmlnodelist
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
xmlnodelist
,
lpVtbl
));
}
static
HRESULT
WINAPI
xmlnodelist_QueryInterface
(
IXMLDOMNodeList
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
TRACE
(
"%p %p %p
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppvObject
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDispatch
)
||
IsEqualGUID
(
riid
,
&
IID_IXMLDOMNodeList
)
)
{
*
ppvObject
=
iface
;
}
else
return
E_NOINTERFACE
;
IXMLDOMNodeList_AddRef
(
iface
);
return
S_OK
;
}
static
ULONG
WINAPI
xmlnodelist_AddRef
(
IXMLDOMNodeList
*
iface
)
{
xmlnodelist
*
This
=
impl_from_IXMLDOMNodeList
(
iface
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
xmlnodelist_Release
(
IXMLDOMNodeList
*
iface
)
{
xmlnodelist
*
This
=
impl_from_IXMLDOMNodeList
(
iface
);
ULONG
ref
;
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
}
static
HRESULT
WINAPI
xmlnodelist_GetTypeInfoCount
(
IXMLDOMNodeList
*
iface
,
UINT
*
pctinfo
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
xmlnodelist_GetTypeInfo
(
IXMLDOMNodeList
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
xmlnodelist_GetIDsOfNames
(
IXMLDOMNodeList
*
iface
,
REFIID
riid
,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
xmlnodelist_Invoke
(
IXMLDOMNodeList
*
iface
,
DISPID
dispIdMember
,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
xmlnodelist_get_item
(
IXMLDOMNodeList
*
iface
,
long
index
,
IXMLDOMNode
**
listItem
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
xmlnodelist_get_length
(
IXMLDOMNodeList
*
iface
,
long
*
listLength
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
xmlnodelist_nextNode
(
IXMLDOMNodeList
*
iface
,
IXMLDOMNode
**
nextItem
)
{
xmlnodelist
*
This
=
impl_from_IXMLDOMNodeList
(
iface
);
TRACE
(
"%p %p
\n
"
,
This
,
nextItem
);
if
(
!
This
->
current
)
return
S_FALSE
;
*
nextItem
=
create_node
(
This
->
current
);
This
->
current
=
This
->
current
->
next
;
return
S_OK
;
}
static
HRESULT
WINAPI
xmlnodelist_reset
(
IXMLDOMNodeList
*
iface
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
xmlnodelist__newEnum
(
IXMLDOMNodeList
*
iface
,
IUnknown
**
ppUnk
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
const
struct
IXMLDOMNodeListVtbl
xmlnodelist_vtbl
=
{
xmlnodelist_QueryInterface
,
xmlnodelist_AddRef
,
xmlnodelist_Release
,
xmlnodelist_GetTypeInfoCount
,
xmlnodelist_GetTypeInfo
,
xmlnodelist_GetIDsOfNames
,
xmlnodelist_Invoke
,
xmlnodelist_get_item
,
xmlnodelist_get_length
,
xmlnodelist_nextNode
,
xmlnodelist_reset
,
xmlnodelist__newEnum
,
};
IXMLDOMNodeList
*
create_nodelist
(
xmlNodePtr
node
)
{
xmlnodelist
*
nodelist
;
nodelist
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
*
nodelist
);
if
(
!
nodelist
)
return
NULL
;
nodelist
->
lpVtbl
=
&
xmlnodelist_vtbl
;
nodelist
->
ref
=
1
;
nodelist
->
node
=
node
;
nodelist
->
current
=
node
;
return
(
IXMLDOMNodeList
*
)
&
nodelist
->
lpVtbl
;
}
#endif
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