* Use const where appropriate.

* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36279 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2010-04-15 08:18:37 +00:00
parent 2feb1a7f3a
commit 447b0afd93
2 changed files with 8 additions and 8 deletions
@@ -221,7 +221,7 @@ HIDDevice::SendReport(HIDReport *report)
ProtocolHandler * ProtocolHandler *
HIDDevice::ProtocolHandlerAt(uint32 index) HIDDevice::ProtocolHandlerAt(uint32 index) const
{ {
if (index >= fProtocolHandlerCount) if (index >= fProtocolHandlerCount)
return NULL; return NULL;
@@ -22,26 +22,26 @@ public:
~HIDDevice(); ~HIDDevice();
void SetParentCookie(int32 cookie); void SetParentCookie(int32 cookie);
int32 ParentCookie() { return fParentCookie; }; int32 ParentCookie() const { return fParentCookie; }
status_t InitCheck() { return fStatus; }; status_t InitCheck() const { return fStatus; }
bool IsOpen() { return fOpenCount > 0; }; bool IsOpen() const { return fOpenCount > 0; };
status_t Open(ProtocolHandler *handler, uint32 flags); status_t Open(ProtocolHandler *handler, uint32 flags);
status_t Close(ProtocolHandler *handler); status_t Close(ProtocolHandler *handler);
void Removed(); void Removed();
bool IsRemoved() { return fRemoved; }; bool IsRemoved() const { return fRemoved; }
status_t MaybeScheduleTransfer(); status_t MaybeScheduleTransfer();
status_t SendReport(HIDReport *report); status_t SendReport(HIDReport *report);
HIDParser * Parser() { return &fParser; }; HIDParser * Parser() { return &fParser; }
ProtocolHandler * ProtocolHandlerAt(uint32 index); ProtocolHandler * ProtocolHandlerAt(uint32 index) const;
// only to be used for the kernel debugger information // only to be used for the kernel debugger information
usb_pipe InterruptPipe() { return fInterruptPipe; }; usb_pipe InterruptPipe() const { return fInterruptPipe; }
private: private:
static void _TransferCallback(void *cookie, static void _TransferCallback(void *cookie,