summaryrefslogtreecommitdiffstats
path: root/common/sdp-xml.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-11-22 06:06:36 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-11-22 06:06:36 +0000
commit214cc18ef97fcaa0a4c3746e183caf5820bc811b (patch)
tree0441366702a36735f000cd462b6aa2ededb9a72e /common/sdp-xml.h
parent4195a470a54c20d830a2faea6d617d8f67427f5e (diff)
Add first draft XML based service record registration
Diffstat (limited to 'common/sdp-xml.h')
-rw-r--r--common/sdp-xml.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/sdp-xml.h b/common/sdp-xml.h
index 5e6bb7ce..16bea948 100644
--- a/common/sdp-xml.h
+++ b/common/sdp-xml.h
@@ -27,7 +27,18 @@
#include <bluetooth/sdp.h>
+#define SDP_XML_ENCODING_NORMAL 0
+#define SDP_XML_ENCODING_HEX 1
+
void convert_sdp_record_to_xml(sdp_record_t *rec,
void *user_data, void (*append_func) (void *, const char *));
+sdp_data_t *sdp_xml_parse_nil(const char *data);
+sdp_data_t *sdp_xml_parse_text(const char *data, char encoding);
+sdp_data_t *sdp_xml_parse_url(const char *data);
+sdp_data_t *sdp_xml_parse_int(const char *data, uint8_t dtd);
+sdp_data_t *sdp_xml_parse_uuid(const char *data);
+
+sdp_record_t *sdp_xml_parse_record(const char *data, int size);
+
#endif /* __SDP_XML_H */