Changeset 11610 in vbox for trunk/src/VBox/RDP
- Timestamp:
- Aug 25, 2008 1:09:37 PM (16 years ago)
- Location:
- trunk/src/VBox/RDP/client
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/RDP/client/Makefile.kmk
r10139 r11610 28 28 PROGRAMS += rdesktop-vrdp 29 29 rdesktop-vrdp_TEMPLATE = VBOXR3NPEXE 30 # rdesktop-vrdp_SDKS = VBOX_OPENSSL - crap, we don't build everything that's required here. :/ 30 rdesktop-vrdp_SDKS = VBOX_OPENSSL 31 31 rdesktop-vrdp_DEFS = \ 32 32 PACKAGE_NAME=\"rdesktop-vrdp\" PACKAGE_TARNAME=\"rdesktop-vrdp\" PACKAGE_VERSION=\"1.6.0\" \ … … 34 34 HAVE_SYS_TYPES_H=1 HAVE_SYS_STAT_H=1 HAVE_STDLIB_H=1 HAVE_STRING_H=1 HAVE_MEMORY_H=1 \ 35 35 HAVE_STRINGS_H=1 HAVE_INTTYPES_H=1 HAVE_STDINT_H=1 HAVE_UNISTD_H=1 HAVE_SYS_SELECT_H=1 \ 36 HAVE_LOCALE_H=1 HAVE_LANGINFO_H=1 HAVE_ICONV_H=1 ssldir=\"/usr\"\36 HAVE_LOCALE_H=1 HAVE_LANGINFO_H=1 HAVE_ICONV_H=1 \ 37 37 EGD_SOCKET=\"/var/run/egd-pool\" WITH_RDPSND=1 HAVE_DIRENT_H=1 HAVE_DIRFD=1 HAVE_DECL_DIRFD=1 \ 38 38 HAVE_ICONV=1 ICONV_CONST= HAVE_SYS_VFS_H=1 HAVE_SYS_STATVFS_H=1 HAVE_SYS_STATFS_H=1 \ 39 HAVE_SYS_PARAM_H=1 HAVE_SYS_MOUNT_H=1 STAT_STATVFS=1 HAVE_STRUCT_STATVFS_F_NAMEMAX=1 \ 40 HAVE_STRUCT_STATFS_F_NAMELEN=1 HAVE_MNTENT_H=1 HAVE_SETMNTENT=1 \ 39 HAVE_SYS_PARAM_H=1 HAVE_SYS_MOUNT_H=1 HAVE_STRUCT_STATVFS_F_NAMEMAX=1 \ 41 40 KEYMAP_PATH=$(if $(findstring RTPATH_APP_PRIVATE,$(DEFS)),RTPATH_APP_PRIVATE,\"/opt/VirtualBox-$(VBOX_VERSION_STRING)\")\"/rdesktop-vrdp-keymaps\" \ 42 RDPSND_OSS=1 WITH_RDPUSB=1 RDESKTOP=1 41 WITH_RDPUSB=1 RDESKTOP=1 42 43 rdesktop-vrdp_DEFS.linux = \ 44 HAVE_MNTENT_H=1 HAVE_SETMNTENT=1 STAT_STATVFS=1 HAVE_STRUCT_STATFS_F_NAMELEN=1 \ 45 RDPSND_OSS=1 WITH_RDPUSB=1 43 46 ifdef VBOX_WITHOUT_LINUX_COMPILER_H 44 rdesktop-vrdp_DEFS += VBOX_WITHOUT_LINUX_COMPILER_H47 rdesktop-vrdp_DEFS.linux += VBOX_WITHOUT_LINUX_COMPILER_H 45 48 endif 49 # @todo once rdp proxy is available on Solaris, add WITH_RDPUSB=1 50 rdesktop-vrdp_DEFS.solaris = \ 51 HAVE_SYS_FILIO_H=1 RDPSND_SUN=1 HAVE_ICONV_H=1 ICONV_CONST=const STAT_STATVFS64=1 _FILE_OFFSET_BITS=64 52 46 53 rdesktop-vrdp_SOURCES = \ 47 54 tcp.c \ … … 76 83 rdpsnd_dsp.c \ 77 84 rdpsnd_oss.c 78 rdesktop-vrdp_SOURCES += \ 85 # @todo implement usb proxy for Solaris 86 rdesktop-vrdp_SOURCES.linux = \ 79 87 vrdp/rdpusb.c \ 80 88 vrdp/USBProxyDevice-linux.c … … 83 91 $(VBOX_LIBPATH_X11) 84 92 rdesktop-vrdp_LIBS = \ 85 X11 \ 86 crypto 93 X11 87 94 88 95 # -
trunk/src/VBox/RDP/client/vrdp/USBProxyDevice-linux.c
r9902 r11610 432 432 uint32_t uDev; 433 433 int rc = RTStrToUInt32Ex(psz + 1, NULL, 10, &uDev); 434 if ( VBOX_SUCCESS(rc))434 if (RT_SUCCESS(rc)) 435 435 { 436 436 /* the bus number */ … … 441 441 uint32_t uBus; 442 442 rc = RTStrToUInt32Ex(psz + 1, NULL, 10, &uBus); 443 if ( VBOX_SUCCESS(rc))443 if (RT_SUCCESS(rc)) 444 444 { 445 445 strcpy(psz + 1, "devices"); … … 451 451 PRTSTREAM pFile; 452 452 rc = RTStrmOpen(pszDevices, "r", &pFile); 453 if ( VBOX_SUCCESS(rc))453 if (RT_SUCCESS(rc)) 454 454 { 455 455 char szLine[1024]; 456 while ( VBOX_SUCCESS(RTStrmGetLine(pFile, szLine, sizeof(szLine))))456 while (RT_SUCCESS(RTStrmGetLine(pFile, szLine, sizeof(szLine)))) 457 457 { 458 458 /* we're only interested in 'T:' lines. */ … … 487 487 * Scan until we find a selected configuration, the next device, or EOF. 488 488 */ 489 while ( VBOX_SUCCESS(RTStrmGetLine(pFile, szLine, sizeof(szLine))))489 while (RT_SUCCESS(RTStrmGetLine(pFile, szLine, sizeof(szLine)))) 490 490 { 491 491 psz = RTStrStripL(szLine); … … 504 504 psz = RTStrStripL(psz + 5); 505 505 rc = RTStrToUInt32Ex(psz, &pszNext, 10, &u); AssertRC(rc); 506 if ( VBOX_SUCCESS(rc))506 if (RT_SUCCESS(rc)) 507 507 { 508 508 if (piFirstCfg) … … 556 556 RTFILE File; 557 557 int rc = RTFileOpen(&File, pszAddress, RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE); 558 if ( VBOX_SUCCESS(rc))558 if (RT_SUCCESS(rc)) 559 559 { 560 560 /* … … 566 566 pDevLnx->File = File; 567 567 rc = RTCritSectInit(&pDevLnx->CritSect); 568 if ( VBOX_SUCCESS(rc))568 if (RT_SUCCESS(rc)) 569 569 { 570 570 pProxyDev->Backend.pv = pDevLnx; … … 907 907 if (VBOX_FAILURE(rc2)) 908 908 usbProxLinuxUrbUnplugged(pProxyDev); 909 if ( VBOX_SUCCESS(rc2))909 if (RT_SUCCESS(rc2)) 910 910 { 911 911 ASMAtomicDecU32(&g_cResetActive); -
trunk/src/VBox/RDP/client/vrdp/vrdpusb.h
r9902 r11610 74 74 #define VERR_VUSB_USBFS_PERMISSION (-2005) 75 75 76 #define VBOX_SUCCESS(_rc) ((_rc) >= 0)76 #define RT_SUCCESS(_rc) ((_rc) >= 0) 77 77 78 78 #define RTFILE int … … 99 99 } while (0) 100 100 101 #define AssertRC(_rc) Assert( VBOX_SUCCESS(_rc))102 103 #define RT_FAILURE(_rc) (! VBOX_SUCCESS(_rc))101 #define AssertRC(_rc) Assert(RT_SUCCESS(_rc)) 102 103 #define RT_FAILURE(_rc) (!RT_SUCCESS(_rc)) 104 104 105 105 #define NOREF(_a) ((void)_a)
Note:
See TracChangeset
for help on using the changeset viewer.