Do dot dump for the particular (major minor service) any header in the string output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28998 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4a7ad412f6
commit
c8ac5a7087
@ -29,8 +29,6 @@ DeviceClass::GetServiceClass(BString& serviceClass)
|
||||
"Rendering", "Capturing", "Object Transfer",
|
||||
"Audio", "Telephony", "Information" };
|
||||
|
||||
serviceClass = "Service Classes: ";
|
||||
|
||||
if (GetServiceClass() != 0) {
|
||||
|
||||
for (uint s = 0; s < (sizeof(services) / sizeof(*services)); s++) {
|
||||
@ -53,8 +51,6 @@ DeviceClass::GetMajorDeviceClass(BString& majorClass)
|
||||
static const char *major_devices[] = { "Miscellaneous", "Computer", "Phone",
|
||||
"LAN Access", "Audio/Video", "Peripheral", "Imaging", "Uncategorized" };
|
||||
|
||||
majorClass << "Major Class: ";
|
||||
|
||||
if (GetMajorDeviceClass() >= sizeof(major_devices) / sizeof(*major_devices))
|
||||
majorClass << "Invalid Device Class!\n";
|
||||
else
|
||||
@ -69,8 +65,6 @@ DeviceClass::GetMinorDeviceClass(BString& minorClass)
|
||||
uint major = GetMajorDeviceClass();
|
||||
uint minor = GetMinorDeviceClass();
|
||||
|
||||
minorClass << "Minor Class: ";
|
||||
|
||||
switch (major) {
|
||||
case 0: /* misc */
|
||||
minorClass << " -";
|
||||
@ -320,14 +314,15 @@ DeviceClass::GetMinorDeviceClass(BString& minorClass)
|
||||
void
|
||||
DeviceClass::DumpDeviceClass(BString& string)
|
||||
{
|
||||
|
||||
string << "Service Classes: ";
|
||||
GetServiceClass(string);
|
||||
string << " | ";
|
||||
string << "Major Class: ";
|
||||
GetMajorDeviceClass(string);
|
||||
string << " | ";
|
||||
string << "Minor Class: ";
|
||||
GetMinorDeviceClass(string);
|
||||
string << ".";
|
||||
|
||||
string << ".";
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user