[PATCH BlueZ 07/11] opp: Remove record details

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>

Standart service records are already supported by bluetoothd
---
 obexd/plugins/opp.c | 56 -----------------------------------------------------
 1 file changed, 56 deletions(-)

diff --git a/obexd/plugins/opp.c b/obexd/plugins/opp.c
index c7ddc63..faa4437 100644
--- a/obexd/plugins/opp.c
+++ b/obexd/plugins/opp.c
@@ -44,59 +44,6 @@
 #define VCARD_TYPE "text/x-vcard"
 #define VCARD_FILE CONFIGDIR "/vcard.vcf"
 
-#define OPP_CHANNEL	9
-#define OPP_RECORD "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>	\
-<record>							\
-  <attribute id=\"0x0001\">					\
-    <sequence>							\
-      <uuid value=\"0x1105\"/>					\
-    </sequence>							\
-  </attribute>							\
-								\
-  <attribute id=\"0x0004\">					\
-    <sequence>							\
-      <sequence>						\
-        <uuid value=\"0x0100\"/>				\
-      </sequence>						\
-      <sequence>						\
-        <uuid value=\"0x0003\"/>				\
-        <uint8 value=\"%u\" name=\"channel\"/>			\
-      </sequence>						\
-      <sequence>						\
-        <uuid value=\"0x0008\"/>				\
-      </sequence>						\
-    </sequence>							\
-  </attribute>							\
-								\
-  <attribute id=\"0x0009\">					\
-    <sequence>							\
-      <sequence>						\
-        <uuid value=\"0x1105\"/>				\
-        <uint16 value=\"0x0102\" name=\"version\"/>		\
-      </sequence>						\
-    </sequence>							\
-  </attribute>							\
-								\
-  <attribute id=\"0x0100\">					\
-    <text value=\"%s\" name=\"name\"/>				\
-  </attribute>							\
-								\
-  <attribute id=\"0x0303\">					\
-    <sequence>							\
-      <uint8 value=\"0x01\"/>					\
-      <uint8 value=\"0x02\"/>					\
-      <uint8 value=\"0x03\"/>					\
-      <uint8 value=\"0x04\"/>					\
-      <uint8 value=\"0x05\"/>					\
-      <uint8 value=\"0x06\"/>					\
-      <uint8 value=\"0xff\"/>					\
-    </sequence>							\
-  </attribute>							\
-  <attribute id=\"0x0200\">					\
-    <uint16 value=\"%u\" name=\"psm\"/>				\
-  </attribute>							\
-</record>"
-
 static void *opp_connect(struct obex_session *os, int *err)
 {
 	manager_register_transfer(os);
@@ -219,9 +166,6 @@ static void opp_reset(struct obex_session *os, void *user_data)
 static struct obex_service_driver driver = {
 	.name = "Object Push server",
 	.service = OBEX_OPP,
-	.channel = OPP_CHANNEL,
-	.port = OBEX_PORT_RANDOM,
-	.record = OPP_RECORD,
 	.connect = opp_connect,
 	.progress = opp_progress,
 	.disconnect = opp_disconnect,
-- 
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux