VirtualBox

Changeset 2587 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
May 11, 2007 3:12:27 AM (18 years ago)
Author:
vboxsync
Message:

Darwin USB (work in progress)...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/USBProxyService.h

    r1 r2587  
    149149    virtual PUSBDEVICE getDevices (void);
    150150
     151    /**
     152     * First call made on the service thread, use it to do
     153     * thread initialization.
     154     */
     155    virtual void serviceThreadInit (void);
     156
     157    /**
     158     * First call made on the service thread, use it to do
     159     * thread termination.
     160     */
     161    virtual void serviceThreadTerm (void);
     162
    151163public:
    152164    /**
     
    190202#ifdef VBOX_WITH_USB
    191203
     204# ifdef __DARWIN__
     205#  include <VBox/param.h>
     206#  undef PAGE_SHIFT
     207#  undef PAGE_SIZE
     208#  define OSType Carbon_OSType
     209#  include <Carbon/Carbon.h>
     210#  undef OSType
     211
     212/**
     213 * The Darwin hosted USB Proxy Service.
     214 */
     215class USBProxyServiceDarwin : public USBProxyService
     216{
     217public:
     218    USBProxyServiceDarwin (Host *aHost);
     219    ~USBProxyServiceDarwin();
     220
     221    virtual int captureDevice (HostUSBDevice *aDevice);
     222    virtual int holdDevice (HostUSBDevice *aDevice);
     223    virtual int releaseDevice (HostUSBDevice *aDevice);
     224    virtual int resetDevice (HostUSBDevice *aDevice);
     225
     226protected:
     227    virtual int wait (unsigned aMillies);
     228    virtual int interruptWait (void);
     229    virtual PUSBDEVICE getDevices (void);
     230    virtual void serviceThreadInit (void);
     231    virtual void serviceThreadTerm (void);
     232
     233private:
     234    /** Reference to the runloop of the service thread.
     235     * This is NULL if the service thread isn't running. */
     236    CFRunLoopRef mServiceRunLoopRef;
     237
     238};
     239# endif /* __DARWIN__ */
     240
     241
    192242# ifdef __LINUX__
    193243#  include <stdio.h>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette