Changeset 82481 in vbox
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/VBoxClipboardSvc.h
r81796 r82481 34 34 * VBox < 6.1, deprecated: 35 35 * | First, initial implementation since feature was developed. 36 * Has no protocol handshake / versioning support, the client's 37 * waiting message also acted as retrieving the parameters from 38 * the host (always and only *exactly* two parameters). Does 39 * not have the ability to control / handle parallel transfers. 36 * Has no protocol handshake or support for feature exchange, 37 * the client's waiting message also acted as retrieving the 38 * parameters from the host (always and only *exactly* two 39 * parameters). Does not have the ability to control / handle parallel 40 * transfers. 40 41 * 41 42 * VBox >= 6.1: … … 61 62 #include <VBox/GuestHost/SharedClipboard-transfers.h> 62 63 #endif 63 64 /*65 * The saved state versions.66 * We're using it as a version field with the high bit set.67 */68 /** Adds the client's POD state and client state flags. */69 #define VBOX_SHCL_SSM_VER_2 UINT32_C(0x80000004)70 /** New saved state (since VBox 6.1 Beta 2). */71 #define VBOX_SHCL_SSM_VER_1 UINT32_C(0x80000003)72 /** Older saved states (VBox < 6.1). Includes legacy protocol state. */73 #define VBOX_SHCL_SSM_VER_0 UINT32_C(0x80000002)74 75 /** Latest Shared Clipboard SSM version. */76 #define VBOX_SHCL_SSM_VER_LATEST VBOX_SHCL_SSM_VER_277 64 78 65 /* -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp
r82462 r82481 237 237 238 238 using namespace HGCM; 239 240 241 /********************************************************************************************************************************* 242 * Defined Constants And Macros * 243 *********************************************************************************************************************************/ 244 /** @name The saved state versions for the shared clipboard service. 245 * 246 * @note We set bit 31 because prior to version 0x80000002 there would be a 247 * structure size rather than a version number. Setting bit 31 dispells 248 * any possible ambiguity. 249 * 250 * @{ */ 251 /** The current saved state version. */ 252 #define VBOX_SHCL_SAVED_STATE_VER_CURRENT VBOX_SHCL_SAVED_STATE_VER_6_1RC1 253 /** Adds the client's POD state and client state flags. 254 * @since 6.1 RC1 */ 255 #define VBOX_SHCL_SAVED_STATE_VER_6_1RC1 UINT32_C(0x80000004) 256 /** First attempt saving state during @bugref{9437} development. 257 * @since 6.1 BETA 2 */ 258 #define VBOX_SHCL_SAVED_STATE_VER_6_1B2 UINT32_C(0x80000003) 259 /** First structured version. 260 * @since 3.1 / r53668 */ 261 #define VBOX_SHCL_SAVED_STATE_VER_3_1 UINT32_C(0x80000002) 262 /** This was just a state memory dump, including pointers and everything. 263 * @note This is not supported any more. Sorry. */ 264 #define VBOX_SHCL_SAVED_STATE_VER_NOT_SUPP (ARCH_BITS == 64 ? UINT32_C(72) : UINT32_C(48)) 265 /** @} */ 239 266 240 267 … … 2139 2166 2140 2167 /* Write Shared Clipboard saved state version. */ 2141 SSMR3PutU32(pSSM, VBOX_SHCL_S SM_VER_LATEST);2168 SSMR3PutU32(pSSM, VBOX_SHCL_SAVED_STATE_VER_CURRENT); 2142 2169 2143 2170 int rc = SSMR3PutStructEx(pSSM, &pClient->State, sizeof(pClient->State), 0 /*fFlags*/, &s_aShClSSMClientState[0], NULL); … … 2231 2258 LogFunc(("u32ClientID=%RU32, lenOrVer=%#RX64\n", u32ClientID, lenOrVer)); 2232 2259 2233 if (lenOrVer == VBOX_SHCL_SSM_VER_0) 2234 { 2260 if (lenOrVer == VBOX_SHCL_SAVED_STATE_VER_3_1) 2235 2261 return svcLoadStateV0(u32ClientID, pvClient, pSSM, uVersion); 2236 } 2237 else if (lenOrVer >= VBOX_SHCL_SSM_VER_1)2238 { 2239 if (lenOrVer >= VBOX_SHCL_S SM_VER_2)2262 2263 if (lenOrVer >= VBOX_SHCL_SAVED_STATE_VER_6_1B2) 2264 { 2265 if (lenOrVer >= VBOX_SHCL_SAVED_STATE_VER_6_1RC1) 2240 2266 { 2241 2267 rc = SSMR3GetStructEx(pSSM, &pClient->State, sizeof(pClient->State), 0 /* fFlags */,
Note:
See TracChangeset
for help on using the changeset viewer.

