VirtualBox

Changeset 32472 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Sep 14, 2010 10:26:19 AM (14 years ago)
Author:
vboxsync
Message:

RDP/client: use sysfs for USB device enumeration and switch to using real iprt

Location:
trunk/src/VBox/Devices/USB
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/USBProxyDevice.h

    r31662 r32472  
    1919#define ___USBProxyDevice_h
    2020
    21 #ifndef RDESKTOP
    22 # include <VBox/cdefs.h>
    23 # include <VBox/vusb.h>
    24 #else
    25 # include "runtime.h"
    26 # include "vusb.h"
    27 #endif
     21#include <VBox/cdefs.h>
     22#include <VBox/vusb.h>
    2823
    2924RT_C_DECLS_BEGIN
  • trunk/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp

    r31662 r32472  
    3030*******************************************************************************/
    3131#define LOG_GROUP LOG_GROUP_DRV_USBPROXY
    32 #ifndef RDESKTOP
    33 # include <iprt/stdint.h>
    34 # include <iprt/err.h>
    35 #endif
     32
     33#include <iprt/stdint.h>
     34#include <iprt/err.h>
     35
    3636#include <sys/types.h>
    3737#include <sys/stat.h>
     
    7272#ifndef RDESKTOP
    7373# include <VBox/pdm.h>
    74 # include <VBox/err.h>
    75 # include <VBox/log.h>
    76 # include <iprt/alloc.h>
    77 # include <iprt/assert.h>
    78 # include <iprt/asm.h>
    79 # include <iprt/ctype.h>
    80 # include <iprt/file.h>
    81 # include <iprt/linux/sysfs.h>
    82 # include <iprt/stream.h>
    83 # include <iprt/string.h>
     74#else
     75# define RTCRITSECT          void *
     76static inline int rtcsNoop() { return VINF_SUCCESS; }
     77# define RTCritSectInit(a)   rtcsNoop()
     78# define RTCritSectDelete(a) rtcsNoop()
     79# define RTCritSectEnter(a)  rtcsNoop()
     80# define RTCritSectLeave(a)  rtcsNoop()
     81#endif
     82#include <VBox/err.h>
     83#include <VBox/log.h>
     84#include <iprt/alloc.h>
     85#include <iprt/assert.h>
     86#include <iprt/asm.h>
     87#include <iprt/ctype.h>
     88#include <iprt/file.h>
     89#include <iprt/linux/sysfs.h>
     90#include <iprt/stream.h>
     91#include <iprt/string.h>
     92#if defined(NO_PORT_RESET) && !defined(NO_LOGICAL_RECONNECT)
    8493# include <iprt/thread.h>
    85 # include <iprt/time.h>
    86 # include "../USBProxyDevice.h"
    87 #else
    88 
    89 # include "../rdesktop.h"
    90 # include "runtime.h"
    91 # include "USBProxyDevice.h"
    92 # ifdef VBOX_USB_WITH_SYSFS
    93 #  include "sysfs.h"
    94 # endif
    9594#endif
    96 
     95#include <iprt/time.h>
     96#include "../USBProxyDevice.h"
    9797
    9898/*******************************************************************************
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