[xiph-commits] SF.net SVN: libspiff:[515] trunk
hartwork at users.sourceforge.net
hartwork at users.sourceforge.net
Tue Feb 17 13:08:46 PST 2009
Revision: 515
http://libspiff.svn.sourceforge.net/libspiff/?rev=515&view=rev
Author: hartwork
Date: 2009-02-17 21:08:45 +0000 (Tue, 17 Feb 2009)
Log Message:
-----------
Rename libSpiff to libxspf - step 2.2: string replace "SPIFF" to "XSPF"
Modified Paths:
--------------
trunk/Makefile.am
trunk/bindings/c/xspf_c.cpp
trunk/bindings/c/xspf_c.h
trunk/doc/Doxyfile.in
trunk/doc/Mainpage
trunk/examples/check/check.cpp
trunk/examples/read/read.cpp
trunk/examples/strip/strip.cpp
trunk/examples/write/write.cpp
trunk/include/xspf/ProjectOpus/ProjectOpusPlaylistExtension.h
trunk/include/xspf/ProjectOpus/ProjectOpusPlaylistExtensionReader.h
trunk/include/xspf/ProjectOpus/ProjectOpusPlaylistExtensionWriter.h
trunk/include/xspf/Xspf.h
trunk/include/xspf/XspfChunkCallback.h
trunk/include/xspf/XspfData.h
trunk/include/xspf/XspfDateTime.h
trunk/include/xspf/XspfDefines.h
trunk/include/xspf/XspfExtension.h
trunk/include/xspf/XspfExtensionReader.h
trunk/include/xspf/XspfExtensionReaderFactory.h
trunk/include/xspf/XspfExtensionWriter.h
trunk/include/xspf/XspfIndentFormatter.h
trunk/include/xspf/XspfProps.h
trunk/include/xspf/XspfReader.h
trunk/include/xspf/XspfReaderCallback.h
trunk/include/xspf/XspfSeamlessFormatter.h
trunk/include/xspf/XspfStack.h
trunk/include/xspf/XspfToolbox.h
trunk/include/xspf/XspfTrack.h
trunk/include/xspf/XspfVersion.h
trunk/include/xspf/XspfWriter.h
trunk/include/xspf/XspfXmlFormatter.h
trunk/include/xspf/ZirkorosOnline/ZirkorosOnlineTrackExtension.h
trunk/include/xspf/ZirkorosOnline/ZirkorosOnlineTrackExtensionReader.h
trunk/src/ProjectOpus/ProjectOpusPlaylistExtensionReader.cpp
trunk/src/XspfDataWriter.h
trunk/src/XspfIndentFormatter.cpp
trunk/src/XspfPropsWriter.h
trunk/src/XspfReader.cpp
trunk/src/XspfSkipExtensionReader.h
trunk/src/XspfStrictReaderCallback.h
trunk/src/XspfToolbox.cpp
trunk/src/XspfTrackWriter.h
trunk/src/XspfWriter.cpp
trunk/src/XspfXmlFormatter.cpp
trunk/test/ChunkCallbackSuite.cpp
trunk/test/ChunkCallbackSuite.h
trunk/test/DateTimeSuite.h
trunk/test/ExtensionReaderFactorySuite.h
trunk/test/MaliciousXmlSuite.cpp
trunk/test/MaliciousXmlSuite.h
trunk/test/MemoryModelSuite.h
trunk/test/OfficialSuite.cpp
trunk/test/OfficialSuite.h
trunk/test/ProjectOpus/ProjectOpusSuite.cpp
trunk/test/ProjectOpus/ProjectOpusSuite.h
trunk/test/ReadWriteSuite.cpp
trunk/test/ReadWriteSuite.h
trunk/test/WhiteSpaceSuite.h
Modified: trunk/Makefile.am
===================================================================
--- trunk/Makefile.am 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/Makefile.am 2009-02-17 21:08:45 UTC (rev 515)
@@ -150,7 +150,7 @@
test_spiff_test_LDADD = libspiff.la
-test_spiff_test_CPPFLAGS = -DSPIFF_SRCDIR=\"${srcdir}\"
+test_spiff_test_CPPFLAGS = -DXSPF_SRCDIR=\"${srcdir}\"
test_spiff_test_SOURCES = \
test/CppTest/collectoroutput.cpp \
Modified: trunk/bindings/c/xspf_c.cpp
===================================================================
--- trunk/bindings/c/xspf_c.cpp 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/bindings/c/xspf_c.cpp 2009-02-17 21:08:45 UTC (rev 515)
@@ -192,7 +192,7 @@
/* Fill the list with parser results */
SpiffCReaderCallback readcb(ret);
- if (read.parseFile(filename, &readcb, baseuri) == SPIFF_READER_SUCCESS) {
+ if (read.parseFile(filename, &readcb, baseuri) == XSPF_READER_SUCCESS) {
/* Success */
return (ret);
} else {
@@ -317,7 +317,7 @@
writer->setProps(props);
}
- SPIFF_LIST_FOREACH_TRACK(list, strack) {
+ XSPF_LIST_FOREACH_TRACK(list, strack) {
/* Tracks */
SpiffTrack track;
track.lendCreator(strack->creator);
@@ -327,9 +327,9 @@
track.setTrackNum(strack->tracknum);
/* Track locations and identifiers */
- SPIFF_TRACK_FOREACH_LOCATION(strack,smvalue)
+ XSPF_TRACK_FOREACH_LOCATION(strack,smvalue)
track.lendAppendLocation(smvalue->value);
- SPIFF_TRACK_FOREACH_IDENTIFIER(strack, smvalue)
+ XSPF_TRACK_FOREACH_IDENTIFIER(strack, smvalue)
track.lendAppendIdentifier(smvalue->value);
writer->addTrack(track);
Modified: trunk/bindings/c/xspf_c.h
===================================================================
--- trunk/bindings/c/xspf_c.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/bindings/c/xspf_c.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -44,8 +44,8 @@
* @brief Simple libxspf C bindings.
*/
-#ifndef SPIFF_C_H
-#define SPIFF_C_H
+#ifndef XSPF_C_H
+#define XSPF_C_H
/**
* @brief Linked list for values inside tracks or lists with string
@@ -144,17 +144,17 @@
/**
* @brief Easy interface for walking through tracks.
*/
-#define SPIFF_LIST_FOREACH_TRACK(l,t) \
+#define XSPF_LIST_FOREACH_TRACK(l,t) \
for ((t) = (l)->tracks; (t) != NULL; (t) = (t)->next)
/**
* @brief Easy interface for walking through locations.
*/
-#define SPIFF_TRACK_FOREACH_LOCATION(t,l) \
+#define XSPF_TRACK_FOREACH_LOCATION(t,l) \
for ((l) = (t)->locations; (l) != NULL; (l) = (l)->next)
/**
* @brief Easy interface for walking through identifiers.
*/
-#define SPIFF_TRACK_FOREACH_IDENTIFIER(t,i) \
+#define XSPF_TRACK_FOREACH_IDENTIFIER(t,i) \
for ((i) = (t)->identifiers; (i) != NULL; (i) = (i)->next)
/**
@@ -195,4 +195,4 @@
*/
int spiff_write(struct spiff_list *list, char const *filename, char const *baseuri);
-#endif /* !SPIFF_C_H */
+#endif /* !XSPF_C_H */
Modified: trunk/doc/Doxyfile.in
===================================================================
--- trunk/doc/Doxyfile.in 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/doc/Doxyfile.in 2009-02-17 21:08:45 UTC (rev 515)
@@ -759,7 +759,7 @@
# The INCLUDE_PATH tag can be used to specify one or more directories that contain include files that are not input files but should be processed by the preprocessor.
-PREDEFINED = SPIFF_DOXYGEN
+PREDEFINED = XSPF_DOXYGEN
# The PREDEFINED tag can be used to specify one or more macro names that are defined before the preprocessor is started (similar to the -D option of gcc). The argument of the tag is a list of macros of the form: name or name=definition (no spaces). If the definition and the "=" are omitted, "=1" is assumed. To prevent a macro definition from being undefined via #undef or recursively expanded use the := operator instead of the = operator.
Modified: trunk/doc/Mainpage
===================================================================
--- trunk/doc/Mainpage 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/doc/Mainpage 2009-02-17 21:08:45 UTC (rev 515)
@@ -85,7 +85,7 @@
* speed up the parsing process.
*
* When reading is finished the value returned from parseFile() will be
- * either <c>SPIFF_READER_SUCCESS</c> or one of the error codes.
+ * either <c>XSPF_READER_SUCCESS</c> or one of the error codes.
* More details about the error occured are passed to the SpiffReaderCallback in use.
*
*
Modified: trunk/examples/check/check.cpp
===================================================================
--- trunk/examples/check/check.cpp 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/examples/check/check.cpp 2009-02-17 21:08:45 UTC (rev 515)
@@ -115,9 +115,9 @@
<< std::endl << std::flush;
} else if (loose && !fatal) {
std::cout << "Not valid XSPF, still readable "
- << "by libxspf " << SPIFF_VER_MAJOR << "."
- << SPIFF_VER_MINOR << "." << SPIFF_VER_RELEASE
- << SPIFF_VER_SUFFIX_ASCII << "."
+ << "by libxspf " << XSPF_VER_MAJOR << "."
+ << XSPF_VER_MINOR << "." << XSPF_VER_RELEASE
+ << XSPF_VER_SUFFIX_ASCII << "."
<< std::endl << std::flush;
}
}
@@ -135,10 +135,10 @@
int
printVersion() {
std::cout << "spiff_check "
- << SPIFF_VER_MAJOR << "."
- << SPIFF_VER_MINOR << "."
- << SPIFF_VER_RELEASE
- << SPIFF_VER_SUFFIX_ASCII
+ << XSPF_VER_MAJOR << "."
+ << XSPF_VER_MINOR << "."
+ << XSPF_VER_RELEASE
+ << XSPF_VER_SUFFIX_ASCII
<< std::endl << std::flush;
return 0;
}
Modified: trunk/examples/read/read.cpp
===================================================================
--- trunk/examples/read/read.cpp 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/examples/read/read.cpp 2009-02-17 21:08:45 UTC (rev 515)
@@ -264,5 +264,5 @@
delete [] baseUri;
delete callback;
- return (res == SPIFF_READER_SUCCESS) ? 0 : 1;
+ return (res == XSPF_READER_SUCCESS) ? 0 : 1;
}
Modified: trunk/examples/strip/strip.cpp
===================================================================
--- trunk/examples/strip/strip.cpp 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/examples/strip/strip.cpp 2009-02-17 21:08:45 UTC (rev 515)
@@ -103,10 +103,10 @@
int printVersion() {
std::cout << "spiff_strip "
- << SPIFF_VER_MAJOR << "."
- << SPIFF_VER_MINOR << "."
- << SPIFF_VER_RELEASE
- << SPIFF_VER_SUFFIX
+ << XSPF_VER_MAJOR << "."
+ << XSPF_VER_MINOR << "."
+ << XSPF_VER_RELEASE
+ << XSPF_VER_SUFFIX
<< std::endl << std::flush;
return 0;
}
@@ -137,7 +137,7 @@
XML_Char const * const stdinBaseUri = _PT("file:///dev/stdin");
int const res = reader.parseMemory(inputMemory, inputNumBytes,
&collector, stdinBaseUri);
- if (res != SPIFF_READER_SUCCESS) {
+ if (res != XSPF_READER_SUCCESS) {
// Error
return 1;
}
@@ -167,7 +167,7 @@
// Write to memory block
char * outputMemory;
int outputNumBytes;
- bool success = (SPIFF_WRITER_SUCCESS == writer->writeMemory(
+ bool success = (XSPF_WRITER_SUCCESS == writer->writeMemory(
outputMemory, outputNumBytes));
delete writer;
if (!success) {
Modified: trunk/examples/write/write.cpp
===================================================================
--- trunk/examples/write/write.cpp 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/examples/write/write.cpp 2009-02-17 21:08:45 UTC (rev 515)
@@ -135,7 +135,7 @@
// Finish and write to file
int const res = writer->writeFile(relativeFilename);
delete writer;
- if (res != SPIFF_WRITER_SUCCESS) {
+ if (res != XSPF_WRITER_SUCCESS) {
PORT_PRINTF(_PT("Could not write to file.\n"));
return 1;
} else {
Modified: trunk/include/xspf/ProjectOpus/ProjectOpusPlaylistExtension.h
===================================================================
--- trunk/include/xspf/ProjectOpus/ProjectOpusPlaylistExtension.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/ProjectOpus/ProjectOpusPlaylistExtension.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of ProjectOpusPlaylistExtension.
*/
-#ifndef SPIFF_PROJECT_OPUS_PLAYLIST_EXTENSION_H
-#define SPIFF_PROJECT_OPUS_PLAYLIST_EXTENSION_H
+#ifndef XSPF_PROJECT_OPUS_PLAYLIST_EXTENSION_H
+#define XSPF_PROJECT_OPUS_PLAYLIST_EXTENSION_H
#include "../SpiffExtension.h"
@@ -164,4 +164,4 @@
}
}
-#endif // SPIFF_PROJECT_OPUS_PLAYLIST_EXTENSION_H
+#endif // XSPF_PROJECT_OPUS_PLAYLIST_EXTENSION_H
Modified: trunk/include/xspf/ProjectOpus/ProjectOpusPlaylistExtensionReader.h
===================================================================
--- trunk/include/xspf/ProjectOpus/ProjectOpusPlaylistExtensionReader.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/ProjectOpus/ProjectOpusPlaylistExtensionReader.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of ProjectOpusPlaylistExtensionReader.
*/
-#ifndef SPIFF_PROJECT_OPUS_PLAYLIST_EXTENSION_READER_H
-#define SPIFF_PROJECT_OPUS_PLAYLIST_EXTENSION_READER_H
+#ifndef XSPF_PROJECT_OPUS_PLAYLIST_EXTENSION_READER_H
+#define XSPF_PROJECT_OPUS_PLAYLIST_EXTENSION_READER_H
#include "../SpiffExtensionReader.h"
@@ -115,4 +115,4 @@
}
}
-#endif // SPIFF_PROJECT_OPUS_PLAYLIST_EXTENSION_READER_H
+#endif // XSPF_PROJECT_OPUS_PLAYLIST_EXTENSION_READER_H
Modified: trunk/include/xspf/ProjectOpus/ProjectOpusPlaylistExtensionWriter.h
===================================================================
--- trunk/include/xspf/ProjectOpus/ProjectOpusPlaylistExtensionWriter.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/ProjectOpus/ProjectOpusPlaylistExtensionWriter.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of ProjectOpusPlaylistExtensionWriter.
*/
-#ifndef SPIFF_PROJECT_OPUS_PLAYLIST_EXTENSION_WRITER_H
-#define SPIFF_PROJECT_OPUS_PLAYLIST_EXTENSION_WRITER_H
+#ifndef XSPF_PROJECT_OPUS_PLAYLIST_EXTENSION_WRITER_H
+#define XSPF_PROJECT_OPUS_PLAYLIST_EXTENSION_WRITER_H
#include "../SpiffExtensionWriter.h"
@@ -116,4 +116,4 @@
}
}
-#endif // SPIFF_PROJECT_OPUS_PLAYLIST_EXTENSION_WRITER_H
+#endif // XSPF_PROJECT_OPUS_PLAYLIST_EXTENSION_WRITER_H
Modified: trunk/include/xspf/Xspf.h
===================================================================
--- trunk/include/xspf/Xspf.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/Xspf.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Include-everything header for lazy people with fast machines.
*/
-#ifndef SPIFF_H
-#define SPIFF_H
+#ifndef XSPF_H
+#define XSPF_H
/**
@@ -75,4 +75,4 @@
// #include "SpiffXmlFormatter.h"
-#endif // SPIFF_H
+#endif // XSPF_H
Modified: trunk/include/xspf/XspfChunkCallback.h
===================================================================
--- trunk/include/xspf/XspfChunkCallback.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfChunkCallback.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffChunkCallback.
*/
-#ifndef SPIFF_CHUNK_CALLBACK_H
-#define SPIFF_CHUNK_CALLBACK_H
+#ifndef XSPF_CHUNK_CALLBACK_H
+#define XSPF_CHUNK_CALLBACK_H
namespace Spiff {
@@ -133,4 +133,4 @@
}
-#endif // SPIFF_CHUNK_CALLBACK_H
+#endif // XSPF_CHUNK_CALLBACK_H
Modified: trunk/include/xspf/XspfData.h
===================================================================
--- trunk/include/xspf/XspfData.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfData.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffData.
*/
-#ifndef SPIFF_DATA_H
-#define SPIFF_DATA_H
+#ifndef XSPF_DATA_H
+#define XSPF_DATA_H
#include "SpiffDefines.h"
#include <deque>
@@ -508,4 +508,4 @@
}
-#endif // SPIFF_DATA_H
+#endif // XSPF_DATA_H
Modified: trunk/include/xspf/XspfDateTime.h
===================================================================
--- trunk/include/xspf/XspfDateTime.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfDateTime.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffDateTime.
*/
-#ifndef SPIFF_DATE_TIME_H
-#define SPIFF_DATE_TIME_H
+#ifndef XSPF_DATE_TIME_H
+#define XSPF_DATE_TIME_H
#include "SpiffDefines.h"
@@ -243,4 +243,4 @@
} // namespace Spiff
-#endif // SPIFF_DATE_TIME_H
+#endif // XSPF_DATE_TIME_H
Modified: trunk/include/xspf/XspfDefines.h
===================================================================
--- trunk/include/xspf/XspfDefines.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfDefines.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -42,18 +42,18 @@
* @file SpiffDefines.h
*/
-#ifndef SPIFF_DEFINES_H
-#define SPIFF_DEFINES_H
+#ifndef XSPF_DEFINES_H
+#define XSPF_DEFINES_H
#include "SpiffVersion.h"
// Namespace handling
-#define SPIFF_NS_HOME _PT("http://xspf.org/ns/0/") ///< XSPF namespace URI
-#define SPIFF_NS_HOME_LEN 21 ///< XSPF namespace URI string length
-#define SPIFF_NS_SEP_CHAR _PT(' ') ///< Namespace separator as character
-#define SPIFF_NS_SEP_STRING _PT(" ") ///< Namespace separator as string
+#define XSPF_NS_HOME _PT("http://xspf.org/ns/0/") ///< XSPF namespace URI
+#define XSPF_NS_HOME_LEN 21 ///< XSPF namespace URI string length
+#define XSPF_NS_SEP_CHAR _PT(' ') ///< Namespace separator as character
+#define XSPF_NS_SEP_STRING _PT(" ") ///< Namespace separator as string
#define XML_NS_HOME _PT("http://www.w3.org/XML/1998/namespace") ///< XML namespace URI
#define XML_NS_HOME_LEN 36 ///< XML namespace URI string length
@@ -72,14 +72,14 @@
* Maximum size in bytes of a file that
* will be loaded into a buffer in whole
*/
-#define SPIFF_MAX_BLOCK_SIZE 100000
+#define XSPF_MAX_BLOCK_SIZE 100000
/// @cond DOXYGEN_IGNORE
// Deny overriding from outside
-#undef SPIFF_OS_WINDOWS
-#undef SPIFF_OS_UNIX
+#undef XSPF_OS_WINDOWS
+#undef XSPF_OS_UNIX
// Portability defines
@@ -89,7 +89,7 @@
#include <windows.h>
#include <tchar.h>
-#define SPIFF_OS_WINDOWS 1
+#define XSPF_OS_WINDOWS 1
// =================================
# ifdef UNICODE
@@ -104,42 +104,42 @@
#else
// Unix, ANSI ======================
-#define SPIFF_OS_UNIX 1
+#define XSPF_OS_UNIX 1
// =================================
#endif
// OS-specific selection macro
-#ifdef SPIFF_OS_WINDOWS
-# define SPIFF_OS_SELECT(windows, unix) windows
+#ifdef XSPF_OS_WINDOWS
+# define XSPF_OS_SELECT(windows, unix) windows
#else
-# ifdef SPIFF_OS_UNIX
-# define SPIFF_OS_SELECT(windows, unix) unix
+# ifdef XSPF_OS_UNIX
+# define XSPF_OS_SELECT(windows, unix) unix
# endif
#endif
-#define PORT_ATOI SPIFF_OS_SELECT(_ttoi, atoi)
-#define PORT_FOPEN SPIFF_OS_SELECT(_tfopen, fopen)
-#define PORT_MAIN SPIFF_OS_SELECT(_tmain, main)
-#define PORT_PRINTF SPIFF_OS_SELECT(_tprintf, printf)
+#define PORT_ATOI XSPF_OS_SELECT(_ttoi, atoi)
+#define PORT_FOPEN XSPF_OS_SELECT(_tfopen, fopen)
+#define PORT_MAIN XSPF_OS_SELECT(_tmain, main)
+#define PORT_PRINTF XSPF_OS_SELECT(_tprintf, printf)
#ifdef UNICODE
-# define PORT_SNPRINTF SPIFF_OS_SELECT(_snwprintf, snprintf)
+# define PORT_SNPRINTF XSPF_OS_SELECT(_snwprintf, snprintf)
#else
-# define PORT_SNPRINTF SPIFF_OS_SELECT(_snprintf, snprintf)
+# define PORT_SNPRINTF XSPF_OS_SELECT(_snprintf, snprintf)
#endif
-#define PORT_STRCMP SPIFF_OS_SELECT(_tcscmp, strcmp)
-#define PORT_STRCPY SPIFF_OS_SELECT(_tcscpy, strcpy)
-#define PORT_STRLEN SPIFF_OS_SELECT(_tcslen, strlen)
-#define PORT_STRNCMP SPIFF_OS_SELECT(_tcsncmp, strncmp)
-#define PORT_STRNCPY SPIFF_OS_SELECT(_tcsncpy, strncpy)
-#define PORT_STRNICMP SPIFF_OS_SELECT(_tcsnicmp, strnicmp)
-#define _PT(x) SPIFF_OS_SELECT(_T(x), x)
+#define PORT_STRCMP XSPF_OS_SELECT(_tcscmp, strcmp)
+#define PORT_STRCPY XSPF_OS_SELECT(_tcscpy, strcpy)
+#define PORT_STRLEN XSPF_OS_SELECT(_tcslen, strlen)
+#define PORT_STRNCMP XSPF_OS_SELECT(_tcsncmp, strncmp)
+#define PORT_STRNCPY XSPF_OS_SELECT(_tcsncpy, strncpy)
+#define PORT_STRNICMP XSPF_OS_SELECT(_tcsnicmp, strnicmp)
+#define _PT(x) XSPF_OS_SELECT(_T(x), x)
/// @endcond
-#endif // SPIFF_DEFINES_H
+#endif // XSPF_DEFINES_H
Modified: trunk/include/xspf/XspfExtension.h
===================================================================
--- trunk/include/xspf/XspfExtension.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfExtension.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffExtension.
*/
-#ifndef SPIFF_EXTENSION_H
-#define SPIFF_EXTENSION_H
+#ifndef XSPF_EXTENSION_H
+#define XSPF_EXTENSION_H
#include "SpiffDefines.h"
@@ -133,4 +133,4 @@
} // namespace Spiff
-#endif // SPIFF_EXTENSION_H
+#endif // XSPF_EXTENSION_H
Modified: trunk/include/xspf/XspfExtensionReader.h
===================================================================
--- trunk/include/xspf/XspfExtensionReader.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfExtensionReader.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffExtensionReader.
*/
-#ifndef SPIFF_EXTENSION_READER_H
-#define SPIFF_EXTENSION_READER_H
+#ifndef XSPF_EXTENSION_READER_H
+#define XSPF_EXTENSION_READER_H
#include "SpiffDefines.h"
@@ -208,4 +208,4 @@
} // namespace Spiff
-#endif // SPIFF_EXTENSION_READER_H
+#endif // XSPF_EXTENSION_READER_H
Modified: trunk/include/xspf/XspfExtensionReaderFactory.h
===================================================================
--- trunk/include/xspf/XspfExtensionReaderFactory.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfExtensionReaderFactory.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffExtensionReaderFactory.
*/
-#ifndef SPIFF_EXTENSION_READER_FACTROY_H
-#define SPIFF_EXTENSION_READER_FACTROY_H
+#ifndef XSPF_EXTENSION_READER_FACTROY_H
+#define XSPF_EXTENSION_READER_FACTROY_H
#include "SpiffDefines.h"
@@ -218,4 +218,4 @@
}
-#endif // SPIFF_EXTENSION_READER_FACTROY_H
+#endif // XSPF_EXTENSION_READER_FACTROY_H
Modified: trunk/include/xspf/XspfExtensionWriter.h
===================================================================
--- trunk/include/xspf/XspfExtensionWriter.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfExtensionWriter.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffExtensionWriter.
*/
-#ifndef SPIFF_EXTENSION_WRITER_H
-#define SPIFF_EXTENSION_WRITER_H
+#ifndef XSPF_EXTENSION_WRITER_H
+#define XSPF_EXTENSION_WRITER_H
#include "SpiffDefines.h"
@@ -167,4 +167,4 @@
} // namespace Spiff
-#endif // SPIFF_EXTENSION_WRITER_H
+#endif // XSPF_EXTENSION_WRITER_H
Modified: trunk/include/xspf/XspfIndentFormatter.h
===================================================================
--- trunk/include/xspf/XspfIndentFormatter.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfIndentFormatter.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffIndentFormatter.
*/
-#ifndef SPIFF_INDENT_FORMATTER_H
-#define SPIFF_INDENT_FORMATTER_H
+#ifndef XSPF_INDENT_FORMATTER_H
+#define XSPF_INDENT_FORMATTER_H
#include "SpiffXmlFormatter.h"
@@ -106,4 +106,4 @@
}
-#endif // SPIFF_INDENT_FORMATTER_H
+#endif // XSPF_INDENT_FORMATTER_H
Modified: trunk/include/xspf/XspfProps.h
===================================================================
--- trunk/include/xspf/XspfProps.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfProps.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffProps.
*/
-#ifndef SPIFF_PROPS_H
-#define SPIFF_PROPS_H
+#ifndef XSPF_PROPS_H
+#define XSPF_PROPS_H
#include "SpiffData.h"
@@ -373,4 +373,4 @@
}
-#endif // SPIFF_PROPS_H
+#endif // XSPF_PROPS_H
Modified: trunk/include/xspf/XspfReader.h
===================================================================
--- trunk/include/xspf/XspfReader.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfReader.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffReader.
*/
-#ifndef SPIFF_READER_H
-#define SPIFF_READER_H
+#ifndef XSPF_READER_H
+#define XSPF_READER_H
#include "SpiffDefines.h"
@@ -57,25 +57,25 @@
/// @cond DOXYGEN_IGNORE
// Messages with ONE "%s" in it
-#define SPIFF_READER_TEXT_ONE_ATTRIBUTE_FORBIDDEN _PT("Attribute '%s' not allowed.")
-#define SPIFF_READER_TEXT_ONE_EXPAT_ERROR _PT("Expat error '%s'")
-#define SPIFF_READER_TEXT_ONE_ELEMENT_FORBIDDEN _PT("Element '%s' not allowed.")
-#define SPIFF_READER_TEXT_ONE_ELEMENT_FORBIDDEN_VERSION_ZERO _PT("Element '%s' not allowed in XSPF-0.")
-#define SPIFF_READER_TEXT_ONE_FILE_READING_ERROR _PT("File '%s' could not be read.")
-#define SPIFF_READER_TEXT_ONE_WRONG_ROOT_NAME _PT("Root element must be '") SPIFF_NS_HOME SPIFF_NS_SEP_STRING _PT("playlist', not '%s'.")
-#define SPIFF_READER_TEXT_ONE_WRONG_VERSION _PT("Version must be '0' or '1', not '%s'.")
+#define XSPF_READER_TEXT_ONE_ATTRIBUTE_FORBIDDEN _PT("Attribute '%s' not allowed.")
+#define XSPF_READER_TEXT_ONE_EXPAT_ERROR _PT("Expat error '%s'")
+#define XSPF_READER_TEXT_ONE_ELEMENT_FORBIDDEN _PT("Element '%s' not allowed.")
+#define XSPF_READER_TEXT_ONE_ELEMENT_FORBIDDEN_VERSION_ZERO _PT("Element '%s' not allowed in XSPF-0.")
+#define XSPF_READER_TEXT_ONE_FILE_READING_ERROR _PT("File '%s' could not be read.")
+#define XSPF_READER_TEXT_ONE_WRONG_ROOT_NAME _PT("Root element must be '") XSPF_NS_HOME XSPF_NS_SEP_STRING _PT("playlist', not '%s'.")
+#define XSPF_READER_TEXT_ONE_WRONG_VERSION _PT("Version must be '0' or '1', not '%s'.")
// Messages with ZERO "%s" in it
-#define SPIFF_READER_TEXT_ZERO_ATTRIBUTE_MISSING(name) _PT("Attribute '") name _PT("' missing.")
-#define SPIFF_READER_TEXT_ZERO_ELEMENT_MISSING(ns, name) _PT("Element '") ns SPIFF_NS_SEP_STRING name _PT("' missing.")
-#define SPIFF_READER_TEXT_ZERO_ELEMENT_MISSING_VERSION_ZERO(ns, name) _PT("Element '") ns SPIFF_NS_SEP_STRING name _PT("' missing. This is not allowed in XSPF-0.")
-#define SPIFF_READER_TEXT_ZERO_FILENAME_NULL _PT("Filename must not be NULL.")
-#define SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(ns, name) _PT("Only one '") ns SPIFF_NS_SEP_STRING name _PT("' allowed.")
-#define SPIFF_READER_TEXT_ZERO_WRONG_ATTRIBUTE_TYPE(attr, type) _PT("Attribute '") attr _PT("' is not a valid ") type _PT(".")
-#define SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(ns, elem, type) _PT("Content of '") ns SPIFF_NS_SEP_STRING elem _PT("' is not a valid ") type _PT(".")
-#define SPIFF_READER_TEXT_ZERO_TEXT_FORBIDDEN(ns, elem) _PT("Content of '") ns SPIFF_NS_SEP_STRING elem _PT("' must be whitespace or child elements, not text.")
-#define SPIFF_READER_TEXT_ZERO_KEY_WITHOUT_VERSION(name) _PT("Attribute '") name _PT("' does not carry version information.")
-#define SPIFF_READER_TEXT_ZERO_KEY_WITH_REL_URI(name) _PT("Attribute '") name _PT("' does not contain an absolute URI.")
+#define XSPF_READER_TEXT_ZERO_ATTRIBUTE_MISSING(name) _PT("Attribute '") name _PT("' missing.")
+#define XSPF_READER_TEXT_ZERO_ELEMENT_MISSING(ns, name) _PT("Element '") ns XSPF_NS_SEP_STRING name _PT("' missing.")
+#define XSPF_READER_TEXT_ZERO_ELEMENT_MISSING_VERSION_ZERO(ns, name) _PT("Element '") ns XSPF_NS_SEP_STRING name _PT("' missing. This is not allowed in XSPF-0.")
+#define XSPF_READER_TEXT_ZERO_FILENAME_NULL _PT("Filename must not be NULL.")
+#define XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(ns, name) _PT("Only one '") ns XSPF_NS_SEP_STRING name _PT("' allowed.")
+#define XSPF_READER_TEXT_ZERO_WRONG_ATTRIBUTE_TYPE(attr, type) _PT("Attribute '") attr _PT("' is not a valid ") type _PT(".")
+#define XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(ns, elem, type) _PT("Content of '") ns XSPF_NS_SEP_STRING elem _PT("' is not a valid ") type _PT(".")
+#define XSPF_READER_TEXT_ZERO_TEXT_FORBIDDEN(ns, elem) _PT("Content of '") ns XSPF_NS_SEP_STRING elem _PT("' must be whitespace or child elements, not text.")
+#define XSPF_READER_TEXT_ZERO_KEY_WITHOUT_VERSION(name) _PT("Attribute '") name _PT("' does not carry version information.")
+#define XSPF_READER_TEXT_ZERO_KEY_WITH_REL_URI(name) _PT("Attribute '") name _PT("' does not contain an absolute URI.")
/// @endcond
@@ -84,29 +84,29 @@
* Specifies the result of a parse operation.
*/
enum SpiffReaderReturnCode {
- SPIFF_READER_SUCCESS, ///< Everything fine
+ XSPF_READER_SUCCESS, ///< Everything fine
- SPIFF_READER_ERROR_NO_INPUT, ///< No input given
- SPIFF_READER_ERROR_ELEMENT_TOOMANY, ///< Element occurs more often than allowed
- SPIFF_READER_ERROR_ELEMENT_FORBIDDEN, ///< Element is not allowed at that place
- SPIFF_READER_ERROR_ELEMENT_MISSING, ///< Required element missing
- SPIFF_READER_ERROR_ATTRIBUTE_INVALID, ///< Attribute with invalid value
- SPIFF_READER_ERROR_ATTRIBUTE_MISSING, ///< Required attribute missing
- SPIFF_READER_ERROR_ATTRIBUTE_FORBIDDEN, ///< Attribute not allowed at that place
- SPIFF_READER_ERROR_CONTENT_INVALID, ///< Element body has invalid format
- SPIFF_READER_ERROR_BASE_URI_USELESS, ///< Given base URI is not a valid absolute URI
+ XSPF_READER_ERROR_NO_INPUT, ///< No input given
+ XSPF_READER_ERROR_ELEMENT_TOOMANY, ///< Element occurs more often than allowed
+ XSPF_READER_ERROR_ELEMENT_FORBIDDEN, ///< Element is not allowed at that place
+ XSPF_READER_ERROR_ELEMENT_MISSING, ///< Required element missing
+ XSPF_READER_ERROR_ATTRIBUTE_INVALID, ///< Attribute with invalid value
+ XSPF_READER_ERROR_ATTRIBUTE_MISSING, ///< Required attribute missing
+ XSPF_READER_ERROR_ATTRIBUTE_FORBIDDEN, ///< Attribute not allowed at that place
+ XSPF_READER_ERROR_CONTENT_INVALID, ///< Element body has invalid format
+ XSPF_READER_ERROR_BASE_URI_USELESS, ///< Given base URI is not a valid absolute URI
- SPIFF_READER_WARNING_KEY_WITHOUT_VERSION, ///< A key attribute holds an unversioned URI
- SPIFF_READER_WARNING_KEY_WITH_REL_URI, ///< A key attribute holds a relative URI
+ XSPF_READER_WARNING_KEY_WITHOUT_VERSION, ///< A key attribute holds an unversioned URI
+ XSPF_READER_WARNING_KEY_WITH_REL_URI, ///< A key attribute holds a relative URI
- SPIFF_READER_ERROR_MALICIOUS_SPACE, ///< An entity is taking to much space
- SPIFF_READER_ERROR_MALICIOUS_LOOKUP_SUM, ///< An entity takes to many lookups in sum
- SPIFF_READER_ERROR_MALICIOUS_LOOKUP_DEPTH, //< An entity's lookup depth is too high
+ XSPF_READER_ERROR_MALICIOUS_SPACE, ///< An entity is taking to much space
+ XSPF_READER_ERROR_MALICIOUS_LOOKUP_SUM, ///< An entity takes to many lookups in sum
+ XSPF_READER_ERROR_MALICIOUS_LOOKUP_DEPTH, //< An entity's lookup depth is too high
// Insert new codes HERE!
// This one must come last!
- SPIFF_READER_ERROR_EXPAT = 0x1000 /// First Expat error code
+ XSPF_READER_ERROR_EXPAT = 0x1000 /// First Expat error code
};
@@ -248,7 +248,7 @@
* Passing \c NULL will make the reader use a SpiffStrictReaderCallback
* instance internally.
* @param baseUri Absolute external base URI to resolve URIs against
- * @return Error/warning code that aborted parsing or \c SPIFF_READER_SUCCESS.
+ * @return Error/warning code that aborted parsing or \c XSPF_READER_SUCCESS.
* @since 1.0.0rc1
*/
int parseFile(XML_Char const * filename, SpiffReaderCallback * callback,
@@ -263,7 +263,7 @@
* Passing \c NULL will make the reader use a SpiffStrictReaderCallback
* instance internally.
* @param baseUri Absolute external base URI to resolve URIs against
- * @return Error/warning code that aborted parsing or \c SPIFF_READER_SUCCESS.
+ * @return Error/warning code that aborted parsing or \c XSPF_READER_SUCCESS.
* @since 1.0.0rc1
*/
int parseMemory(char const * memory, int numBytes, SpiffReaderCallback * callback,
@@ -277,7 +277,7 @@
* Passing \c NULL will make the reader use a SpiffStrictReaderCallback
* instance internally.
* @param baseUri Absolute external base URI to resolve URIs against
- * @return Error/warning code that aborted parsing or \c SPIFF_READER_SUCCESS.
+ * @return Error/warning code that aborted parsing or \c XSPF_READER_SUCCESS.
* @since 1.0.0rc1
*/
int parseChunks(SpiffChunkCallback * inputCallback,
@@ -695,4 +695,4 @@
} // namespace Spiff
-#endif // SPIFF_READER_H
+#endif // XSPF_READER_H
Modified: trunk/include/xspf/XspfReaderCallback.h
===================================================================
--- trunk/include/xspf/XspfReaderCallback.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfReaderCallback.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffReaderCallback.
*/
-#ifndef SPIFF_READER_CALLBACK_H
-#define SPIFF_READER_CALLBACK_H
+#ifndef XSPF_READER_CALLBACK_H
+#define XSPF_READER_CALLBACK_H
#include "SpiffDefines.h"
@@ -156,4 +156,4 @@
} // namespace Spiff
-#endif // SPIFF_READER_CALLBACK_H
+#endif // XSPF_READER_CALLBACK_H
Modified: trunk/include/xspf/XspfSeamlessFormatter.h
===================================================================
--- trunk/include/xspf/XspfSeamlessFormatter.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfSeamlessFormatter.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffSeamlessFormatter.
*/
-#ifndef SPIFF_SEAMLESS_FORMATTER_H
-#define SPIFF_SEAMLESS_FORMATTER_H
+#ifndef XSPF_SEAMLESS_FORMATTER_H
+#define XSPF_SEAMLESS_FORMATTER_H
#include "SpiffXmlFormatter.h"
@@ -105,4 +105,4 @@
}
-#endif // SPIFF_SEAMLESS_FORMATTER_H
+#endif // XSPF_SEAMLESS_FORMATTER_H
Modified: trunk/include/xspf/XspfStack.h
===================================================================
--- trunk/include/xspf/XspfStack.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfStack.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface and implemenatation of SpiffStack.
*/
-#ifndef SPIFF_STACK_H
-#define SPIFF_STACK_H
+#ifndef XSPF_STACK_H
+#define XSPF_STACK_H
#include "SpiffDefines.h"
@@ -102,4 +102,4 @@
}
-#endif // SPIFF_STACK_H
+#endif // XSPF_STACK_H
Modified: trunk/include/xspf/XspfToolbox.h
===================================================================
--- trunk/include/xspf/XspfToolbox.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfToolbox.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of Spiff::Toolbox.
*/
-#ifndef SPIFF_TOOLBOX_H
-#define SPIFF_TOOLBOX_H
+#ifndef XSPF_TOOLBOX_H
+#define XSPF_TOOLBOX_H
#include "SpiffDefines.h"
@@ -255,4 +255,4 @@
} // namespace Toolbox
} // namespace Spiff
-#endif // SPIFF_TOOLBOX_H
+#endif // XSPF_TOOLBOX_H
Modified: trunk/include/xspf/XspfTrack.h
===================================================================
--- trunk/include/xspf/XspfTrack.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfTrack.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffTrack.
*/
-#ifndef SPIFF_TRACK_H
-#define SPIFF_TRACK_H
+#ifndef XSPF_TRACK_H
+#define XSPF_TRACK_H
#include "SpiffData.h"
@@ -269,4 +269,4 @@
}
-#endif // SPIFF_TRACK_H
+#endif // XSPF_TRACK_H
Modified: trunk/include/xspf/XspfVersion.h
===================================================================
--- trunk/include/xspf/XspfVersion.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfVersion.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,16 +43,16 @@
* Holds libxspf version constants.
*/
-#ifndef SPIFF_VERSION_H
-#define SPIFF_VERSION_H
+#ifndef XSPF_VERSION_H
+#define XSPF_VERSION_H
// Version constants
-#define SPIFF_VER_MAJOR 1 ///< Major version number
-#define SPIFF_VER_MINOR 0 ///< Minor version number
-#define SPIFF_VER_RELEASE 0 ///< Release version number
-#define SPIFF_VER_SUFFIX_ASCII "" ///< ASCII Version suffix string (e.g. "rc1")
-#define SPIFF_VER_SUFFIX _PT(SPIFF_VER_SUFFIX_ASCII) ///< Version suffix string (e.g. "rc1")
+#define XSPF_VER_MAJOR 1 ///< Major version number
+#define XSPF_VER_MINOR 0 ///< Minor version number
+#define XSPF_VER_RELEASE 0 ///< Release version number
+#define XSPF_VER_SUFFIX_ASCII "" ///< ASCII Version suffix string (e.g. "rc1")
+#define XSPF_VER_SUFFIX _PT(XSPF_VER_SUFFIX_ASCII) ///< Version suffix string (e.g. "rc1")
-#endif // SPIFF_VERSION_H
+#endif // XSPF_VERSION_H
Modified: trunk/include/xspf/XspfWriter.h
===================================================================
--- trunk/include/xspf/XspfWriter.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfWriter.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffWriter.
*/
-#ifndef SPIFF_WRITER_H
-#define SPIFF_WRITER_H
+#ifndef XSPF_WRITER_H
+#define XSPF_WRITER_H
#include "SpiffDefines.h"
@@ -61,10 +61,10 @@
* Specifies the result of a write operation.
*/
enum SpiffWriterReturnCode {
- SPIFF_WRITER_SUCCESS, ///< Everything fine
+ XSPF_WRITER_SUCCESS, ///< Everything fine
- SPIFF_WRITER_ERROR_OPENING, ///< File could not be opened
- SPIFF_WRITER_ERROR_BASE_URI_USELESS ///< Given base URI is not a valid absolute URI
+ XSPF_WRITER_ERROR_OPENING, ///< File could not be opened
+ XSPF_WRITER_ERROR_BASE_URI_USELESS ///< Given base URI is not a valid absolute URI
};
@@ -103,7 +103,7 @@
* @param embedBase Embeds base URI as xml:base in root
* node if true or not if false
* @param errorCode Place to write error code or
- * \c SPIFF_WRITER_SUCCESS to.
+ * \c XSPF_WRITER_SUCCESS to.
* @return \c NULL on error or a new'ed SpiffWriter
* that you have to delete manually later.
* @since 1.0.0
@@ -252,4 +252,4 @@
}
-#endif // SPIFF_WRITER_H
+#endif // XSPF_WRITER_H
Modified: trunk/include/xspf/XspfXmlFormatter.h
===================================================================
--- trunk/include/xspf/XspfXmlFormatter.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/XspfXmlFormatter.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffXmlFormatter.
*/
-#ifndef SPIFF_XML_FORMATTER_H
-#define SPIFF_XML_FORMATTER_H
+#ifndef XSPF_XML_FORMATTER_H
+#define XSPF_XML_FORMATTER_H
#include "SpiffDefines.h"
@@ -269,4 +269,4 @@
} // namespace Spiff
-#endif // SPIFF_XML_FORMATTER_H
+#endif // XSPF_XML_FORMATTER_H
Modified: trunk/include/xspf/ZirkorosOnline/ZirkorosOnlineTrackExtension.h
===================================================================
--- trunk/include/xspf/ZirkorosOnline/ZirkorosOnlineTrackExtension.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/ZirkorosOnline/ZirkorosOnlineTrackExtension.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -45,8 +45,8 @@
* Interface of ZirkorosOnlineTrackExtension.
*/
-#ifndef SPIFF_ZIRKOROS_ONLINE_TRACK_EXTENSION_H
-#define SPIFF_ZIRKOROS_ONLINE_TRACK_EXTENSION_H
+#ifndef XSPF_ZIRKOROS_ONLINE_TRACK_EXTENSION_H
+#define XSPF_ZIRKOROS_ONLINE_TRACK_EXTENSION_H
#include "../SpiffExtension.h"
@@ -100,4 +100,4 @@
}
}
-#endif // SPIFF_ZIRKOROS_ONLINE_TRACK_EXTENSION_H
+#endif // XSPF_ZIRKOROS_ONLINE_TRACK_EXTENSION_H
Modified: trunk/include/xspf/ZirkorosOnline/ZirkorosOnlineTrackExtensionReader.h
===================================================================
--- trunk/include/xspf/ZirkorosOnline/ZirkorosOnlineTrackExtensionReader.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/include/xspf/ZirkorosOnline/ZirkorosOnlineTrackExtensionReader.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -45,8 +45,8 @@
* Interface of ZirkorosOnlineTrackExtensionReader.
*/
-#ifndef SPIFF_ZIRKOROS_ONLINE_TRACK_EXTENSION_READER_H
-#define SPIFF_ZIRKOROS_ONLINE_TRACK_EXTENSION_READER_H
+#ifndef XSPF_ZIRKOROS_ONLINE_TRACK_EXTENSION_READER_H
+#define XSPF_ZIRKOROS_ONLINE_TRACK_EXTENSION_READER_H
#include "../SpiffExtensionReader.h"
@@ -107,4 +107,4 @@
}
}
-#endif // SPIFF_ZIRKOROS_ONLINE_TRACK_EXTENSION_READER_H
+#endif // XSPF_ZIRKOROS_ONLINE_TRACK_EXTENSION_READER_H
Modified: trunk/src/ProjectOpus/ProjectOpusPlaylistExtensionReader.cpp
===================================================================
--- trunk/src/ProjectOpus/ProjectOpusPlaylistExtensionReader.cpp 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/src/ProjectOpus/ProjectOpusPlaylistExtensionReader.cpp 2009-02-17 21:08:45 UTC (rev 515)
@@ -143,16 +143,16 @@
// Check and skip namespace
if (::PORT_STRNCMP(fullName, PROJECT_OPUS_NS_HOME, PROJECT_OPUS_NS_HOME_LEN)
|| ::PORT_STRCMP(fullName + PROJECT_OPUS_NS_HOME_LEN + 1, _PT("info"))) {
- handleError(SPIFF_READER_ERROR_ELEMENT_FORBIDDEN,
- SPIFF_READER_TEXT_ONE_ELEMENT_FORBIDDEN,
+ handleError(XSPF_READER_ERROR_ELEMENT_FORBIDDEN,
+ XSPF_READER_TEXT_ONE_ELEMENT_FORBIDDEN,
fullName);
return false;
}
// One info at most
if (!this->d->firstInfo) {
- handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(PROJECT_OPUS_NS_HOME, _PT("info")));
+ handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(PROJECT_OPUS_NS_HOME, _PT("info")));
return false;
}
@@ -184,8 +184,8 @@
case 2:
// One info minimum
if (this->d->firstInfo) {
- handleError(SPIFF_READER_ERROR_ELEMENT_MISSING,
- SPIFF_READER_TEXT_ZERO_ELEMENT_MISSING(PROJECT_OPUS_NS_HOME, _PT("info")));
+ handleError(XSPF_READER_ERROR_ELEMENT_MISSING,
+ XSPF_READER_TEXT_ZERO_ELEMENT_MISSING(PROJECT_OPUS_NS_HOME, _PT("info")));
return false;
}
break;
@@ -224,7 +224,7 @@
} else if (!::PORT_STRCMP(atts[i + 1], _PT("playlist"))) {
dummyType = TYPE_PLAYLIST;
} else {
- handleError(SPIFF_READER_ERROR_ATTRIBUTE_INVALID,
+ handleError(XSPF_READER_ERROR_ATTRIBUTE_INVALID,
PROJECT_OPUS_TEXT_ZERO_ATTRIBUTE_OUT_OF_SET(_PT("type"), _PT("{'album', 'playlist'}")));
return false;
}
@@ -233,8 +233,8 @@
} else if (!::PORT_STRCMP(atts[i], _PT("nid"))) {
int dummyNid;
if (!Toolbox::extractInteger(atts[i + 1], 0, &dummyNid)) {
- handleError(SPIFF_READER_ERROR_ATTRIBUTE_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_ATTRIBUTE_TYPE(_PT("nid"), _PT("unsigned integer")));
+ handleError(XSPF_READER_ERROR_ATTRIBUTE_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_ATTRIBUTE_TYPE(_PT("nid"), _PT("unsigned integer")));
return false;
}
this->d->extension.setNodeId(dummyNid);
@@ -246,21 +246,21 @@
return false;
}
} else {
- handleError(SPIFF_READER_ERROR_ATTRIBUTE_FORBIDDEN,
- SPIFF_READER_TEXT_ONE_ATTRIBUTE_FORBIDDEN, atts[i]);
+ handleError(XSPF_READER_ERROR_ATTRIBUTE_FORBIDDEN,
+ XSPF_READER_TEXT_ONE_ATTRIBUTE_FORBIDDEN, atts[i]);
return false;
}
}
if (!typeFound) {
- handleError(SPIFF_READER_ERROR_ATTRIBUTE_MISSING,
- SPIFF_READER_TEXT_ZERO_ATTRIBUTE_MISSING(_PT("type")));
+ handleError(XSPF_READER_ERROR_ATTRIBUTE_MISSING,
+ XSPF_READER_TEXT_ZERO_ATTRIBUTE_MISSING(_PT("type")));
return false;
}
if (!nidFound) {
- handleError(SPIFF_READER_ERROR_ATTRIBUTE_MISSING,
- SPIFF_READER_TEXT_ZERO_ATTRIBUTE_MISSING(_PT("nid")));
+ handleError(XSPF_READER_ERROR_ATTRIBUTE_MISSING,
+ XSPF_READER_TEXT_ZERO_ATTRIBUTE_MISSING(_PT("nid")));
return false;
}
Modified: trunk/src/XspfDataWriter.h
===================================================================
--- trunk/src/XspfDataWriter.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/src/XspfDataWriter.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffDataWriter.
*/
-#ifndef SPIFF_DATA_WRITER_H
-#define SPIFF_DATA_WRITER_H
+#ifndef XSPF_DATA_WRITER_H
+#define XSPF_DATA_WRITER_H
#include <spiff/SpiffDefines.h>
@@ -193,4 +193,4 @@
}
-#endif // SPIFF_DATA_WRITER_H
+#endif // XSPF_DATA_WRITER_H
Modified: trunk/src/XspfIndentFormatter.cpp
===================================================================
--- trunk/src/XspfIndentFormatter.cpp 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/src/XspfIndentFormatter.cpp 2009-02-17 21:08:45 UTC (rev 515)
@@ -53,10 +53,10 @@
* Specifies the type of basic XML unit.
*/
enum SpiffElemPos {
- SPIFF_ELEM_DUMMY, ///< Stack returns 0 if empty
+ XSPF_ELEM_DUMMY, ///< Stack returns 0 if empty
- SPIFF_ELEM_START, ///< Opening tag
- SPIFF_ELEM_BODY ///< Tag body
+ XSPF_ELEM_START, ///< Opening tag
+ XSPF_ELEM_BODY ///< Tag body
};
@@ -159,13 +159,13 @@
*this->getOutput() << _PT(">");
this->d->level++;
- this->d->stack.push(SPIFF_ELEM_START);
+ this->d->stack.push(XSPF_ELEM_START);
}
void SpiffIndentFormatter::writeEnd(XML_Char const * name) {
this->d->level--;
- if (this->d->stack.top() != SPIFF_ELEM_BODY) {
+ if (this->d->stack.top() != XSPF_ELEM_BODY) {
*this->getOutput() << _PT('\n');
for (int i = -(this->d->shift); i < this->d->level; i++) {
*this->getOutput() << _PT('\t');
@@ -187,13 +187,13 @@
void SpiffIndentFormatter::writeBody(XML_Char const * text) {
writeCharacterData(text);
- this->d->stack.push(SPIFF_ELEM_BODY);
+ this->d->stack.push(XSPF_ELEM_BODY);
}
void SpiffIndentFormatter::writeBody(int number) {
*this->getOutput() << number;
- this->d->stack.push(SPIFF_ELEM_BODY);
+ this->d->stack.push(XSPF_ELEM_BODY);
}
Modified: trunk/src/XspfPropsWriter.h
===================================================================
--- trunk/src/XspfPropsWriter.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/src/XspfPropsWriter.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffPropsWriter.
*/
-#ifndef SPIFF_PROPS_WRITER_H
-#define SPIFF_PROPS_WRITER_H
+#ifndef XSPF_PROPS_WRITER_H
+#define XSPF_PROPS_WRITER_H
#include "SpiffDataWriter.h"
@@ -196,4 +196,4 @@
}
-#endif // SPIFF_PROPS_WRITER_H
+#endif // XSPF_PROPS_WRITER_H
Modified: trunk/src/XspfReader.cpp
===================================================================
--- trunk/src/XspfReader.cpp 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/src/XspfReader.cpp 2009-02-17 21:08:45 UTC (rev 515)
@@ -211,7 +211,7 @@
ownCallback(false),
extensionReader(NULL),
extensionReaderFactory(handlerFactory),
- errorCode(SPIFF_READER_SUCCESS),
+ errorCode(XSPF_READER_SUCCESS),
insideExtension(false),
skip(false),
skipStopLevel(0),
@@ -488,7 +488,7 @@
// Init base URI stack
if (!Toolbox::isAbsoluteUri(baseUri)) {
- handleFatalError(SPIFF_READER_ERROR_BASE_URI_USELESS,
+ handleFatalError(XSPF_READER_ERROR_BASE_URI_USELESS,
_PT("Base URI is not a valid absolute URI."));
return false;
}
@@ -498,7 +498,7 @@
clearError();
// Create parser
- this->d->parser = ::XML_ParserCreateNS(NULL, SPIFF_NS_SEP_CHAR);
+ this->d->parser = ::XML_ParserCreateNS(NULL, XSPF_NS_SEP_CHAR);
// Put class pointer into user data
::XML_SetUserData(this->d->parser, this);
@@ -530,8 +530,8 @@
SpiffReader::handleXmlBaseAttribute(XML_Char const * xmlBase) {
// Check URI
if (!Toolbox::isUri(xmlBase)) {
- if (!handleError(SPIFF_READER_ERROR_ATTRIBUTE_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_ATTRIBUTE_TYPE(
+ if (!handleError(XSPF_READER_ERROR_ATTRIBUTE_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_ATTRIBUTE_TYPE(
_PT("xml:base"), _PT("URI")))) {
return false;
}
@@ -559,8 +559,8 @@
void SpiffReader::setExpatError() {
XML_Error const expatCode = ::XML_GetErrorCode(this->d->parser);
- handleFatalError(SPIFF_READER_ERROR_EXPAT + static_cast<int>(expatCode),
- SPIFF_READER_TEXT_ONE_EXPAT_ERROR,
+ handleFatalError(XSPF_READER_ERROR_EXPAT + static_cast<int>(expatCode),
+ XSPF_READER_TEXT_ONE_EXPAT_ERROR,
::XML_ErrorString(expatCode));
}
@@ -574,15 +574,15 @@
// Check filename
if (filename == NULL) {
- handleFatalError(SPIFF_READER_ERROR_NO_INPUT,
- SPIFF_READER_TEXT_ZERO_FILENAME_NULL);
+ handleFatalError(XSPF_READER_ERROR_NO_INPUT,
+ XSPF_READER_TEXT_ZERO_FILENAME_NULL);
return this->d->errorCode;
}
// Open file
FILE * file = ::PORT_FOPEN(filename, _PT("r"));
if (file == NULL) {
- handleFatalError(SPIFF_READER_ERROR_NO_INPUT, SPIFF_READER_TEXT_ONE_FILE_READING_ERROR, filename);
+ handleFatalError(XSPF_READER_ERROR_NO_INPUT, XSPF_READER_TEXT_ONE_FILE_READING_ERROR, filename);
return this->d->errorCode;
}
@@ -593,17 +593,17 @@
// Read and parse file
void * buffer;
- if (filesize > SPIFF_MAX_BLOCK_SIZE) {
+ if (filesize > XSPF_MAX_BLOCK_SIZE) {
// In several blocks
long sizeLeft = filesize;
while (sizeLeft > 0) {
- long const blockSize = std::min<long>(sizeLeft, SPIFF_MAX_BLOCK_SIZE);
+ long const blockSize = std::min<long>(sizeLeft, XSPF_MAX_BLOCK_SIZE);
buffer = ::XML_GetBuffer(this->d->parser, blockSize);
::fread(buffer, 1, blockSize, file);
sizeLeft -= blockSize;
if (::XML_ParseBuffer(this->d->parser, blockSize, sizeLeft == 0)
== XML_STATUS_ERROR) {
- if (this->d->errorCode == SPIFF_READER_SUCCESS) {
+ if (this->d->errorCode == XSPF_READER_SUCCESS) {
setExpatError();
}
break;
@@ -618,7 +618,7 @@
if (::XML_ParseBuffer(this->d->parser, filesize, 1)
== XML_STATUS_ERROR) {
- if (this->d->errorCode == SPIFF_READER_SUCCESS) {
+ if (this->d->errorCode == XSPF_READER_SUCCESS) {
setExpatError();
}
}
@@ -643,7 +643,7 @@
// Parse
if (::XML_Parse(this->d->parser, memory, numBytes, 1)
== XML_STATUS_ERROR) {
- if (this->d->errorCode == SPIFF_READER_SUCCESS) {
+ if (this->d->errorCode == XSPF_READER_SUCCESS) {
setExpatError();
}
}
@@ -681,7 +681,7 @@
if (::XML_ParseBuffer(this->d->parser, bytesToParse,
bytesToParse == 0) == XML_STATUS_ERROR) {
// Error
- if (this->d->errorCode == SPIFF_READER_SUCCESS) {
+ if (this->d->errorCode == XSPF_READER_SUCCESS) {
setExpatError();
}
break;
@@ -705,9 +705,9 @@
bool
SpiffReader::checkAndSkipNamespace(XML_Char const * fullName,
XML_Char const * & localName) {
- if (::PORT_STRNCMP(fullName, SPIFF_NS_HOME, SPIFF_NS_HOME_LEN)) {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_FORBIDDEN,
- SPIFF_READER_TEXT_ONE_ELEMENT_FORBIDDEN,
+ if (::PORT_STRNCMP(fullName, XSPF_NS_HOME, XSPF_NS_HOME_LEN)) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_FORBIDDEN,
+ XSPF_READER_TEXT_ONE_ELEMENT_FORBIDDEN,
fullName)) {
return false;
}
@@ -715,7 +715,7 @@
// Catch <xspf:tag> as <tag> instead
localName = fullName;
while ((localName[0] != _PT('\0'))
- && (localName[0] != SPIFF_NS_SEP_CHAR)) {
+ && (localName[0] != XSPF_NS_SEP_CHAR)) {
localName++;
}
if (localName[0] == _PT('\0')) {
@@ -726,7 +726,7 @@
localName++;
}
} else {
- localName = fullName + SPIFF_NS_HOME_LEN + 1;
+ localName = fullName + XSPF_NS_HOME_LEN + 1;
}
return true;
}
@@ -742,8 +742,8 @@
// Check root name
if (::PORT_STRCMP(localName, _PT("playlist"))) {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_FORBIDDEN,
- SPIFF_READER_TEXT_ONE_WRONG_ROOT_NAME,
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_FORBIDDEN,
+ XSPF_READER_TEXT_ONE_WRONG_ROOT_NAME,
fullName)) {
return false;
}
@@ -780,9 +780,9 @@
if (this->d->firstPlaylistAnnotation) {
this->d->firstPlaylistAnnotation = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("annotation")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("annotation")))) {
return false;
}
}
@@ -803,9 +803,9 @@
if (this->d->firstPlaylistAttribution) {
this->d->firstPlaylistAttribution = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("attribution")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("attribution")))) {
return false;
}
}
@@ -829,9 +829,9 @@
if (this->d->firstPlaylistCreator) {
this->d->firstPlaylistCreator = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("creator")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("creator")))) {
return false;
}
}
@@ -852,9 +852,9 @@
if (this->d->firstPlaylistDate) {
this->d->firstPlaylistDate = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("date")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("date")))) {
return false;
}
}
@@ -874,8 +874,8 @@
// Tag only allowed in v1
if (this->d->version == 0) {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_FORBIDDEN,
- SPIFF_READER_TEXT_ONE_ELEMENT_FORBIDDEN_VERSION_ZERO,
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_FORBIDDEN,
+ XSPF_READER_TEXT_ONE_ELEMENT_FORBIDDEN_VERSION_ZERO,
fullName)) {
return false;
}
@@ -916,9 +916,9 @@
if (this->d->firstPlaylistIdentifier) {
this->d->firstPlaylistIdentifier = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("identifier")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("identifier")))) {
return false;
}
}
@@ -939,9 +939,9 @@
if (this->d->firstPlaylistImage) {
this->d->firstPlaylistImage = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("image")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("image")))) {
return false;
}
}
@@ -962,9 +962,9 @@
if (this->d->firstPlaylistInfo) {
this->d->firstPlaylistInfo = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("info")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("info")))) {
return false;
}
}
@@ -992,9 +992,9 @@
if (this->d->firstPlaylistLicense) {
this->d->firstPlaylistLicense = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("license")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("license")))) {
return false;
}
}
@@ -1039,9 +1039,9 @@
if (this->d->firstPlaylistLocation) {
this->d->firstPlaylistLocation = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("location")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("location")))) {
return false;
}
}
@@ -1088,9 +1088,9 @@
if (this->d->firstPlaylistTitle) {
this->d->firstPlaylistTitle = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("title")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("title")))) {
return false;
}
}
@@ -1111,9 +1111,9 @@
if (this->d->firstPlaylistTrackList) {
this->d->firstPlaylistTrackList = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("trackList")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("trackList")))) {
return false;
}
}
@@ -1131,8 +1131,8 @@
}
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_FORBIDDEN,
- SPIFF_READER_TEXT_ONE_ELEMENT_FORBIDDEN,
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_FORBIDDEN,
+ XSPF_READER_TEXT_ONE_ELEMENT_FORBIDDEN,
fullName)) {
return false;
}
@@ -1190,8 +1190,8 @@
}
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_FORBIDDEN,
- SPIFF_READER_TEXT_ONE_ELEMENT_FORBIDDEN,
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_FORBIDDEN,
+ XSPF_READER_TEXT_ONE_ELEMENT_FORBIDDEN,
fullName)) {
return false;
}
@@ -1224,9 +1224,9 @@
if (this->d->firstTrackAlbum) {
this->d->firstTrackAlbum = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("album")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("album")))) {
return false;
}
}
@@ -1247,9 +1247,9 @@
if (this->d->firstTrackAnnotation) {
this->d->firstTrackAnnotation = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("annotation")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("annotation")))) {
return false;
}
}
@@ -1269,8 +1269,8 @@
// Note: Element //playlist/trackList/track/artist
// is not valid XSPF. This is a loose fallback.
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_FORBIDDEN,
- SPIFF_READER_TEXT_ONE_ELEMENT_FORBIDDEN,
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_FORBIDDEN,
+ XSPF_READER_TEXT_ONE_ELEMENT_FORBIDDEN,
fullName)) {
return false;
}
@@ -1294,9 +1294,9 @@
if (this->d->firstTrackCreator) {
this->d->firstTrackCreator = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("creator")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("creator")))) {
return false;
}
}
@@ -1317,9 +1317,9 @@
if (this->d->firstTrackDuration) {
this->d->firstTrackDuration = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("duration")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("duration")))) {
return false;
}
}
@@ -1339,8 +1339,8 @@
// Tag only allowed in v1
if (this->d->version == 0) {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_FORBIDDEN,
- SPIFF_READER_TEXT_ONE_ELEMENT_FORBIDDEN_VERSION_ZERO,
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_FORBIDDEN,
+ XSPF_READER_TEXT_ONE_ELEMENT_FORBIDDEN_VERSION_ZERO,
fullName)) {
return false;
}
@@ -1392,9 +1392,9 @@
if (this->d->firstTrackImage) {
this->d->firstTrackImage = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("image")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("image")))) {
return false;
}
}
@@ -1415,9 +1415,9 @@
if (this->d->firstTrackInfo) {
this->d->firstTrackInfo = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("info")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("info")))) {
return false;
}
}
@@ -1500,9 +1500,9 @@
if (this->d->firstTrackTitle) {
this->d->firstTrackTitle = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("title")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("title")))) {
return false;
}
}
@@ -1523,9 +1523,9 @@
if (this->d->firstTrackTrackNum) {
this->d->firstTrackTrackNum = false;
} else {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_TOOMANY,
- SPIFF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
- SPIFF_NS_HOME, _PT("trackNum")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_TOOMANY,
+ XSPF_READER_TEXT_ZERO_TOO_MANY_ELEMENTS(
+ XSPF_NS_HOME, _PT("trackNum")))) {
return false;
}
}
@@ -1543,8 +1543,8 @@
}
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_FORBIDDEN,
- SPIFF_READER_TEXT_ONE_ELEMENT_FORBIDDEN,
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_FORBIDDEN,
+ XSPF_READER_TEXT_ONE_ELEMENT_FORBIDDEN,
fullName)) {
return false;
}
@@ -1583,8 +1583,8 @@
break;
case 5:
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_FORBIDDEN,
- SPIFF_READER_TEXT_ONE_ELEMENT_FORBIDDEN,
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_FORBIDDEN,
+ XSPF_READER_TEXT_ONE_ELEMENT_FORBIDDEN,
fullName)) {
res = false;
} else {
@@ -1611,9 +1611,9 @@
bool SpiffReader::handleEndOne(XML_Char const * /*fullName*/) {
if (this->d->firstPlaylistTrackList) {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_MISSING,
- SPIFF_READER_TEXT_ZERO_ELEMENT_MISSING(
- SPIFF_NS_HOME, _PT("trackList")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_MISSING,
+ XSPF_READER_TEXT_ZERO_ELEMENT_MISSING(
+ XSPF_NS_HOME, _PT("trackList")))) {
return false;
}
}
@@ -1669,9 +1669,9 @@
SpiffDateTime * const dateTime = new SpiffDateTime;
if (!SpiffDateTime::extractDateTime(finalAccum, dateTime)) {
delete dateTime;
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("date"), _PT("dateTime")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("date"), _PT("dateTime")))) {
return false;
}
} else {
@@ -1685,9 +1685,9 @@
*/
case TAG_PLAYLIST_IDENTIFIER:
if (!Toolbox::isUri(finalAccum)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("identifier"), _PT("URI")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("identifier"), _PT("URI")))) {
return false;
}
} else {
@@ -1697,9 +1697,9 @@
case TAG_PLAYLIST_IMAGE:
if (!Toolbox::isUri(finalAccum)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("image"), _PT("URI")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("image"), _PT("URI")))) {
return false;
}
} else {
@@ -1709,9 +1709,9 @@
case TAG_PLAYLIST_INFO:
if (!Toolbox::isUri(finalAccum)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("info"), _PT("URI")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("info"), _PT("URI")))) {
return false;
}
} else {
@@ -1721,9 +1721,9 @@
case TAG_PLAYLIST_LICENSE:
if (!Toolbox::isUri(finalAccum)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("license"), _PT("URI")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("license"), _PT("URI")))) {
return false;
}
} else {
@@ -1733,9 +1733,9 @@
case TAG_PLAYLIST_LINK:
if (!Toolbox::isUri(finalAccum)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("link"), _PT("URI")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("link"), _PT("URI")))) {
return false;
}
} else {
@@ -1747,9 +1747,9 @@
case TAG_PLAYLIST_LOCATION:
if (!Toolbox::isUri(finalAccum)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("location"), _PT("URI")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("location"), _PT("URI")))) {
return false;
}
} else {
@@ -1771,9 +1771,9 @@
case TAG_PLAYLIST_TRACKLIST:
// Check if empty for v0
if ((this->d->version == 0) && (this->d->firstTrack)) {
- if (!handleError(SPIFF_READER_ERROR_ELEMENT_MISSING,
- SPIFF_READER_TEXT_ZERO_ELEMENT_MISSING_VERSION_ZERO(
- SPIFF_NS_HOME, _PT("track")))) {
+ if (!handleError(XSPF_READER_ERROR_ELEMENT_MISSING,
+ XSPF_READER_TEXT_ZERO_ELEMENT_MISSING_VERSION_ZERO(
+ XSPF_NS_HOME, _PT("track")))) {
return false;
}
}
@@ -1808,9 +1808,9 @@
switch (stackTop) {
case TAG_PLAYLIST_ATTRIBUTION_IDENTIFIER:
if (!Toolbox::isUri(finalAccum)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("identifier"), _PT("URI")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("identifier"), _PT("URI")))) {
return false;
}
} else {
@@ -1820,9 +1820,9 @@
case TAG_PLAYLIST_ATTRIBUTION_LOCATION:
if (!Toolbox::isUri(finalAccum)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("location"), _PT("URI")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("location"), _PT("URI")))) {
return false;
}
} else {
@@ -1893,9 +1893,9 @@
case TAG_PLAYLIST_TRACKLIST_TRACK_DURATION:
int duration;
if (!Toolbox::extractInteger(finalAccum, 0, &duration)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("duration"),
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("duration"),
_PT("unsigned integer")))) {
return false;
}
@@ -1909,9 +1909,9 @@
*/
case TAG_PLAYLIST_TRACKLIST_TRACK_IDENTIFIER:
if (!Toolbox::isUri(finalAccum)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("identifier"), _PT("URI")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("identifier"), _PT("URI")))) {
return false;
}
} else {
@@ -1922,9 +1922,9 @@
case TAG_PLAYLIST_TRACKLIST_TRACK_IMAGE:
if (!Toolbox::isUri(finalAccum)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("image"), _PT("URI")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("image"), _PT("URI")))) {
return false;
}
} else {
@@ -1934,9 +1934,9 @@
case TAG_PLAYLIST_TRACKLIST_TRACK_INFO:
if (!Toolbox::isUri(finalAccum)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("info"), _PT("URI")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("info"), _PT("URI")))) {
return false;
}
} else {
@@ -1946,9 +1946,9 @@
case TAG_PLAYLIST_TRACKLIST_TRACK_LINK:
if (!Toolbox::isUri(finalAccum)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("link"), _PT("URI")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("link"), _PT("URI")))) {
return false;
}
} else {
@@ -1960,9 +1960,9 @@
case TAG_PLAYLIST_TRACKLIST_TRACK_LOCATION:
if (!Toolbox::isUri(finalAccum)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("location"), _PT("URI")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("location"), _PT("URI")))) {
return false;
}
} else {
@@ -1982,9 +1982,9 @@
case TAG_PLAYLIST_TRACKLIST_TRACK_TRACKNUM:
int trackNum;
if (!Toolbox::extractInteger(finalAccum, 1, &trackNum)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
- SPIFF_NS_HOME, _PT("trackNum"),
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_CONTENT_TYPE(
+ XSPF_NS_HOME, _PT("trackNum"),
_PT("unsigned integer greater zero")))) {
return false;
}
@@ -2113,9 +2113,9 @@
case 1:
// Must be all whitespace at root
if (!Toolbox::isWhiteSpace(s, len)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_TEXT_FORBIDDEN(
- SPIFF_NS_HOME, _PT("playlist")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_TEXT_FORBIDDEN(
+ XSPF_NS_HOME, _PT("playlist")))) {
stop();
return;
}
@@ -2127,9 +2127,9 @@
case TAG_PLAYLIST_TRACKLIST:
// Must be all whitespace
if (!Toolbox::isWhiteSpace(s, len)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_TEXT_FORBIDDEN(
- SPIFF_NS_HOME, _PT("trackList")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_TEXT_FORBIDDEN(
+ XSPF_NS_HOME, _PT("trackList")))) {
stop();
return;
}
@@ -2139,9 +2139,9 @@
case TAG_PLAYLIST_ATTRIBUTION:
// Must be all whitespace
if (!Toolbox::isWhiteSpace(s, len)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_TEXT_FORBIDDEN(
- SPIFF_NS_HOME, _PT("attribution")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_TEXT_FORBIDDEN(
+ XSPF_NS_HOME, _PT("attribution")))) {
stop();
return;
}
@@ -2160,9 +2160,9 @@
case TAG_PLAYLIST_TRACKLIST_TRACK:
// Must be all whitespace
if (!Toolbox::isWhiteSpace(s, len)) {
- if (!handleError(SPIFF_READER_ERROR_CONTENT_INVALID,
- SPIFF_READER_TEXT_ZERO_TEXT_FORBIDDEN(
- SPIFF_NS_HOME, _PT("track")))) {
+ if (!handleError(XSPF_READER_ERROR_CONTENT_INVALID,
+ XSPF_READER_TEXT_ZERO_TEXT_FORBIDDEN(
+ XSPF_NS_HOME, _PT("track")))) {
stop();
return;
}
@@ -2223,15 +2223,15 @@
this->d->entityNameToValueLen.insert(PairType(entityName, info));
if (this->d->limitLengthPerEntityValue && (valueLen > this->d->maxLengthPerEntity)) {
- handleFatalError(SPIFF_READER_ERROR_MALICIOUS_SPACE,
+ handleFatalError(XSPF_READER_ERROR_MALICIOUS_SPACE,
_PT("Input considered harmful: Entity taking too much space"));
stop();
} else if (this->d->limitLookupSumPerEntityValue && (lookupSum > this->d->maxTotalLookupsPerEntity)) {
- handleFatalError(SPIFF_READER_ERROR_MALICIOUS_LOOKUP_SUM,
+ handleFatalError(XSPF_READER_ERROR_MALICIOUS_LOOKUP_SUM,
_PT("Input considered harmful: Entity requiring too many lookups"));
stop();
} else if (this->d->limitLookupDepthPerEntityValue && (lookupDepth > this->d->maxLookupDepthPerEntity)) {
- handleFatalError(SPIFF_READER_ERROR_MALICIOUS_LOOKUP_DEPTH,
+ handleFatalError(XSPF_READER_ERROR_MALICIOUS_LOOKUP_DEPTH,
_PT("Input considered harmful: Entity requiring too deep lookup"));
stop();
}
@@ -2256,8 +2256,8 @@
int dummyVersion;
if (!Toolbox::extractInteger(atts[i + 1], 0, &dummyVersion)
|| (dummyVersion > 1)) {
- if (!handleError(SPIFF_READER_ERROR_ATTRIBUTE_INVALID,
- SPIFF_READER_TEXT_ONE_WRONG_VERSION,
+ if (!handleError(XSPF_READER_ERROR_ATTRIBUTE_INVALID,
+ XSPF_READER_TEXT_ONE_WRONG_VERSION,
atts[i + 1])) {
return false;
}
@@ -2273,16 +2273,16 @@
}
} else {
// Forbidden attribute
- if (!handleError(SPIFF_READER_ERROR_ATTRIBUTE_FORBIDDEN,
- SPIFF_READER_TEXT_ONE_ATTRIBUTE_FORBIDDEN, atts[i])) {
+ if (!handleError(XSPF_READER_ERROR_ATTRIBUTE_FORBIDDEN,
+ XSPF_READER_TEXT_ONE_ATTRIBUTE_FORBIDDEN, atts[i])) {
return false;
}
}
}
if (!versionFound) {
- if (!handleError(SPIFF_READER_ERROR_ATTRIBUTE_MISSING,
- SPIFF_READER_TEXT_ZERO_ATTRIBUTE_MISSING(
+ if (!handleError(XSPF_READER_ERROR_ATTRIBUTE_MISSING,
+ XSPF_READER_TEXT_ZERO_ATTRIBUTE_MISSING(
_PT("version")))) {
return false;
}
@@ -2335,18 +2335,18 @@
// Extra checks
if (!Toolbox::isAbsoluteUri(atts[1])) {
- if (!handleWarning(SPIFF_READER_WARNING_KEY_WITH_REL_URI, SPIFF_READER_TEXT_ZERO_KEY_WITH_REL_URI(_PT("rel")))) {
+ if (!handleWarning(XSPF_READER_WARNING_KEY_WITH_REL_URI, XSPF_READER_TEXT_ZERO_KEY_WITH_REL_URI(_PT("rel")))) {
return false;
}
}
if (!containsVersion(atts[1])) {
- if (!handleWarning(SPIFF_READER_WARNING_KEY_WITHOUT_VERSION, SPIFF_READER_TEXT_ZERO_KEY_WITHOUT_VERSION(_PT("rel")))) {
+ if (!handleWarning(XSPF_READER_WARNING_KEY_WITHOUT_VERSION, XSPF_READER_TEXT_ZERO_KEY_WITHOUT_VERSION(_PT("rel")))) {
return false;
}
}
} else {
- if (!handleError(SPIFF_READER_ERROR_ATTRIBUTE_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_ATTRIBUTE_TYPE(
+ if (!handleError(XSPF_READER_ERROR_ATTRIBUTE_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_ATTRIBUTE_TYPE(
_PT("rel"), _PT("URI")))) {
return false;
}
@@ -2358,16 +2358,16 @@
return false;
}
} else {
- if (!handleError(SPIFF_READER_ERROR_ATTRIBUTE_FORBIDDEN,
- SPIFF_READER_TEXT_ONE_ATTRIBUTE_FORBIDDEN, atts[0])) {
+ if (!handleError(XSPF_READER_ERROR_ATTRIBUTE_FORBIDDEN,
+ XSPF_READER_TEXT_ONE_ATTRIBUTE_FORBIDDEN, atts[0])) {
return false;
}
}
}
if (rel == NULL) {
- if (!handleError(SPIFF_READER_ERROR_ATTRIBUTE_MISSING,
- SPIFF_READER_TEXT_ZERO_ATTRIBUTE_MISSING(_PT("rel")))) {
+ if (!handleError(XSPF_READER_ERROR_ATTRIBUTE_MISSING,
+ XSPF_READER_TEXT_ZERO_ATTRIBUTE_MISSING(_PT("rel")))) {
return false;
}
}
@@ -2386,8 +2386,8 @@
if (Toolbox::isUri(atts[1])) {
application = atts[1];
} else {
- if (!handleError(SPIFF_READER_ERROR_ATTRIBUTE_INVALID,
- SPIFF_READER_TEXT_ZERO_WRONG_ATTRIBUTE_TYPE(
+ if (!handleError(XSPF_READER_ERROR_ATTRIBUTE_INVALID,
+ XSPF_READER_TEXT_ZERO_WRONG_ATTRIBUTE_TYPE(
_PT("application"), _PT("URI")))) {
return false;
}
@@ -2399,8 +2399,8 @@
return false;
}
} else {
- if (!handleError(SPIFF_READER_ERROR_ATTRIBUTE_FORBIDDEN,
- SPIFF_READER_TEXT_ONE_ATTRIBUTE_FORBIDDEN,
+ if (!handleError(XSPF_READER_ERROR_ATTRIBUTE_FORBIDDEN,
+ XSPF_READER_TEXT_ONE_ATTRIBUTE_FORBIDDEN,
atts[0])) {
return false;
}
@@ -2408,8 +2408,8 @@
}
if (application == NULL) {
- if (!handleError(SPIFF_READER_ERROR_ATTRIBUTE_MISSING,
- SPIFF_READER_TEXT_ZERO_ATTRIBUTE_MISSING(
+ if (!handleError(XSPF_READER_ERROR_ATTRIBUTE_MISSING,
+ XSPF_READER_TEXT_ZERO_ATTRIBUTE_MISSING(
_PT("application")))) {
return false;
}
@@ -2429,8 +2429,8 @@
return false;
}
} else {
- if (!handleError(SPIFF_READER_ERROR_ATTRIBUTE_FORBIDDEN,
- SPIFF_READER_TEXT_ONE_ATTRIBUTE_FORBIDDEN,
+ if (!handleError(XSPF_READER_ERROR_ATTRIBUTE_FORBIDDEN,
+ XSPF_READER_TEXT_ONE_ATTRIBUTE_FORBIDDEN,
atts[0])) {
return false;
}
@@ -2538,7 +2538,7 @@
void SpiffReader::clearError() {
- this->d->errorCode = SPIFF_READER_SUCCESS;
+ this->d->errorCode = XSPF_READER_SUCCESS;
}
Modified: trunk/src/XspfSkipExtensionReader.h
===================================================================
--- trunk/src/XspfSkipExtensionReader.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/src/XspfSkipExtensionReader.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffSkipExtensionReader.
*/
-#ifndef SPIFF_SKIP_EXTENSION_HANDLER_H
-#define SPIFF_SKIP_EXTENSION_HANDLER_H
+#ifndef XSPF_SKIP_EXTENSION_HANDLER_H
+#define XSPF_SKIP_EXTENSION_HANDLER_H
#include <spiff/SpiffExtensionReader.h>
@@ -104,4 +104,4 @@
} // namespace Spiff
-#endif // SPIFF_SKIP_EXTENSION_HANDLER_H
+#endif // XSPF_SKIP_EXTENSION_HANDLER_H
Modified: trunk/src/XspfStrictReaderCallback.h
===================================================================
--- trunk/src/XspfStrictReaderCallback.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/src/XspfStrictReaderCallback.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffStrictReaderCallback.
*/
-#ifndef SPIFF_STRICT_READER_CALLBACK_H
-#define SPIFF_STRICT_READER_CALLBACK_H
+#ifndef XSPF_STRICT_READER_CALLBACK_H
+#define XSPF_STRICT_READER_CALLBACK_H
#include <spiff/SpiffReaderCallback.h>
@@ -76,4 +76,4 @@
} // namespace Spiff
-#endif // SPIFF_STRICT_READER_CALLBACK_H
+#endif // XSPF_STRICT_READER_CALLBACK_H
Modified: trunk/src/XspfToolbox.cpp
===================================================================
--- trunk/src/XspfToolbox.cpp 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/src/XspfToolbox.cpp 2009-02-17 21:08:45 UTC (rev 515)
@@ -164,7 +164,7 @@
}
-#ifndef SPIFF_DOXYGEN
+#ifndef XSPF_DOXYGEN
#ifdef UNICODE
# define UriParserState UriParserStateW
@@ -186,7 +186,7 @@
# define uriRemoveBaseUri uriRemoveBaseUriA
#endif // ifdef UNICODE
-#endif // ifndef SPIFF_DOXYGEN
+#endif // ifndef XSPF_DOXYGEN
namespace {
Modified: trunk/src/XspfTrackWriter.h
===================================================================
--- trunk/src/XspfTrackWriter.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/src/XspfTrackWriter.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -43,8 +43,8 @@
* Interface of SpiffTrackWriter.
*/
-#ifndef SPIFF_TRACK_WRITER_H
-#define SPIFF_TRACK_WRITER_H
+#ifndef XSPF_TRACK_WRITER_H
+#define XSPF_TRACK_WRITER_H
#include "SpiffDataWriter.h"
@@ -159,4 +159,4 @@
}
-#endif // SPIFF_TRACK_WRITER_H
+#endif // XSPF_TRACK_WRITER_H
Modified: trunk/src/XspfWriter.cpp
===================================================================
--- trunk/src/XspfWriter.cpp 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/src/XspfWriter.cpp 2009-02-17 21:08:45 UTC (rev 515)
@@ -157,14 +157,14 @@
// Check base URI
if ((baseUri != NULL) && !Toolbox::isAbsoluteUri(baseUri)) {
if (errorCode != NULL) {
- *errorCode = SPIFF_WRITER_ERROR_BASE_URI_USELESS;
+ *errorCode = XSPF_WRITER_ERROR_BASE_URI_USELESS;
}
return NULL;
}
// Create
if (errorCode != NULL) {
- *errorCode = SPIFF_WRITER_SUCCESS;
+ *errorCode = XSPF_WRITER_SUCCESS;
}
return new SpiffWriter(formatter, baseUri, embedBase);
}
@@ -286,7 +286,7 @@
FILE * const file = ::PORT_FOPEN(filename, _PT("wb"));
if (file == NULL) {
// TODO
- return SPIFF_WRITER_ERROR_OPENING;
+ return XSPF_WRITER_ERROR_OPENING;
}
onBeforeWrite();
@@ -309,7 +309,7 @@
#endif
::fclose(file);
- return SPIFF_WRITER_SUCCESS;
+ return XSPF_WRITER_SUCCESS;
}
@@ -332,7 +332,7 @@
memory[rawFinalLen] = '\0';
numBytes = rawFinalLen;
#endif
- return SPIFF_WRITER_SUCCESS;
+ return XSPF_WRITER_SUCCESS;
}
Modified: trunk/src/XspfXmlFormatter.cpp
===================================================================
--- trunk/src/XspfXmlFormatter.cpp 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/src/XspfXmlFormatter.cpp 2009-02-17 21:08:45 UTC (rev 515)
@@ -54,7 +54,7 @@
/*static*/ XML_Char const * const SpiffXmlFormatter::namespaceKey
- = SPIFF_NS_HOME;
+ = XSPF_NS_HOME;
/// @cond DOXYGEN_NON_API
Modified: trunk/test/ChunkCallbackSuite.cpp
===================================================================
--- trunk/test/ChunkCallbackSuite.cpp 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/test/ChunkCallbackSuite.cpp 2009-02-17 21:08:45 UTC (rev 515)
@@ -50,7 +50,7 @@
SpiffReader reader;
int const res = reader.parseChunks(this, NULL, _PT("http://www.example.org/"));
TEST_ASSERT(res == this->expextedRes);
- if (this->expextedRes == SPIFF_READER_SUCCESS) {
+ if (this->expextedRes == XSPF_READER_SUCCESS) {
TEST_ASSERT(this->curLine == this->numLines);
} else {
TEST_ASSERT((this->curLine - 1) == this->errorLine);
@@ -69,7 +69,7 @@
_PT("<playlist version=\"1\" xmlns=\"http://xspf.org/ns/0/\">\n")
_PT("\t<trackList />\n")
_PT("</playlist>\n");
- reset(validLines, 1, SPIFF_READER_SUCCESS);
+ reset(validLines, 1, XSPF_READER_SUCCESS);
run();
delete [] validLines;
}
@@ -85,7 +85,7 @@
validLines[1] = _PT("<playlist version=\"1\" xmlns=\"http://xspf.org/ns/0/\">\n");
validLines[2] = _PT("\t<trackList />\n");
validLines[3] = _PT("</playlist>\n");
- reset(validLines, 4, SPIFF_READER_SUCCESS);
+ reset(validLines, 4, XSPF_READER_SUCCESS);
run();
delete [] validLines;
}
@@ -101,7 +101,7 @@
invalidLines[1] = _PT("<playlist version=\"1\" xmlns=\"http://xspf.org/ns/0/\">\n");
invalidLines[2] = _PT("\t<FORBIDDEN />\n");
invalidLines[3] = _PT("</playlist>\n");
- reset(invalidLines, 4, SPIFF_READER_ERROR_ELEMENT_FORBIDDEN, 2);
+ reset(invalidLines, 4, XSPF_READER_ERROR_ELEMENT_FORBIDDEN, 2);
run();
delete [] invalidLines;
}
@@ -128,7 +128,7 @@
validLines[12] = _PT("f.org/ns/0/\">");
validLines[13] = _PT("\n\t<trackList />");
validLines[14] = _PT("\n</playlist>\n");
- reset(validLines, 15, SPIFF_READER_SUCCESS);
+ reset(validLines, 15, XSPF_READER_SUCCESS);
run();
delete [] validLines;
}
Modified: trunk/test/ChunkCallbackSuite.h
===================================================================
--- trunk/test/ChunkCallbackSuite.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/test/ChunkCallbackSuite.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -21,8 +21,8 @@
* Sebastian Pipping, sping at xiph.org
*/
-#ifndef SPIFF_TEST_CHUNK_CALLBACK_SUITE_H
-#define SPIFF_TEST_CHUNK_CALLBACK_SUITE_H 1
+#ifndef XSPF_TEST_CHUNK_CALLBACK_SUITE_H
+#define XSPF_TEST_CHUNK_CALLBACK_SUITE_H 1
#include "CppTest/cpptest.h"
@@ -62,4 +62,4 @@
};
-#endif // SPIFF_TEST_CHUNK_CALLBACK_SUITE_H
+#endif // XSPF_TEST_CHUNK_CALLBACK_SUITE_H
Modified: trunk/test/DateTimeSuite.h
===================================================================
--- trunk/test/DateTimeSuite.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/test/DateTimeSuite.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -21,8 +21,8 @@
* Sebastian Pipping, sping at xiph.org
*/
-#ifndef SPIFF_TEST_DATE_TIME_SUITE_H
-#define SPIFF_TEST_DATE_TIME_SUITE_H 1
+#ifndef XSPF_TEST_DATE_TIME_SUITE_H
+#define XSPF_TEST_DATE_TIME_SUITE_H 1
#include "CppTest/cpptest.h"
@@ -89,4 +89,4 @@
};
-#endif // SPIFF_TEST_DATE_TIME_SUITE_H
+#endif // XSPF_TEST_DATE_TIME_SUITE_H
Modified: trunk/test/ExtensionReaderFactorySuite.h
===================================================================
--- trunk/test/ExtensionReaderFactorySuite.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/test/ExtensionReaderFactorySuite.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -21,8 +21,8 @@
* Sebastian Pipping, sping at xiph.org
*/
-#ifndef SPIFF_TEST_EXTENSION_READER_FACTORY_SUITE_H
-#define SPIFF_TEST_EXTENSION_READER_FACTORY_SUITE_H 1
+#ifndef XSPF_TEST_EXTENSION_READER_FACTORY_SUITE_H
+#define XSPF_TEST_EXTENSION_READER_FACTORY_SUITE_H 1
#include "CppTest/cpptest.h"
@@ -42,4 +42,4 @@
};
-#endif // SPIFF_TEST_EXTENSION_READER_FACTORY_SUITE_H
+#endif // XSPF_TEST_EXTENSION_READER_FACTORY_SUITE_H
Modified: trunk/test/MaliciousXmlSuite.cpp
===================================================================
--- trunk/test/MaliciousXmlSuite.cpp 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/test/MaliciousXmlSuite.cpp 2009-02-17 21:08:45 UTC (rev 515)
@@ -61,19 +61,19 @@
// Disabled by default
res = reader.parseMemory(document, static_cast<int>(::strlen(document)),
NULL, _PT("http://example.org/"));
- TEST_ASSERT(res == SPIFF_READER_SUCCESS);
+ TEST_ASSERT(res == XSPF_READER_SUCCESS);
// Enabled manually
reader.limitLookupDepthPerEntityValue(true);
res = reader.parseMemory(document, static_cast<int>(::strlen(document)),
NULL, _PT("http://example.org/"));
- TEST_ASSERT(res == SPIFF_READER_ERROR_MALICIOUS_LOOKUP_DEPTH);
+ TEST_ASSERT(res == XSPF_READER_ERROR_MALICIOUS_LOOKUP_DEPTH);
// Disabled manually
reader.limitLookupDepthPerEntityValue(false);
res = reader.parseMemory(document, static_cast<int>(::strlen(document)),
NULL, _PT("http://example.org/"));
- TEST_ASSERT(res == SPIFF_READER_SUCCESS);
+ TEST_ASSERT(res == XSPF_READER_SUCCESS);
}
@@ -98,13 +98,13 @@
reader.setMaxLengthPerEntityValue(19);
res = reader.parseMemory(document, static_cast<int>(::strlen(document)),
NULL, _PT("http://example.org/"));
- TEST_ASSERT(res == SPIFF_READER_ERROR_MALICIOUS_SPACE);
+ TEST_ASSERT(res == XSPF_READER_ERROR_MALICIOUS_SPACE);
// Limit at minimum
reader.setMaxLengthPerEntityValue(20);
res = reader.parseMemory(document, static_cast<int>(::strlen(document)),
NULL, _PT("http://example.org/"));
- TEST_ASSERT(res == SPIFF_READER_SUCCESS);
+ TEST_ASSERT(res == XSPF_READER_SUCCESS);
}
@@ -130,13 +130,13 @@
reader.setMaxLookupSumPerEntityValue(9);
res = reader.parseMemory(document, static_cast<int>(::strlen(document)),
NULL, _PT("http://example.org/"));
- TEST_ASSERT(res == SPIFF_READER_ERROR_MALICIOUS_LOOKUP_SUM);
+ TEST_ASSERT(res == XSPF_READER_ERROR_MALICIOUS_LOOKUP_SUM);
// Limit at minimum
reader.setMaxLookupSumPerEntityValue(10);
res = reader.parseMemory(document, static_cast<int>(::strlen(document)),
NULL, _PT("http://example.org/"));
- TEST_ASSERT(res == SPIFF_READER_SUCCESS);
+ TEST_ASSERT(res == XSPF_READER_SUCCESS);
}
@@ -163,13 +163,13 @@
reader.setMaxLookupDepthPerEntityValue(2);
res = reader.parseMemory(document, static_cast<int>(::strlen(document)),
NULL, _PT("http://example.org/"));
- TEST_ASSERT(res == SPIFF_READER_ERROR_MALICIOUS_LOOKUP_DEPTH);
+ TEST_ASSERT(res == XSPF_READER_ERROR_MALICIOUS_LOOKUP_DEPTH);
// Limit at minimum
reader.setMaxLookupDepthPerEntityValue(3);
res = reader.parseMemory(document, static_cast<int>(::strlen(document)),
NULL, _PT("http://example.org/"));
- TEST_ASSERT(res == SPIFF_READER_SUCCESS);
+ TEST_ASSERT(res == XSPF_READER_SUCCESS);
}
@@ -183,21 +183,21 @@
reader.limitLengthPerEntityValue(true);
reader.limitLookupSumPerEntityValue(false);
reader.limitLookupDepthPerEntityValue(false);
- expectedRes = SPIFF_READER_ERROR_MALICIOUS_SPACE;
+ expectedRes = XSPF_READER_ERROR_MALICIOUS_SPACE;
break;
case 2:
reader.limitLengthPerEntityValue(false);
reader.limitLookupSumPerEntityValue(true);
reader.limitLookupDepthPerEntityValue(false);
- expectedRes = SPIFF_READER_ERROR_MALICIOUS_LOOKUP_SUM;
+ expectedRes = XSPF_READER_ERROR_MALICIOUS_LOOKUP_SUM;
break;
case 3:
reader.limitLengthPerEntityValue(false);
reader.limitLookupSumPerEntityValue(false);
reader.limitLookupDepthPerEntityValue(true);
- expectedRes = SPIFF_READER_ERROR_MALICIOUS_LOOKUP_DEPTH;
+ expectedRes = XSPF_READER_ERROR_MALICIOUS_LOOKUP_DEPTH;
break;
default:
Modified: trunk/test/MaliciousXmlSuite.h
===================================================================
--- trunk/test/MaliciousXmlSuite.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/test/MaliciousXmlSuite.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -21,8 +21,8 @@
* Sebastian Pipping, sping at xiph.org
*/
-#ifndef SPIFF_TEST_MALICIOUS_XML_SUITE_H
-#define SPIFF_TEST_MALICIOUS_XML_SUITE_H 1
+#ifndef XSPF_TEST_MALICIOUS_XML_SUITE_H
+#define XSPF_TEST_MALICIOUS_XML_SUITE_H 1
#include "CppTest/cpptest.h"
@@ -46,4 +46,4 @@
};
-#endif // SPIFF_TEST_MALICIOUS_XML_SUITE_H
+#endif // XSPF_TEST_MALICIOUS_XML_SUITE_H
Modified: trunk/test/MemoryModelSuite.h
===================================================================
--- trunk/test/MemoryModelSuite.h 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/test/MemoryModelSuite.h 2009-02-17 21:08:45 UTC (rev 515)
@@ -21,8 +21,8 @@
* Sebastian Pipping, sping at xiph.org
*/
-#ifndef SPIFF_TEST_MEMORY_MODEL_SUITE_H
-#define SPIFF_TEST_MEMORY_MODEL_SUITE_H 1
+#ifndef XSPF_TEST_MEMORY_MODEL_SUITE_H
+#define XSPF_TEST_MEMORY_MODEL_SUITE_H 1
#include "CppTest/cpptest.h"
@@ -39,4 +39,4 @@
};
-#endif // SPIFF_TEST_MEMORY_MODEL_SUITE_H
+#endif // XSPF_TEST_MEMORY_MODEL_SUITE_H
Modified: trunk/test/OfficialSuite.cpp
===================================================================
--- trunk/test/OfficialSuite.cpp 2009-02-17 20:56:50 UTC (rev 514)
+++ trunk/test/OfficialSuite.cpp 2009-02-17 21:08:45 UTC (rev 515)
@@ -33,14 +33,14 @@
# define SEP _PT("/")
#endif
-#ifndef SPIFF_SRCDIR
-# define SPIFF_SRCDIR "."
+#ifndef XSPF_SRCDIR
+# define XSPF_SRCDIR "."
#endif
-#define V0_FAIL_PATH _PT(SPIFF_SRCDIR) SEP _PT("test") SEP _PT("for_version_0") SEP _PT("fail") SEP
-#define V0_PASS_PATH _PT(SPIFF_SRCDIR) SEP _PT("test") SEP _PT("for_version_0") SEP _PT("pass") SEP
-#define V1_FAIL_PATH _PT(SPIFF_SRCDIR) SEP _PT("test") SEP _PT("for_version_1") SEP _PT("fail") SEP
-#define V1_PASS_PATH _PT(SPIFF_SRCDIR) SEP _PT("test") SEP _PT("for_version_1") SEP _PT("pass") SEP
+#define V0_FAIL_PATH _PT(XSPF_SRCDIR) SEP _PT("test") SEP _PT("for_version_0") SEP _PT("fail") SEP
+#define V0_PASS_PATH _PT(XSPF_SRCDIR) SEP _PT("test") SEP _PT("for_version_0") SEP _PT("pass") SEP
+#define V1_FAIL_PATH _PT(XSPF_SRCDIR) SEP _PT("test") SEP _PT("for_version_1") SEP _PT("fail") SEP
+#define V1_PASS_PATH _PT(XSPF_SRCDIR) SEP _PT("test") SEP _PT("for_version_1") SEP _PT("pass") SEP
OfficialSuite::OfficialSuite() {
@@ -207,7 +207,7 @@
TEST_ASSERT(strictRes == expectedCode);
if (skippable) {
- if (looseRes != SPIFF_READER_SUCCESS) {
+ if (looseRes != XSPF_READER_SUCCESS) {
PORT_PRINTF(
_PT(" File : %s\n")
_PT(" Line : %i\n")
@@ -216,27 +216,27 @@
_PT(" Expected : %i\n\n"),
filename, looseErrorFisherman.getErrorLine(),
looseErrorFisherman.getErrorText(),
- looseRes, SPIFF_READER_SUCCESS);
+ looseRes, XSPF_READER_SUCCESS);
}
- TEST_ASSERT(looseRes == SPIFF_READER_SUCCESS);
+ TEST_ASSERT(looseRes == XSPF_READER_SUCCESS);
}
}
// version 0 / fail
void OfficialSuite::playlist_extension_forbidden() {
- runCase(V0_FAIL_PATH _PT("playlist-extension-forbidden.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN);
+ runCase(V0_FAIL_PATH _PT("playlist-extension-forbidden.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN);
}
void OfficialSuite::track_extension_forbidden() {
- runCase(V0_FAIL_PATH _PT("track-extension-forbidden.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN);
+ runCase(V0_FAIL_PATH _PT("track-extension-forbidden.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN);
}
void OfficialSuite::tracklist_no_tracks() {
- runCase(V0_FAIL_PATH _PT("tracklist-no-tracks.xspf"), SPIFF_READER_ERROR_ELEMENT_MISSING);
+ runCase(V0_FAIL_PATH _PT("tracklist-no-tracks.xspf"), XSPF_READER_ERROR_ELEMENT_MISSING);
}
@@ -246,472 +246,472 @@
// version 1 / fail
void OfficialSuite::playlist_attribute_forbidden_annotation() {
- runCase(V1_FAIL_PATH _PT("playlist-attribute-forbidden-annotation.xspf"), SPIFF_READER_ERROR_ATTRIBUTE_FORBIDDEN);
+ runCase(V1_FAIL_PATH _PT("playlist-attribute-forbidden-annotation.xspf"), XSPF_READER_ERROR_ATTRIBUTE_FORBIDDEN);
}
void OfficialSuite::playlist_attribute_forbidden_playlist() {
- runCase(V1_FAIL_PATH _PT("playlist-attribute-forbidden-playlist.xspf"), SPIFF_READER_ERROR_ATTRIBUTE_FORBIDDEN);
+ runCase(V1_FAIL_PATH _PT("playlist-attribute-forbidden-playlist.xspf"), XSPF_READER_ERROR_ATTRIBUTE_FORBIDDEN);
}
void OfficialSuite::playlist_baddate() {
- runCase(V1_FAIL_PATH _PT("playlist-baddate.xspf"), SPIFF_READER_ERROR_CONTENT_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-baddate.xspf"), XSPF_READER_ERROR_CONTENT_INVALID);
}
void OfficialSuite::playlist_badversion() {
- runCase(V1_FAIL_PATH _PT("playlist-badversion.xspf"), SPIFF_READER_ERROR_ATTRIBUTE_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-badversion.xspf"), XSPF_READER_ERROR_ATTRIBUTE_INVALID);
}
void OfficialSuite::playlist_element_forbidden_attribution() {
- runCase(V1_FAIL_PATH _PT("playlist-element-forbidden-attribution.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN);
+ runCase(V1_FAIL_PATH _PT("playlist-element-forbidden-attribution.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN);
}
void OfficialSuite::playlist_extension_application_missing() {
- runCase(V1_FAIL_PATH _PT("playlist-extension-application-missing.xspf"), SPIFF_READER_ERROR_ATTRIBUTE_MISSING);
+ runCase(V1_FAIL_PATH _PT("playlist-extension-application-missing.xspf"), XSPF_READER_ERROR_ATTRIBUTE_MISSING);
}
void OfficialSuite::playlist_link_rel_missing() {
- runCase(V1_FAIL_PATH _PT("playlist-link-rel-missing.xspf"), SPIFF_READER_ERROR_ATTRIBUTE_MISSING);
+ runCase(V1_FAIL_PATH _PT("playlist-link-rel-missing.xspf"), XSPF_READER_ERROR_ATTRIBUTE_MISSING);
}
void OfficialSuite::playlist_markup_annotation() {
- runCase(V1_FAIL_PATH _PT("playlist-markup-annotation.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN);
+ runCase(V1_FAIL_PATH _PT("playlist-markup-annotation.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN);
}
void OfficialSuite::playlist_markup_creator() {
- runCase(V1_FAIL_PATH _PT("playlist-markup-creator.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN);
+ runCase(V1_FAIL_PATH _PT("playlist-markup-creator.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN);
}
void OfficialSuite::playlist_markup_meta() {
- runCase(V1_FAIL_PATH _PT("playlist-markup-meta.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN);
+ runCase(V1_FAIL_PATH _PT("playlist-markup-meta.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN);
}
void OfficialSuite::playlist_markup_title() {
- runCase(V1_FAIL_PATH _PT("playlist-markup-title.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN);
+ runCase(V1_FAIL_PATH _PT("playlist-markup-title.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN);
}
void OfficialSuite::playlist_meta_rel_missing() {
- runCase(V1_FAIL_PATH _PT("playlist-meta-rel-missing.xspf"), SPIFF_READER_ERROR_ATTRIBUTE_MISSING);
+ runCase(V1_FAIL_PATH _PT("playlist-meta-rel-missing.xspf"), XSPF_READER_ERROR_ATTRIBUTE_MISSING);
}
void OfficialSuite::playlist_missingtracklist() {
- runCase(V1_FAIL_PATH _PT("playlist-missingtracklist.xspf"), SPIFF_READER_ERROR_ELEMENT_MISSING);
+ runCase(V1_FAIL_PATH _PT("playlist-missingtracklist.xspf"), XSPF_READER_ERROR_ELEMENT_MISSING);
}
void OfficialSuite::playlist_missingversion() {
- runCase(V1_FAIL_PATH _PT("playlist-missingversion.xspf"), SPIFF_READER_ERROR_ATTRIBUTE_MISSING);
+ runCase(V1_FAIL_PATH _PT("playlist-missingversion.xspf"), XSPF_READER_ERROR_ATTRIBUTE_MISSING);
}
void OfficialSuite::playlist_namespace_missing() {
- runCase(V1_FAIL_PATH _PT("playlist-namespace-missing.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN);
+ runCase(V1_FAIL_PATH _PT("playlist-namespace-missing.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN);
}
void OfficialSuite::playlist_namespace_nested_broken() {
- runCase(V1_FAIL_PATH _PT("playlist-namespace-nested-broken.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN);
+ runCase(V1_FAIL_PATH _PT("playlist-namespace-nested-broken.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN);
}
void OfficialSuite::playlist_namespace_wrong_string() {
- runCase(V1_FAIL_PATH _PT("playlist-namespace-wrong-string.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN, false);
+ runCase(V1_FAIL_PATH _PT("playlist-namespace-wrong-string.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN, false);
}
void OfficialSuite::playlist_nonleaf_content_attribution() {
- runCase(V1_FAIL_PATH _PT("playlist-nonleaf-content-attribution.xspf"), SPIFF_READER_ERROR_CONTENT_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-nonleaf-content-attribution.xspf"), XSPF_READER_ERROR_CONTENT_INVALID);
}
void OfficialSuite::playlist_nonleaf_content_playlist() {
- runCase(V1_FAIL_PATH _PT("playlist-nonleaf-content-playlist.xspf"), SPIFF_READER_ERROR_CONTENT_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-nonleaf-content-playlist.xspf"), XSPF_READER_ERROR_CONTENT_INVALID);
}
void OfficialSuite::playlist_nonleaf_content_trackList() {
- runCase(V1_FAIL_PATH _PT("playlist-nonleaf-content-trackList.xspf"), SPIFF_READER_ERROR_CONTENT_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-nonleaf-content-trackList.xspf"), XSPF_READER_ERROR_CONTENT_INVALID);
}
void OfficialSuite::playlist_noturi_attribution_identifier() {
- runCase(V1_FAIL_PATH _PT("playlist-noturi-attribution-identifier.xspf"), SPIFF_READER_ERROR_CONTENT_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-noturi-attribution-identifier.xspf"), XSPF_READER_ERROR_CONTENT_INVALID);
}
void OfficialSuite::playlist_noturi_attribution_location() {
- runCase(V1_FAIL_PATH _PT("playlist-noturi-attribution-location.xspf"), SPIFF_READER_ERROR_CONTENT_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-noturi-attribution-location.xspf"), XSPF_READER_ERROR_CONTENT_INVALID);
}
void OfficialSuite::playlist_noturi_extension() {
- runCase(V1_FAIL_PATH _PT("playlist-noturi-extension.xspf"), SPIFF_READER_ERROR_ATTRIBUTE_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-noturi-extension.xspf"), XSPF_READER_ERROR_ATTRIBUTE_INVALID);
}
void OfficialSuite::playlist_noturi_identifier() {
- runCase(V1_FAIL_PATH _PT("playlist-noturi-identifier.xspf"), SPIFF_READER_ERROR_CONTENT_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-noturi-identifier.xspf"), XSPF_READER_ERROR_CONTENT_INVALID);
}
void OfficialSuite::playlist_noturi_image() {
- runCase(V1_FAIL_PATH _PT("playlist-noturi-image.xspf"), SPIFF_READER_ERROR_CONTENT_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-noturi-image.xspf"), XSPF_READER_ERROR_CONTENT_INVALID);
}
void OfficialSuite::playlist_noturi_info() {
- runCase(V1_FAIL_PATH _PT("playlist-noturi-info.xspf"), SPIFF_READER_ERROR_CONTENT_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-noturi-info.xspf"), XSPF_READER_ERROR_CONTENT_INVALID);
}
void OfficialSuite::playlist_noturi_license() {
- runCase(V1_FAIL_PATH _PT("playlist-noturi-license.xspf"), SPIFF_READER_ERROR_CONTENT_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-noturi-license.xspf"), XSPF_READER_ERROR_CONTENT_INVALID);
}
void OfficialSuite::playlist_noturi_link_content() {
- runCase(V1_FAIL_PATH _PT("playlist-noturi-link-content.xspf"), SPIFF_READER_ERROR_CONTENT_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-noturi-link-content.xspf"), XSPF_READER_ERROR_CONTENT_INVALID);
}
void OfficialSuite::playlist_noturi_link_rel() {
- runCase(V1_FAIL_PATH _PT("playlist-noturi-link-rel.xspf"), SPIFF_READER_ERROR_ATTRIBUTE_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-noturi-link-rel.xspf"), XSPF_READER_ERROR_ATTRIBUTE_INVALID);
}
void OfficialSuite::playlist_noturi_location() {
- runCase(V1_FAIL_PATH _PT("playlist-noturi-location.xspf"), SPIFF_READER_ERROR_CONTENT_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-noturi-location.xspf"), XSPF_READER_ERROR_CONTENT_INVALID);
}
void OfficialSuite::playlist_noturi_meta() {
- runCase(V1_FAIL_PATH _PT("playlist-noturi-meta.xspf"), SPIFF_READER_ERROR_ATTRIBUTE_INVALID);
+ runCase(V1_FAIL_PATH _PT("playlist-noturi-meta.xspf"), XSPF_READER_ERROR_ATTRIBUTE_INVALID);
}
void OfficialSuite::playlist_root_name() {
- runCase(V1_FAIL_PATH _PT("playlist-root-name.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN);
+ runCase(V1_FAIL_PATH _PT("playlist-root-name.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN);
}
void OfficialSuite::playlist_toomany_annotation() {
- runCase(V1_FAIL_PATH _PT("playlist-toomany-annotation.xspf"), SPIFF_READER_ERROR_ELEMENT_TOOMANY);
+ runCase(V1_FAIL_PATH _PT("playlist-toomany-annotation.xspf"), XSPF_READER_ERROR_ELEMENT_TOOMANY);
}
void OfficialSuite::playlist_toomany_attribution() {
- runCase(V1_FAIL_PATH _PT("playlist-toomany-attribution.xspf"), SPIFF_READER_ERROR_ELEMENT_TOOMANY);
+ runCase(V1_FAIL_PATH _PT("playlist-toomany-attribution.xspf"), XSPF_READER_ERROR_ELEMENT_TOOMANY);
}
void OfficialSuite::playlist_toomany_creator() {
- runCase(V1_FAIL_PATH _PT("playlist-toomany-creator.xspf"), SPIFF_READER_ERROR_ELEMENT_TOOMANY);
+ runCase(V1_FAIL_PATH _PT("playlist-toomany-creator.xspf"), XSPF_READER_ERROR_ELEMENT_TOOMANY);
}
void OfficialSuite::playlist_toomany_date() {
- runCase(V1_FAIL_PATH _PT("playlist-toomany-date.xspf"), SPIFF_READER_ERROR_ELEMENT_TOOMANY);
+ runCase(V1_FAIL_PATH _PT("playlist-toomany-date.xspf"), XSPF_READER_ERROR_ELEMENT_TOOMANY);
}
void OfficialSuite::playlist_toomany_identifier() {
- runCase(V1_FAIL_PATH _PT("playlist-toomany-identifier.xspf"), SPIFF_READER_ERROR_ELEMENT_TOOMANY);
+ runCase(V1_FAIL_PATH _PT("playlist-toomany-identifier.xspf"), XSPF_READER_ERROR_ELEMENT_TOOMANY);
}
void OfficialSuite::playlist_toomany_image() {
- runCase(V1_FAIL_PATH _PT("playlist-toomany-image.xspf"), SPIFF_READER_ERROR_ELEMENT_TOOMANY);
+ runCase(V1_FAIL_PATH _PT("playlist-toomany-image.xspf"), XSPF_READER_ERROR_ELEMENT_TOOMANY);
}
void OfficialSuite::playlist_toomany_info() {
- runCase(V1_FAIL_PATH _PT("playlist-toomany-info.xspf"), SPIFF_READER_ERROR_ELEMENT_TOOMANY);
+ runCase(V1_FAIL_PATH _PT("playlist-toomany-info.xspf"), XSPF_READER_ERROR_ELEMENT_TOOMANY);
}
void OfficialSuite::playlist_toomany_license() {
- runCase(V1_FAIL_PATH _PT("playlist-toomany-license.xspf"), SPIFF_READER_ERROR_ELEMENT_TOOMANY);
+ runCase(V1_FAIL_PATH _PT("playlist-toomany-license.xspf"), XSPF_READER_ERROR_ELEMENT_TOOMANY);
}
void OfficialSuite::playlist_toomany_location() {
- runCase(V1_FAIL_PATH _PT("playlist-toomany-location.xspf"), SPIFF_READER_ERROR_ELEMENT_TOOMANY);
+ runCase(V1_FAIL_PATH _PT("playlist-toomany-location.xspf"), XSPF_READER_ERROR_ELEMENT_TOOMANY);
}
void OfficialSuite::playlist_toomany_title() {
- runCase(V1_FAIL_PATH _PT("playlist-toomany-title.xspf"), SPIFF_READER_ERROR_ELEMENT_TOOMANY);
+ runCase(V1_FAIL_PATH _PT("playlist-toomany-title.xspf"), XSPF_READER_ERROR_ELEMENT_TOOMANY);
}
void OfficialSuite::playlist_toomany_tracklist() {
- runCase(V1_FAIL_PATH _PT("playlist-toomany-tracklist.xspf"), SPIFF_READER_ERROR_ELEMENT_TOOMANY);
+ runCase(V1_FAIL_PATH _PT("playlist-toomany-tracklist.xspf"), XSPF_READER_ERROR_ELEMENT_TOOMANY);
}
void OfficialSuite::track_badint_duration() {
- runCase(V1_FAIL_PATH _PT("track-badint-duration.xspf"), SPIFF_READER_ERROR_CONTENT_INVALID);
+ runCase(V1_FAIL_PATH _PT("track-badint-duration.xspf"), XSPF_READER_ERROR_CONTENT_INVALID);
}
void OfficialSuite::track_badint_tracknum() {
- runCase(V1_FAIL_PATH _PT("track-badint-tracknum.xspf"), SPIFF_READER_ERROR_CONTENT_INVALID);
+ runCase(V1_FAIL_PATH _PT("track-badint-tracknum.xspf"), XSPF_READER_ERROR_CONTENT_INVALID);
}
void OfficialSuite::track_extension_application_missing() {
- runCase(V1_FAIL_PATH _PT("track-extension-application-missing.xspf"), SPIFF_READER_ERROR_ATTRIBUTE_MISSING);
+ runCase(V1_FAIL_PATH _PT("track-extension-application-missing.xspf"), XSPF_READER_ERROR_ATTRIBUTE_MISSING);
}
void OfficialSuite::track_link_rel_missing() {
- runCase(V1_FAIL_PATH _PT("track-link-rel-missing.xspf"), SPIFF_READER_ERROR_ATTRIBUTE_MISSING);
+ runCase(V1_FAIL_PATH _PT("track-link-rel-missing.xspf"), XSPF_READER_ERROR_ATTRIBUTE_MISSING);
}
void OfficialSuite::track_markup_album() {
- runCase(V1_FAIL_PATH _PT("track-markup-album.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN);
+ runCase(V1_FAIL_PATH _PT("track-markup-album.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN);
}
void OfficialSuite::track_markup_annotation() {
- runCase(V1_FAIL_PATH _PT("track-markup-annotation.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN);
+ runCase(V1_FAIL_PATH _PT("track-markup-annotation.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN);
}
void OfficialSuite::track_markup_creator() {
- runCase(V1_FAIL_PATH _PT("track-markup-creator.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN);
+ runCase(V1_FAIL_PATH _PT("track-markup-creator.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN);
}
void OfficialSuite::track_markup_meta() {
- runCase(V1_FAIL_PATH _PT("track-markup-meta.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN);
+ runCase(V1_FAIL_PATH _PT("track-markup-meta.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN);
}
void OfficialSuite::track_markup_title() {
- runCase(V1_FAIL_PATH _PT("track-markup-title.xspf"), SPIFF_READER_ERROR_ELEMENT_FORBIDDEN);
+ runCase(V1_FAIL_PATH _PT("track-markup-title.xspf"), XSPF_READER_ERROR_ELEMENT_FORBIDDEN);
}
void OfficialSuite::track_meta_rel_missing() {
- runCase(V1_FAIL_PATH _PT("track-meta-rel-missing.xspf"), SPIFF_READER_ERROR_ATTRIBUTE_MISSING);
+ runCase(V1_FAIL_PATH _PT("track-meta-rel-missing.xspf"), XSPF_READER_ERROR_ATTRIBUTE_MISSING);
}
void OfficialSuite::track_nonleaf_content() {
@@ Diff output truncated at 100000 characters. @@
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the commits
mailing list