mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 05:34:23 +08:00
Add extra attributes to the serial port record
This commit is contained in:
parent
f1e41a10b2
commit
ee0b35445b
@ -1199,7 +1199,15 @@ static int add_sp(sdp_session_t *session, svc_info_t *si)
|
||||
|
||||
add_lang_attr(&record);
|
||||
|
||||
sdp_set_info_attr(&record, "Serial Port", 0, "COM Port");
|
||||
sdp_set_info_attr(&record, "Serial Port", "BlueZ", "COM Port");
|
||||
|
||||
sdp_set_url_attr(&record, "http://www.bluez.org/",
|
||||
"http://www.bluez.org/", "http://www.bluez.org/");
|
||||
|
||||
sdp_set_service_id(&record, sp_uuid);
|
||||
sdp_set_service_ttl(&record, 0xffff);
|
||||
sdp_set_service_avail(&record, 0xff);
|
||||
sdp_set_record_state(&record, 0x00001234);
|
||||
|
||||
if (sdp_device_record_register(session, &interface, &record, SDP_RECORD_PERSIST) < 0) {
|
||||
printf("Service Record registration failed\n");
|
||||
|
Loading…
Reference in New Issue
Block a user