- Add possibility yo set a custom friendly name to our device. Which will be seen by remotes devices at discovery

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36729 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Ruiz Dorantes
2010-05-07 18:25:09 +00:00
parent 9cafc5db2b
commit 125183f9e5
4 changed files with 41 additions and 0 deletions
+4
View File
@@ -96,6 +96,10 @@ struct hci_command_header {
#define OCF_WRITE_LOCAL_NAME 0x0013
struct hci_write_local_name {
char local_name[HCI_DEVICE_NAME_SIZE];
} __attribute__ ((packed));
#define OCF_READ_LOCAL_NAME 0x0014
struct hci_rp_read_local_name {
uint8 status;
+1
View File
@@ -33,6 +33,7 @@ public:
DiscoveryAgent* GetDiscoveryAgent();
BString GetFriendlyName();
status_t SetFriendlyName(BString& name);
DeviceClass GetDeviceClass();
status_t SetDeviceClass(DeviceClass deviceClass);