aboutsummaryrefslogtreecommitdiff
path: root/lib/libsdp
diff options
context:
space:
mode:
authorMarkus Brueffer <markus@FreeBSD.org>2006-08-26 23:16:35 +0000
committerMarkus Brueffer <markus@FreeBSD.org>2006-08-26 23:16:35 +0000
commit5b22d1e64857ee7ba063e43b42fee4f088ebf476 (patch)
tree85d4cc013a830a5b6782ff08a27edff65e96ef39 /lib/libsdp
parentbcbd3d69bfeeb4fa1f6572709bd574c6442c8313 (diff)
downloadsrc-5b22d1e64857ee7ba063e43b42fee4f088ebf476.tar.gz
src-5b22d1e64857ee7ba063e43b42fee4f088ebf476.zip
- Add new service class definitions and a new attribute identifier definition
- Update URL of the Assigned Numbers document for SDP Approved by: emax (mentor) MFC after: 3 days
Notes
Notes: svn path=/head/; revision=161662
Diffstat (limited to 'lib/libsdp')
-rw-r--r--lib/libsdp/sdp.h13
-rw-r--r--lib/libsdp/util.c9
2 files changed, 19 insertions, 3 deletions
diff --git a/lib/libsdp/sdp.h b/lib/libsdp/sdp.h
index 4e5321f33676..96bde638a43c 100644
--- a/lib/libsdp/sdp.h
+++ b/lib/libsdp/sdp.h
@@ -91,7 +91,7 @@ __BEGIN_DECLS
#define SDP_DATA_URL32 0x47
/*
- * Protocols UUID (short) http://www.bluetoothsig.org/assigned-numbers/sdp.htm
+ * Protocols UUID (short) https://www.bluetooth.org/assigned-numbers/service_discovery.php
* BASE UUID 00000000-0000-1000-8000-00805F9B34FB
*/
@@ -119,7 +119,7 @@ __BEGIN_DECLS
#define SDP_UUID_PROTOCOL_L2CAP 0x0100
/*
- * Service class IDs http://www.bluetoothsig.org/assigned-numbers/sdp.htm
+ * Service class IDs https://www.bluetooth.org/assigned-numbers/service_discovery.php
*/
#define SDP_SERVICE_CLASS_SERVICE_DISCOVERY_SERVER 0x1000
@@ -170,6 +170,9 @@ __BEGIN_DECLS
#define SDP_SERVICE_CLASS_UDI_TA 0x112B
#define SDP_SERVICE_CLASS_AUDIO_VIDEO 0x112C
#define SDP_SERVICE_CLASS_SIM_ACCESS 0x112D
+#define SDP_SERVICE_CLASS_PHONEBOOK_ACCESS_PCE 0x112E
+#define SDP_SERVICE_CLASS_PHONEBOOK_ACCESS_PSE 0x112F
+#define SDP_SERVICE_CLASS_PHONEBOOK_ACCESS 0x1130
#define SDP_SERVICE_CLASS_PNP_INFORMATION 0x1200
#define SDP_SERVICE_CLASS_GENERIC_NETWORKING 0x1201
#define SDP_SERVICE_CLASS_GENERIC_FILE_TRANSFER 0x1202
@@ -180,10 +183,13 @@ __BEGIN_DECLS
#define SDP_SERVICE_CLASS_ESDP_UPNP_IP_PAN 0x1300
#define SDP_SERVICE_CLASS_ESDP_UPNP_IP_LAP 0x1301
#define SDP_SERVICE_CLASS_ESDP_UPNP_L2CAP 0x1302
+#define SDP_SERVICE_CLASS_VIDEO_SOURCE 0x1303
+#define SDP_SERVICE_CLASS_VIDEO_SINK 0x1304
+#define SDP_SERVICE_CLASS_VIDEO_DISTRIBUTION 0x1305
/*
* Universal attribute definitions (page 366) and
- * http://www.bluetoothsig.org/assigned-numbers/sdp.htm
+ * https://www.bluetooth.org/assigned-numbers/service_discovery.php
*/
#define SDP_ATTR_RANGE(lo, hi) \
@@ -230,6 +236,7 @@ __BEGIN_DECLS
#define SDP_ATTR_SUPPORTED_FEATURES 0x0311
#define SDP_ATTR_SUPPORTED_FUNCTIONS 0x0312
#define SDP_ATTR_TOTAL_IMAGING_DATA_CAPACITY 0x0313
+#define SDP_ATTR_SUPPORTED_REPOSITORIES 0x0314
/*
* The offset must be added to the attribute ID base (contained in the
diff --git a/lib/libsdp/util.c b/lib/libsdp/util.c
index e034ba003a30..b996bd22160d 100644
--- a/lib/libsdp/util.c
+++ b/lib/libsdp/util.c
@@ -117,6 +117,9 @@ static sdp_attr_desc_t sdp_uuids_desc[] = {
{ SDP_SERVICE_CLASS_UDI_TA, "UDI TA", },
{ SDP_SERVICE_CLASS_AUDIO_VIDEO, "Audio/Video", },
{ SDP_SERVICE_CLASS_SIM_ACCESS, "SIM Access", },
+{ SDP_SERVICE_CLASS_PHONEBOOK_ACCESS_PCE, "Phonebook Access - PCE", },
+{ SDP_SERVICE_CLASS_PHONEBOOK_ACCESS_PSE, "Phonebook Access - PSE", },
+{ SDP_SERVICE_CLASS_PHONEBOOK_ACCESS, "Phonebook Access", },
{ SDP_SERVICE_CLASS_PNP_INFORMATION, "PNP Information", },
{ SDP_SERVICE_CLASS_GENERIC_NETWORKING, "Generic Networking", },
{ SDP_SERVICE_CLASS_GENERIC_FILE_TRANSFER, "Generic File Transfer", },
@@ -127,6 +130,9 @@ static sdp_attr_desc_t sdp_uuids_desc[] = {
{ SDP_SERVICE_CLASS_ESDP_UPNP_IP_PAN, "ESDP UPNP IP PAN", },
{ SDP_SERVICE_CLASS_ESDP_UPNP_IP_LAP, "ESDP UPNP IP LAP", },
{ SDP_SERVICE_CLASS_ESDP_UPNP_L2CAP, "ESDP UPNP L2CAP", },
+{ SDP_SERVICE_CLASS_VIDEO_SOURCE, "Video Source", },
+{ SDP_SERVICE_CLASS_VIDEO_SINK, "Video Sink", },
+{ SDP_SERVICE_CLASS_VIDEO_DISTRIBUTION, "Video Distribution", },
{ 0xffff, NULL, }
};
@@ -241,6 +247,9 @@ static sdp_attr_desc_t sdp_attrs_desc[] = {
{ SDP_ATTR_TOTAL_IMAGING_DATA_CAPACITY,
"Total Imaging Data Capacity",
},
+{ SDP_ATTR_SUPPORTED_REPOSITORIES,
+ "Supported Repositories",
+ },
{ 0xffff, NULL, }
};