Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
99f02e92
Commit
99f02e92
authored
Aug 05, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xml_ReaderUseDTD: remove useless parameter
parent
9ecc0919
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
14 deletions
+12
-14
include/vlc_xml.h
include/vlc_xml.h
+3
-3
modules/gui/skins2/parser/xmlparser.cpp
modules/gui/skins2/parser/xmlparser.cpp
+2
-4
modules/misc/xml/libxml.c
modules/misc/xml/libxml.c
+4
-4
modules/misc/xml/xtag.c
modules/misc/xml/xtag.c
+3
-3
No files found.
include/vlc_xml.h
View file @
99f02e92
...
...
@@ -76,7 +76,7 @@ struct xml_reader_t
char
*
(
*
pf_value
)
(
xml_reader_t
*
);
int
(
*
pf_next_attr
)
(
xml_reader_t
*
);
int
(
*
pf_use_dtd
)
(
xml_reader_t
*
,
bool
);
int
(
*
pf_use_dtd
)
(
xml_reader_t
*
);
};
VLC_EXPORT
(
xml_reader_t
*
,
xml_ReaderCreate
,
(
vlc_object_t
*
,
stream_t
*
)
LIBVLC_USED
);
...
...
@@ -109,9 +109,9 @@ static inline int xml_ReaderNextAttr( xml_reader_t *reader )
return
reader
->
pf_next_attr
(
reader
);
}
static
inline
int
xml_ReaderUseDTD
(
xml_reader_t
*
reader
,
bool
use
)
static
inline
int
xml_ReaderUseDTD
(
xml_reader_t
*
reader
)
{
return
reader
->
pf_use_dtd
(
reader
,
use
);
return
reader
->
pf_use_dtd
(
reader
);
}
enum
{
...
...
modules/gui/skins2/parser/xmlparser.cpp
View file @
99f02e92
...
...
@@ -42,10 +42,7 @@ XMLParser::XMLParser( intf_thread_t *pIntf, const string &rFileName,
if
(
m_pXML
)
LoadCatalog
();
else
{
msg_Err
(
getIntf
(),
"DTD not supported"
);
useDTD
=
false
;
}
}
else
m_pXML
=
NULL
;
...
...
@@ -69,7 +66,8 @@ XMLParser::XMLParser( intf_thread_t *pIntf, const string &rFileName,
return
;
}
xml_ReaderUseDTD
(
m_pReader
,
useDTD
);
if
(
m_pXML
)
xml_ReaderUseDTD
(
m_pReader
);
}
...
...
modules/misc/xml/libxml.c
View file @
99f02e92
...
...
@@ -66,7 +66,7 @@ static char *ReaderName( xml_reader_t * );
static
char
*
ReaderValue
(
xml_reader_t
*
);
static
int
ReaderNextAttr
(
xml_reader_t
*
);
static
int
ReaderUseDTD
(
xml_reader_t
*
,
bool
);
static
int
ReaderUseDTD
(
xml_reader_t
*
);
static
void
CatalogLoad
(
xml_t
*
,
const
char
*
);
static
void
CatalogAdd
(
xml_t
*
,
const
char
*
,
const
char
*
,
const
char
*
);
...
...
@@ -187,13 +187,13 @@ static void ReaderClose( vlc_object_t *p_this )
xmlFreeTextReader
(
(
void
*
)
p_reader
->
p_sys
);
}
static
int
ReaderUseDTD
(
xml_reader_t
*
p_reader
,
bool
b_use
)
static
int
ReaderUseDTD
(
xml_reader_t
*
p_reader
)
{
/* Activate DTD validation */
xmlTextReaderSetParserProp
(
(
void
*
)
p_reader
->
p_sys
,
XML_PARSER_DEFAULTATTRS
,
b_us
e
);
XML_PARSER_DEFAULTATTRS
,
tru
e
);
xmlTextReaderSetParserProp
(
(
void
*
)
p_reader
->
p_sys
,
XML_PARSER_VALIDATE
,
b_us
e
);
XML_PARSER_VALIDATE
,
tru
e
);
return
VLC_SUCCESS
;
}
...
...
modules/misc/xml/xtag.c
View file @
99f02e92
...
...
@@ -106,7 +106,7 @@ static char *ReaderName( xml_reader_t * );
static
char
*
ReaderValue
(
xml_reader_t
*
);
static
int
ReaderNextAttr
(
xml_reader_t
*
);
static
int
ReaderUseDTD
(
xml_reader_t
*
,
bool
);
static
int
ReaderUseDTD
(
xml_reader_t
*
);
static
XTag
*
xtag_new_parse
(
const
char
*
,
int
);
static
char
*
xtag_get_name
(
XTag
*
);
...
...
@@ -190,9 +190,9 @@ static void ReaderClose( vlc_object_t *p_this )
free
(
p_reader
->
p_sys
);
}
static
int
ReaderUseDTD
(
xml_reader_t
*
p_reader
,
bool
b_use
)
static
int
ReaderUseDTD
(
xml_reader_t
*
p_reader
)
{
VLC_UNUSED
(
p_reader
);
VLC_UNUSED
(
b_use
);
VLC_UNUSED
(
p_reader
);
return
VLC_EGENERIC
;
}
...
...
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