summaryrefslogtreecommitdiff
path: root/plparse/bswap.h
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2007-12-17 19:12:24 +0000
committerBastien Nocera <hadess@src.gnome.org>2007-12-17 19:12:24 +0000
commit3e8b650531d8f853f696343709c14cc93ee133d8 (patch)
treea865714cc5ba32321931dc5bbcb9fac696976ba0 /plparse/bswap.h
parent49fbc4fa8b121f444106fa09c6b9f21f75cc2982 (diff)
downloadtotem-pl-parser-3e8b650531d8f853f696343709c14cc93ee133d8.tar.gz
Update from xine-lib-1.2, use the BOMs in XML files to convert the data
2007-12-17 Bastien Nocera <hadess@hadess.net> * plparse/xmllexer.c: (lex_convert), (lexer_init), (lexer_get_token): * plparse/xmllexer.h: * plparse/xmlparser.c: (xml_parser_init), (xml_parser_get_node_internal): * plparse/xmlparser.h: Update from xine-lib-1.2, use the BOMs in XML files to convert the data from unicode to UTF-8 * plparse/bswap.h: Added to allow compilation * plparse/totem-pl-parser.c: (totem_pl_parser_is_iso8601_date), (totem_pl_parser_can_parse_from_data): Add missing checks for valid dates svn path=/trunk/; revision=21
Diffstat (limited to 'plparse/bswap.h')
-rw-r--r--plparse/bswap.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/plparse/bswap.h b/plparse/bswap.h
new file mode 100644
index 0000000..c06463d
--- /dev/null
+++ b/plparse/bswap.h
@@ -0,0 +1,31 @@
+/*
+ Copyright (C) 2007 Bastien Nocera
+
+ The Gnome Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The Gnome Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the Gnome Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+ Authors: Bastien Nocera <hadess@hadess.net>
+
+ */
+
+#include <glib.h>
+
+#define uint32_t guint32
+
+#define _X_BE_32(x) GUINT32_FROM_BE(*x)
+#define _X_LE_32(x) GUINT32_FROM_LE(*x)
+#define _X_BE_16(x) GUINT16_FROM_BE(*x)
+#define _X_LE_16(x) GUINT16_FROM_LE(*x)
+