Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Jean-Baptiste Kempf
vlc
Commits
5f00aff3
Commit
5f00aff3
authored
Apr 24, 2018
by
Romain Vimont
Committed by
Jean-Baptiste Kempf
Apr 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: replace xml_reader_sys_t* by void*
See #17078 Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
ae636d73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
include/vlc_xml.h
include/vlc_xml.h
+1
-1
modules/misc/xml/libxml.c
modules/misc/xml/libxml.c
+7
-4
No files found.
include/vlc_xml.h
View file @
5f00aff3
...
...
@@ -66,7 +66,7 @@ struct xml_reader_t
{
struct
vlc_common_members
obj
;
xml_reader_sys_t
*
p_sys
;
void
*
p_sys
;
stream_t
*
p_stream
;
module_t
*
p_module
;
...
...
modules/misc/xml/libxml.c
View file @
5f00aff3
...
...
@@ -111,9 +111,10 @@ struct xml_reader_sys_t
static
int
ReaderUseDTD
(
xml_reader_t
*
p_reader
)
{
/* Activate DTD validation */
xmlTextReaderSetParserProp
(
p_reader
->
p_sys
->
xml
,
xml_reader_sys_t
*
p_sys
=
p_reader
->
p_sys
;
xmlTextReaderSetParserProp
(
p_sys
->
xml
,
XML_PARSER_DEFAULTATTRS
,
true
);
xmlTextReaderSetParserProp
(
p_
reader
->
p_
sys
->
xml
,
xmlTextReaderSetParserProp
(
p_sys
->
xml
,
XML_PARSER_VALIDATE
,
true
);
return
VLC_SUCCESS
;
...
...
@@ -183,7 +184,8 @@ static char *ReaderValue( xml_reader_t *p_reader )
static
const
char
*
ReaderNextAttr
(
xml_reader_t
*
p_reader
,
const
char
**
pval
)
{
xmlTextReaderPtr
xml
=
p_reader
->
p_sys
->
xml
;
xml_reader_sys_t
*
p_sys
=
p_reader
->
p_sys
;
xmlTextReaderPtr
xml
=
p_sys
->
xml
;
const
xmlChar
*
name
,
*
value
;
if
(
xmlTextReaderMoveToNextAttribute
(
xml
)
!=
1
...
...
@@ -203,7 +205,8 @@ static int StreamRead( void *p_context, char *p_buffer, int i_buffer )
static
int
ReaderIsEmptyElement
(
xml_reader_t
*
p_reader
)
{
return
xmlTextReaderIsEmptyElement
(
p_reader
->
p_sys
->
xml
);
xml_reader_sys_t
*
p_sys
=
p_reader
->
p_sys
;
return
xmlTextReaderIsEmptyElement
(
p_sys
->
xml
);
}
static
int
ReaderOpen
(
vlc_object_t
*
p_this
)
...
...
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