we'll use B-prefixed classes there. make functions static.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19903 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2007-01-22 16:27:13 +00:00
parent a081d007e8
commit 72abc68c9f
+6 -6
View File
@@ -1,11 +1,11 @@
#include <USBKit.h> #include <usb/USBKit.h>
#include <stdio.h> #include <stdio.h>
void DumpInterface(const USBInterface *ifc) static void DumpInterface(const BUSBInterface *ifc)
{ {
int i; int i;
const USBEndpoint *ept; const BUSBEndpoint *ept;
if(!ifc) return; if(!ifc) return;
printf(" Class .............. %d\n",ifc->Class()); printf(" Class .............. %d\n",ifc->Class());
printf(" Subclass ........... %d\n",ifc->Subclass()); printf(" Subclass ........... %d\n",ifc->Subclass());
@@ -33,7 +33,7 @@ void DumpInterface(const USBInterface *ifc)
} }
} }
void DumpConfiguration(const USBConfiguration *conf) static void DumpConfiguration(const BUSBConfiguration *conf)
{ {
int i; int i;
if(!conf) return; if(!conf) return;
@@ -43,7 +43,7 @@ void DumpConfiguration(const USBConfiguration *conf)
} }
} }
void DumpInfo(USBDevice &dev) static void DumpInfo(BUSBDevice &dev)
{ {
int i; int i;
@@ -67,7 +67,7 @@ void DumpInfo(USBDevice &dev)
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
if(argc == 2){ if(argc == 2){
USBDevice dev(argv[1]); BUSBDevice dev(argv[1]);
if(dev.InitCheck()){ if(dev.InitCheck()){
printf("Cannot open USB device: %s\n",argv[1]); printf("Cannot open USB device: %s\n",argv[1]);
return 1; return 1;