summaryrefslogtreecommitdiffstats
path: root/src/itdb_plist.c
diff options
context:
space:
mode:
authorteuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2008-05-25 11:27:27 +0000
committerteuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2008-05-25 11:27:27 +0000
commitf87f1088d0eae00af511b0eb0e847138a971562c (patch)
tree6c752611a92bdaedea944deefe8ab7479b4feb2f /src/itdb_plist.c
parent0a1e067fb5f0a751a5620ced510c91411670ee75 (diff)
downloadlibgpod-f87f1088d0eae00af511b0eb0e847138a971562c.tar.gz
libgpod-f87f1088d0eae00af511b0eb0e847138a971562c.tar.xz
libgpod-f87f1088d0eae00af511b0eb0e847138a971562c.zip
* configure.ac: rework libxml detection
* src/Makefile.am: remove LIBXML_CFLAGS/LIBXML_LIBS since they are no longer used * src/itdb_plist.c: add stub functions when libxml isn't available * src/itdb_sysinfo_extended_parser.c: include config.h git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1982 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/itdb_plist.c')
-rw-r--r--src/itdb_plist.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/itdb_plist.c b/src/itdb_plist.c
index bb6d89d..b5ee5b8 100644
--- a/src/itdb_plist.c
+++ b/src/itdb_plist.c
@@ -45,6 +45,12 @@
* - <array> => G_TYPE_HASH_TABLE (GHashTable *)
* - <dict> => G_TYPE_HASH_TABLE (GHashTable *)
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef HAVE_LIBXML
+
#include <stdio.h>
#include <string.h>
#include <libxml/parser.h>
@@ -324,3 +330,18 @@ itdb_plist_parse_from_memory (const char *data, gsize len)
return parsed_doc;
}
+#else
+#include <glib-object.h>
+#include "itdb_plist.h"
+
+GValue *itdb_plist_parse_from_file (G_GNUC_UNUSED const char *filename)
+{
+ return NULL;
+}
+
+GValue *itdb_plist_parse_from_memory (G_GNUC_UNUSED const char *data,
+ G_GNUC_UNUSED gsize len)
+{
+ return NULL;
+}
+#endif