summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-20 16:31:12 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-20 16:31:12 +0000
commitbb3cd7888177a4d0e23a5790d3fe26f008345164 (patch)
treec5f3ffab312aad282b1ba6abc24a45c52bef606c /common
parent9ca184f1e81afa9b68d799ecaae4a16e09684e39 (diff)
Preparation for using the XML parser from GLib
Diffstat (limited to 'common')
-rw-r--r--common/Makefile.am8
-rw-r--r--common/sdp-glib.c35
2 files changed, 41 insertions, 2 deletions
diff --git a/common/Makefile.am b/common/Makefile.am
index 412786c9..d9bd00ce 100644
--- a/common/Makefile.am
+++ b/common/Makefile.am
@@ -1,9 +1,13 @@
+if GLIB
+sdp_sources = sdp-glib.c
+else
if EXPAT
sdp_sources = sdp-expat.c
else
sdp_sources = sdp-dummy.c
endif
+endif
if INOTIFY
notify_sources = notify-inotify.c
@@ -25,7 +29,7 @@ test_textfile_LDADD = libhelper.a
AM_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@
-EXTRA_DIST = ppoll.h sdp-dummy.c sdp-expat.c \
- notify-dummy.c notify-inotify.c
+EXTRA_DIST = ppoll.h notify-dummy.c notify-inotify.c \
+ sdp-dummy.c sdp-expat.c sdp-glib.c
MAINTAINERCLEANFILES = Makefile.in
diff --git a/common/sdp-glib.c b/common/sdp-glib.c
new file mode 100644
index 00000000..15212994
--- /dev/null
+++ b/common/sdp-glib.c
@@ -0,0 +1,35 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2004-2007 Marcel Holtmann <marcel@holtmann.org>
+ *
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <glib.h>
+
+#include "sdp-xml.h"
+
+sdp_record_t *sdp_xml_parse_record(const char *data, int size)
+{
+ return NULL;
+}