Changeset 11820 in vbox for trunk/src/VBox/Main/ConsoleVRDPServer.cpp
- Timestamp:
- Aug 29, 2008 2:09:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleVRDPServer.cpp
r8155 r11820 35 35 36 36 #include <VBox/err.h> 37 #ifdef VBOX_ VRDP37 #ifdef VBOX_WITH_VRDP 38 38 #include <VBox/VRDPOrders.h> 39 #endif /* VBOX_ VRDP */39 #endif /* VBOX_WITH_VRDP */ 40 40 41 41 class VRDPConsoleCallback : public IConsoleCallback … … 579 579 //////////////////////////////////////////////////////////////////////////////// 580 580 581 #ifdef VBOX_ VRDP581 #ifdef VBOX_WITH_VRDP 582 582 RTLDRMOD ConsoleVRDPServer::mVRDPLibrary; 583 583 … … 1007 1007 server->mConsole->getDisplay ()->SetVideoModeHint(cWidth, cHeight, cBitsPerPixel, uScreenId); 1008 1008 } 1009 #endif /* VBOX_ VRDP */1009 #endif /* VBOX_WITH_VRDP */ 1010 1010 1011 1011 ConsoleVRDPServer::ConsoleVRDPServer (Console *console) … … 1028 1028 #endif 1029 1029 1030 #ifdef VBOX_ VRDP1030 #ifdef VBOX_WITH_VRDP 1031 1031 mhServer = 0; 1032 1032 … … 1051 1051 mConsoleCallback->AddRef(); 1052 1052 console->RegisterCallback(mConsoleCallback); 1053 #endif /* VBOX_ VRDP */1053 #endif /* VBOX_WITH_VRDP */ 1054 1054 1055 1055 mAuthLibrary = 0; … … 1060 1060 Stop (); 1061 1061 1062 #ifdef VBOX_ VRDP1062 #ifdef VBOX_WITH_VRDP 1063 1063 if (mConsoleCallback) 1064 1064 { … … 1077 1077 } 1078 1078 } 1079 #endif /* VBOX_ VRDP */1079 #endif /* VBOX_WITH_VRDP */ 1080 1080 1081 1081 if (RTCritSectIsInitialized (&mCritSect)) … … 1089 1089 { 1090 1090 LogFlowMember(("ConsoleVRDPServer::Launch\n")); 1091 #ifdef VBOX_ VRDP1091 #ifdef VBOX_WITH_VRDP 1092 1092 int rc = VINF_SUCCESS; 1093 1093 IVRDPServer *vrdpserver = mConsole->getVRDPServer (); … … 1122 1122 int rc = VERR_NOT_SUPPORTED; 1123 1123 LogRel(("VRDP: this version does not include the VRDP server.\n")); 1124 #endif /* VBOX_ VRDP */1124 #endif /* VBOX_WITH_VRDP */ 1125 1125 return rc; 1126 1126 } … … 1128 1128 void ConsoleVRDPServer::EnableConnections (void) 1129 1129 { 1130 #ifdef VBOX_ VRDP1130 #ifdef VBOX_WITH_VRDP 1131 1131 if (mpEntryPoints && mhServer) 1132 1132 { 1133 1133 mpEntryPoints->VRDPEnableConnections (mhServer, true); 1134 1134 } 1135 #endif /* VBOX_ VRDP */1135 #endif /* VBOX_WITH_VRDP */ 1136 1136 } 1137 1137 1138 1138 void ConsoleVRDPServer::MousePointerUpdate (const VRDPCOLORPOINTER *pPointer) 1139 1139 { 1140 #ifdef VBOX_ VRDP1140 #ifdef VBOX_WITH_VRDP 1141 1141 if (mpEntryPoints && mhServer) 1142 1142 { 1143 1143 mpEntryPoints->VRDPColorPointer (mhServer, pPointer); 1144 1144 } 1145 #endif /* VBOX_ VRDP */1145 #endif /* VBOX_WITH_VRDP */ 1146 1146 } 1147 1147 1148 1148 void ConsoleVRDPServer::MousePointerHide (void) 1149 1149 { 1150 #ifdef VBOX_ VRDP1150 #ifdef VBOX_WITH_VRDP 1151 1151 if (mpEntryPoints && mhServer) 1152 1152 { 1153 1153 mpEntryPoints->VRDPHidePointer (mhServer); 1154 1154 } 1155 #endif /* VBOX_ VRDP */1155 #endif /* VBOX_WITH_VRDP */ 1156 1156 } 1157 1157 … … 1160 1160 Assert(VALID_PTR(this)); /** @todo r=bird: there are(/was) some odd cases where this buster was invalid on 1161 1161 * linux. Just remove this when it's 100% sure that problem has been fixed. */ 1162 #ifdef VBOX_ VRDP1162 #ifdef VBOX_WITH_VRDP 1163 1163 if (mhServer) 1164 1164 { … … 1173 1173 } 1174 1174 } 1175 #endif /* VBOX_ VRDP */1175 #endif /* VBOX_WITH_VRDP */ 1176 1176 1177 1177 #ifdef VBOX_WITH_USB … … 1499 1499 int rc = VINF_SUCCESS; 1500 1500 1501 #ifdef VBOX_ VRDP1501 #ifdef VBOX_WITH_VRDP 1502 1502 ConsoleVRDPServer *pServer = static_cast <ConsoleVRDPServer *>(pvExtension); 1503 1503 … … 1558 1558 rc = VERR_NOT_SUPPORTED; 1559 1559 } 1560 #endif /* VBOX_ VRDP */1560 #endif /* VBOX_WITH_VRDP */ 1561 1561 1562 1562 return rc; … … 1858 1858 void ConsoleVRDPServer::SendUpdate (unsigned uScreenId, void *pvUpdate, uint32_t cbUpdate) const 1859 1859 { 1860 #ifdef VBOX_ VRDP1860 #ifdef VBOX_WITH_VRDP 1861 1861 if (mpEntryPoints && mhServer) 1862 1862 { … … 1868 1868 void ConsoleVRDPServer::SendResize (void) const 1869 1869 { 1870 #ifdef VBOX_ VRDP1870 #ifdef VBOX_WITH_VRDP 1871 1871 if (mpEntryPoints && mhServer) 1872 1872 { … … 1878 1878 void ConsoleVRDPServer::SendUpdateBitmap (unsigned uScreenId, uint32_t x, uint32_t y, uint32_t w, uint32_t h) const 1879 1879 { 1880 #ifdef VBOX_ VRDP1880 #ifdef VBOX_WITH_VRDP 1881 1881 VRDPORDERHDR update; 1882 1882 update.x = x; … … 1893 1893 void ConsoleVRDPServer::SendAudioSamples (void *pvSamples, uint32_t cSamples, VRDPAUDIOFORMAT format) const 1894 1894 { 1895 #ifdef VBOX_ VRDP1895 #ifdef VBOX_WITH_VRDP 1896 1896 if (mpEntryPoints && mhServer) 1897 1897 { … … 1903 1903 void ConsoleVRDPServer::SendAudioVolume (uint16_t left, uint16_t right) const 1904 1904 { 1905 #ifdef VBOX_ VRDP1905 #ifdef VBOX_WITH_VRDP 1906 1906 if (mpEntryPoints && mhServer) 1907 1907 { … … 1913 1913 void ConsoleVRDPServer::SendUSBRequest (uint32_t u32ClientId, void *pvParms, uint32_t cbParms) const 1914 1914 { 1915 #ifdef VBOX_ VRDP1915 #ifdef VBOX_WITH_VRDP 1916 1916 if (mpEntryPoints && mhServer) 1917 1917 { … … 1923 1923 void ConsoleVRDPServer::QueryInfo (uint32_t index, void *pvBuffer, uint32_t cbBuffer, uint32_t *pcbOut) const 1924 1924 { 1925 #ifdef VBOX_ VRDP1925 #ifdef VBOX_WITH_VRDP 1926 1926 if (mpEntryPoints && mhServer) 1927 1927 { … … 1931 1931 } 1932 1932 1933 #ifdef VBOX_ VRDP1933 #ifdef VBOX_WITH_VRDP 1934 1934 /* note: static function now! */ 1935 1935 bool ConsoleVRDPServer::loadVRDPLibrary (void) … … 1991 1991 return (mVRDPLibrary != NULL); 1992 1992 } 1993 #endif /* VBOX_ VRDP */1993 #endif /* VBOX_WITH_VRDP */ 1994 1994 1995 1995 /*
Note:
See TracChangeset
for help on using the changeset viewer.