summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-11-22 06:26:52 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-11-22 06:26:52 +0000
commit40e353d0f55932729863db56c402960147b3b659 (patch)
tree3cbcd0333f3164e04361b0de51393570c9295e00
parentb2afe935ff341cd05e90db4cc636574e3ce98d89 (diff)
Add another example service record
-rw-r--r--hcid/Makefile.am4
-rw-r--r--hcid/service-did.xml33
-rw-r--r--hcid/service-opp.xml12
3 files changed, 38 insertions, 11 deletions
diff --git a/hcid/Makefile.am b/hcid/Makefile.am
index ec41b5ae..1afcc76c 100644
--- a/hcid/Makefile.am
+++ b/hcid/Makefile.am
@@ -61,7 +61,7 @@ AM_YFLAGS = -d
CLEANFILES = lexer.c parser.c parser.h
-EXTRA_DIST = $(man_MANS) hcid.conf bluetooth.conf \
- service-record.dtd service-opp.xml dbus-api.txt
+EXTRA_DIST = $(man_MANS) hcid.conf bluetooth.conf dbus-api.txt \
+ service-record.dtd service-did.xml service-opp.xml
MAINTAINERCLEANFILES = Makefile.in
diff --git a/hcid/service-did.xml b/hcid/service-did.xml
new file mode 100644
index 00000000..52eb68c0
--- /dev/null
+++ b/hcid/service-did.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<record>
+ <attribute id="0x0001">
+ <sequence>
+ <uuid value="0x1200"/>
+ </sequence>
+ </attribute>
+
+ <attribute id="0x0200">
+ <uint16 value="0x0102" name="id"/>
+ </attribute>
+
+ <attribute id="0x0201">
+ <uint16 value="0x0a12" name="vendor"/>
+ </attribute>
+
+ <attribute id="0x0202">
+ <uint16 value="0x4711" name="product"/>
+ </attribute>
+
+ <attribute id="0x0203">
+ <uint16 value="0x0000" name="version"/>
+ </attribute>
+
+ <attribute id="0x0204">
+ <boolean value="true"/>
+ </attribute>
+
+ <attribute id="0x0205">
+ <uint16 value="0x0002" name="source"/>
+ </attribute>
+</record>
diff --git a/hcid/service-opp.xml b/hcid/service-opp.xml
index 4b78fe42..351b4a41 100644
--- a/hcid/service-opp.xml
+++ b/hcid/service-opp.xml
@@ -14,7 +14,7 @@
</sequence>
<sequence>
<uuid value="0x0003"/>
- <uint8 value="23"/>
+ <uint8 value="23" name="channel"/>
</sequence>
<sequence>
<uuid value="0x0008"/>
@@ -22,23 +22,17 @@
</sequence>
</attribute>
- <attribute id="0x0005">
- <sequence>
- <uuid value="0x1002"/>
- </sequence>
- </attribute>
-
<attribute id="0x0009">
<sequence>
<sequence>
<uuid value="0x1105"/>
- <uint16 value="0x0100"/>
+ <uint16 value="0x0100" name="version"/>
</sequence>
</sequence>
</attribute>
<attribute id="0x0100">
- <text value="OBEX Object Push"/>
+ <text value="OBEX Object Push" name="name"/>
</attribute>
<attribute id="0x0303">