Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
5330c52a
Commit
5330c52a
authored
Jul 27, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add xml_ReaderReset()
parent
d4e41e64
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
include/vlc_xml.h
include/vlc_xml.h
+1
-0
src/libvlccore.sym
src/libvlccore.sym
+1
-0
src/misc/xml.c
src/misc/xml.c
+23
-0
No files found.
include/vlc_xml.h
View file @
5330c52a
...
...
@@ -73,6 +73,7 @@ struct xml_reader_t
VLC_EXPORT
(
xml_reader_t
*
,
xml_ReaderCreate
,
(
vlc_object_t
*
,
stream_t
*
)
LIBVLC_USED
);
#define xml_ReaderCreate( a, s ) xml_ReaderCreate(VLC_OBJECT(a), s)
VLC_EXPORT
(
void
,
xml_ReaderDelete
,
(
xml_reader_t
*
)
);
VLC_EXPORT
(
xml_reader_t
*
,
xml_ReaderReset
,
(
xml_reader_t
*
,
stream_t
*
)
LIBVLC_USED
);
#define xml_ReaderRead( a ) a->pf_read( a )
#define xml_ReaderNodeType( a ) a->pf_node_type( a )
...
...
src/libvlccore.sym
View file @
5330c52a
...
...
@@ -673,5 +673,6 @@ text_style_New
xml_Delete
xml_ReaderCreate
xml_ReaderDelete
xml_ReaderReset
KeyToString
StringToKey
src/misc/xml.c
View file @
5330c52a
...
...
@@ -101,3 +101,26 @@ void xml_ReaderDelete(xml_reader_t *reader)
module_unneed
(
reader
,
reader
->
p_module
);
vlc_object_release
(
reader
);
}
/**
* Resets an existing XML reader.
* If you need to parse several XML files, this function is much faster than
* xml_ReaderCreate() and xml_ReaderDelete() combined.
* @param reader XML reader to reinitialize
* @param stream new stream to read XML data from
* @return reader on success, NULL on error (in that case, the reader is
* destroyed).
*/
xml_reader_t
*
xml_ReaderReset
(
xml_reader_t
*
reader
,
stream_t
*
stream
)
{
module_stop
(
reader
,
reader
->
p_module
);
reader
->
p_stream
=
stream
;
if
(
module_start
(
reader
,
reader
->
p_module
))
{
vlc_object_release
(
reader
);
return
NULL
;
}
return
reader
;
}
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