Add Strings for bluetooth errors
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31363 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -613,6 +613,66 @@ const char* bluetoothEvents[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const char* bluetoothErrors[] = {
|
||||||
|
"No Error",
|
||||||
|
"Unknown Command",
|
||||||
|
"No Connection",
|
||||||
|
"Hardware Failure",
|
||||||
|
"Page Timeout",
|
||||||
|
"Authentication Failure",
|
||||||
|
"Pin Or Key Missing",
|
||||||
|
"Memory Full",
|
||||||
|
"Connection Timeout",
|
||||||
|
"Max Number Of Connections",
|
||||||
|
"Max Number Of Sco Connections",
|
||||||
|
"Acl Connection Exists",
|
||||||
|
"Command Disallowed",
|
||||||
|
"Rejected Limited Resources",
|
||||||
|
"Rejected Security",
|
||||||
|
"Rejected Personal",
|
||||||
|
"Host Timeout",
|
||||||
|
"Unsupported Feature",
|
||||||
|
"Invalid Parameters",
|
||||||
|
"Remote User Ended Connection",
|
||||||
|
"Remote Low Resources",
|
||||||
|
"Remote Power Off",
|
||||||
|
"Connection Terminated",
|
||||||
|
"Repeated Attempts",
|
||||||
|
"Pairing Not Allowed",
|
||||||
|
"Unknown Lmp Pdu",
|
||||||
|
"Unsupported Remote Feature",
|
||||||
|
"Sco Offset Rejected",
|
||||||
|
"Sco Interval Rejected",
|
||||||
|
"Air Mode Rejected",
|
||||||
|
"Invalid Lmp Parameters",
|
||||||
|
"Unspecified Error",
|
||||||
|
"Unsupported Lmp Parameter Value",
|
||||||
|
"Role Change Not Allowed",
|
||||||
|
"Lmp Response Timeout",
|
||||||
|
"Lmp Error Transaction Collision",
|
||||||
|
"Lmp Pdu Not Allowed",
|
||||||
|
"Encryption Mode Not Accepted",
|
||||||
|
"Unit Link Key Used",
|
||||||
|
"Qos Not Supported",
|
||||||
|
"Instant Passed",
|
||||||
|
"Pairing With Unit Key Not Supported",
|
||||||
|
"Different Transaction Collision",
|
||||||
|
"Qos Unacceptable Parameter",
|
||||||
|
"Qos Rejected",
|
||||||
|
"Classification Not Supported",
|
||||||
|
"Insufficient Security",
|
||||||
|
"Parameter Out Of Range",
|
||||||
|
"Reserved",
|
||||||
|
"Role Switch Pending",
|
||||||
|
"Reserved",
|
||||||
|
"Slot Violation",
|
||||||
|
"Role Switch Failed",
|
||||||
|
"Extended Inquiry Response Too Large",
|
||||||
|
"Simple Pairing Not Supported By Host",
|
||||||
|
"Host Busy Pairing"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
const char* hciVersion[] = { "1.0B" , "1.1 " , "1.2 " , "2.0 " , "2.1 "};
|
const char* hciVersion[] = { "1.0B" , "1.1 " , "1.2 " , "2.0 " , "2.1 "};
|
||||||
const char* lmpVersion[] = { "1.0 " , "1.1 " , "1.2 " , "2.0 " , "2.1 "};
|
const char* lmpVersion[] = { "1.0 " , "1.1 " , "1.2 " , "2.0 " , "2.1 "};
|
||||||
|
|
||||||
@@ -695,3 +755,14 @@ GetManufacturer(uint16 manufacturer) {
|
|||||||
return "not assigned";
|
return "not assigned";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const char*
|
||||||
|
GetError(uint8 error) {
|
||||||
|
if (error < sizeof(bluetoothErrors)/sizeof(const char*)) {
|
||||||
|
return bluetoothErrors[error];
|
||||||
|
} else {
|
||||||
|
return "not specified";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user