Add method to dump all DeviceClass information in one single string
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28814 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
60581c6303
commit
515e878c43
@ -66,6 +66,8 @@ public:
|
|||||||
void GetMajorDeviceClass(BString&);
|
void GetMajorDeviceClass(BString&);
|
||||||
void GetMinorDeviceClass(BString&);
|
void GetMinorDeviceClass(BString&);
|
||||||
|
|
||||||
|
void DumpDeviceClass(BString&);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint32 record;
|
uint32 record;
|
||||||
|
|
||||||
|
@ -314,8 +314,20 @@ DeviceClass::GetMinorDeviceClass(BString& minorClass)
|
|||||||
minorClass << "Unknown (reserved) minor device class";
|
minorClass << "Unknown (reserved) minor device class";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
DeviceClass::DumpDeviceClass(BString& string)
|
||||||
|
{
|
||||||
|
|
||||||
|
GetServiceClass(string);
|
||||||
|
string << " | ";
|
||||||
|
GetMajorDeviceClass(string);
|
||||||
|
string << " | ";
|
||||||
|
GetMinorDeviceClass(string);
|
||||||
|
string << ".";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user