VirtualBox

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


Ignore:
Timestamp:
Sep 8, 2010 3:43:32 PM (14 years ago)
Author:
vboxsync
Message:

Main/USBProxyServiceLinux: split out USB enumeration from USBProxyServiceLinux.cpp and HostHardwareLinux.cpp into a separate file

Location:
trunk/src/VBox/Main/include
Files:
1 added
2 edited

Legend:

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

    r32299 r32324  
    110110typedef VBoxMainDriveInfo::DriveInfo DriveInfo;
    111111
    112 
    113 /** Structure describing a host USB device */
    114 typedef struct USBDeviceInfo
    115 {
    116     /** The device node of the device. */
    117     char *mDevice;
    118     /** The system identifier of the device.  Specific to the probing
    119      * method. */
    120     char *mSysfsPath;
    121     /** List of interfaces as sysfs paths */
    122     VECTOR_PTR(char *) mvecpszInterfaces;
    123 } USBDeviceInfo;
    124 
    125 /** Destructor. */
    126 void USBDevInfoCleanup(USBDeviceInfo *pSelf);
    127 
    128 /** Constructor - the strings will be duplicated. */
    129 int USBDevInfoInit(USBDeviceInfo *pSelf, const char *aDevice,
    130                    const char *aSystemID);
    131 
    132 /**
    133  * Enumerate USB devices attached to the host using sysfs and return them as a
    134  * vector
    135  * @returns iprt status code
    136  * @param pvecDevInfo  vector to add the devices onto the end of.  Should be
    137  *                     initialised and empty.
    138  */
    139 int USBSysfsEnumerateHostDevices(VECTOR_OBJ(USBDeviceInfo) *pvecDevInfo);
    140 
    141 
    142112/** Implementation of the hotplug waiter class below */
    143113class VBoxMainHotplugWaiterImpl
  • trunk/src/VBox/Main/include/vector.h

    r32262 r32324  
    2727# define MAIN_VECTOR_H
    2828
    29 /*** Helper macros and deinitions ***/
     29/*******************************************************************************
     30*   Header Files                                                               *
     31*******************************************************************************/
     32
     33#include <stdlib.h>
     34
     35/*******************************************************************************
     36*   Helper macros and definitions                                              *
     37*******************************************************************************/
    3038
    3139/** The unit by which the vector capacity is increased */
     
    208216}
    209217
    210 /*** Public interface macros ***/
     218/*******************************************************************************
     219*   Public interface macros                                                    *
     220*******************************************************************************/
    211221
    212222/**
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