Hugo Beauzée-Luyssen
e026c01889
Remove using namespace std; from C++ code
This prevents us from providing our atomic types definitions, as they
would conflict with the ones in std::
11 years ago
Erwan Tulou
49c72956b0
skins2: replace all stat() with vlc_stat()
11 years ago
Rémi Denis-Courmont
33dfab3c21
vlc_path2uri(): rename from make_URI() and always convert path
When there is an ambiguity, the caller is responsible for determining
whether a string is an URL or a path. In most cases, the string is
known as a file path.
14 years ago
Rémi Denis-Courmont
75d005cf30
Remove inconsistently used check for <sys/stat.h>
14 years ago
Erwan Tulou
41482dcce6
skins2: cleanup and remove a now highly dubious useDTD parameter
15 years ago
Erwan Tulou
fe65910582
skins2: back to working order after latest change in xml design
15 years ago
Rémi Denis-Courmont
0e17b717fe
XML: return attribute value as const
This simplifies error and memory handling.
A few memory leaks were fixed.
15 years ago
Rémi Denis-Courmont
ad10f794dd
XML: return node (element name or text value) as const
This simplifies memory handling in most cases.
15 years ago
Rémi Denis-Courmont
3dbfa99f14
Return XML attribute as const from NextAttr
The attribute name is valid until the next attribute or next node.
This simplifies the code a bit: fewer error paths, and free() calls.
A few potential memory leaks were fixed too.
15 years ago
Jean-Baptiste Kempf
d6a6e466bd
Skins2: fix compilation
15 years ago
Rémi Denis-Courmont
59f0684a6f
XML: merge read and node_type operations, skip unknown nodes
15 years ago
Rémi Duraffort
72af6adc9a
C++: use postfix operator for interators (that's supposedly faster and a good practice).
16 years ago
Rémi Denis-Courmont
99f02e9278
xml_ReaderUseDTD: remove useless parameter
16 years ago
Rémi Denis-Courmont
d74fa0c527
skins2: missing initialization
16 years ago
Rémi Denis-Courmont
68a46961c8
skins2: remove unused static variable
16 years ago
Rémi Denis-Courmont
49b4824b37
skins2: don't load XML catalog if DTD not requested
Also don't fail if the XML validator cannot be loaded.
16 years ago
Rémi Denis-Courmont
9d016759c2
xml_ReaderDelete: remove useless parameter
16 years ago
Rémi Denis-Courmont
1644d683e9
make_URI: add scheme parameter
16 years ago
Erwan Tulou
58f63289c2
skins2: ensure uri-encoded paths are passed to vlc core
16 years ago
Joseph Tulou
09679e2b94
corrects no dtd found when changing skins
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
17 years ago
Rémi Duraffort
38edfcb94c
skins2: remove totologie.
17 years ago
Rémi Duraffort
775254b88b
Fix potential memleak.
18 years ago
Pierre d'Herbemont
449fd28aaf
Replace vlc_bool_t by bool, VLC_TRUE by true and VLC_FALSE by false.
This improves readability a lot and prevent us from reinventing the wheel.
18 years ago
Clément Stenac
fb9fadde00
Skins strings (Refs:#438)
20 years ago
Antoine Cellerier
2cb472dba0
FSF address change.
21 years ago
Olivier Teulière
4ad69b4e4a
* skins2: experimental support for the <Include file="foo.xml"/> tag.
Be warned, no DTD validation is done on the included XML file, and the
loading will fail if it contains several top-level tags.
21 years ago
Rémi Denis-Courmont
fe087a3828
Make Zorglub less unhappy
21 years ago
Rémi Denis-Courmont
85b29bdc28
Copyright fixes
(da big courmischage)
21 years ago
Gildas Bazin
813e982a3e
* modules/gui/skins2/*: a few portability fixes.
21 years ago
Gildas Bazin
af40daabd8
* modules/misc/xml/*, include/vlc_xml.h: new xml_ReaderUseDTD() api to enable/disable DTD validation.
21 years ago
Sigmund Augdal Helberg
70f70fd0a7
all: ported xml parsers to stream_t
21 years ago
Gildas Bazin
798c883b4d
* modules/gui/skins2/*: fixed a whole bunch of memory leaks.
22 years ago
Gildas Bazin
6d51bbdccb
* ALL: New XML module type.
* include/vlc_xml.h, src/misc/xml.c: core wrapper for XML modules.
* modules/misc/xml/xtag.c: trivial XML parser module.
* modules/misc/xml/libxml.c: XML parser module using libxml2.
* modules/gui/skins2/parser/*: removed dependancy on libxml2 and use an XML module.
22 years ago
Cyril Deguet
f812f2cb8d
* all: the DTD lookup for skins2 themes now use XML catalogs:
The XML file must begin with:
<!DOCTYPE Theme PUBLIC "-//VideoLAN//DTD VLC Skins V2.0//EN" "skin.dtd">
(the "skin.dtd" is ignored but should be an URL on the website)
and the DTD is looked up at runtime in the directories of the resource
path (see previous commit), e.g /usr/local/share/vlc/skins2/skin.dtd
-> the DTD doesn't need any more to be shipped with the themes.
22 years ago
Cyril Deguet
ce41dfb552
* parser/xmlparser.cpp: abort parsing when an error is detected
(avoid segfaults in element handlers...)
* all: tried to have the popup window disappear with a click on
a skin window (not working at least with wxgtk)
23 years ago
Cyril Deguet
164278c36c
* all: save the theme configuration at exit (theme path and
position/visibilty of the windows)
* parser/xmlparser.cpp: fixed a segfault when the file cannot be opened
23 years ago
Cyril Deguet
1628f2f2c9
* all: replaced the flex parser by the libxml one
* src/window_manager.cpp: improved the raise window algorithm
* src/tooltip.cpp: fixed a segfault after changing a theme
23 years ago
Cyril Deguet
11a5c30c81
* parser/xmlparser.cpp: added DTD validation
23 years ago
Cyril Deguet
c381c1c130
* configure.ac: check xml2-config for skins2
* modules/gui/skins2/src/var_manager.cpp: delete the variables in the
right order to avoid invalid reads in the destructor
* modules/gui/skins2/parser/xmlparser: skeleton of a new parser based
on the text reader API of libxml2
23 years ago