VirtualBox

source: vbox/trunk/include/VBox/ssm.h@ 7409

Last change on this file since 7409 was 7112, checked in by vboxsync, 17 years ago

Removed duplicate docs.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 18.1 KB
Line 
1/** @file
2 * SSM - The Save State Manager.
3 */
4
5/*
6 * Copyright (C) 2006-2007 innotek GmbH
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * The contents of this file may alternatively be used under the terms
17 * of the Common Development and Distribution License Version 1.0
18 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
19 * VirtualBox OSE distribution, in which case the provisions of the
20 * CDDL are applicable instead of those of the GPL.
21 *
22 * You may elect to license modified versions of this file under the
23 * terms and conditions of either the GPL or the CDDL or both.
24 */
25
26#ifndef ___VBox_ssm_h
27#define ___VBox_ssm_h
28
29#include <VBox/cdefs.h>
30#include <VBox/types.h>
31#include <VBox/tm.h>
32#include <VBox/vmapi.h>
33
34__BEGIN_DECLS
35
36/** @defgroup grp_ssm The Saved State Manager API
37 * @{
38 */
39
40/**
41 * Determine the major version of the SSM version. If the major SSM version of two snapshots is
42 * different, the snapshots are incompatible.
43 */
44#define SSM_VERSION_MAJOR(ver) ((ver) & 0xffff0000)
45
46/**
47 * Determine the minor version of the SSM version. If the major SSM version of two snapshots is
48 * the same, the code must handle incompatibilies between minor version changes (e.g. use dummy
49 * values for non-existent fields).
50 */
51#define SSM_VERSION_MINOR(ver) ((ver) & 0x0000ffff)
52
53/**
54 * Determine if the major version changed between two SSM versions.
55 */
56#define SSM_VERSION_MAJOR_CHANGED(ver1,ver2) (SSM_VERSION_MAJOR(ver1) != SSM_VERSION_MAJOR(ver2))
57
58
59#ifdef IN_RING3
60/** @defgroup grp_ssm_r3 The SSM Host Context Ring-3 API
61 * @{
62 */
63
64
65/**
66 * What to do after the save/load operation.
67 */
68typedef enum SSMAFTER
69{
70 /** Will resume the loaded state. */
71 SSMAFTER_RESUME = 1,
72 /** Will destroy the VM after saving. */
73 SSMAFTER_DESTROY,
74 /** Will continue execution after saving the VM. */
75 SSMAFTER_CONTINUE,
76 /** Will debug the saved state.
77 * This is used to drop some of the stricter consitentcy checks so it'll
78 * load fine in the debugger or animator. */
79 SSMAFTER_DEBUG_IT,
80 /** The file was opened using SSMR3Open() and we have no idea what the plan is. */
81 SSMAFTER_OPENED
82} SSMAFTER;
83
84
85/**
86 * A structure field description.
87 */
88typedef struct SSMFIELD
89{
90 /** Field offset into the structure. */
91 uint32_t off;
92 /** The size of the field. */
93 uint32_t cb;
94} SSMFIELD;
95/** Pointer to a structure field description. */
96typedef SSMFIELD *PSSMFIELD;
97/** Pointer to a const structure field description. */
98typedef const SSMFIELD *PCSSMFIELD;
99
100/** Emit a SSMFIELD array entry. */
101#define SSMFIELD_ENTRY(Type, Field) { RT_OFFSETOF(Type, Field), RT_SIZEOFMEMB(Type, Field) }
102/** Emit the terminating entry of a SSMFIELD array. */
103#define SSMFIELD_ENTRY_TERM() { UINT32_MAX, UINT32_MAX }
104
105
106
107/** The PDM Device callback variants.
108 * @{
109 */
110
111/**
112 * Prepare state save operation.
113 *
114 * @returns VBox status code.
115 * @param pDevIns Device instance of the device which registered the data unit.
116 * @param pSSM SSM operation handle.
117 */
118typedef DECLCALLBACK(int) FNSSMDEVSAVEPREP(PPDMDEVINS pDevIns, PSSMHANDLE pSSM);
119/** Pointer to a FNSSMDEVSAVEPREP() function. */
120typedef FNSSMDEVSAVEPREP *PFNSSMDEVSAVEPREP;
121
122/**
123 * Execute state save operation.
124 *
125 * @returns VBox status code.
126 * @param pDevIns Device instance of the device which registered the data unit.
127 * @param pSSM SSM operation handle.
128 */
129typedef DECLCALLBACK(int) FNSSMDEVSAVEEXEC(PPDMDEVINS pDevIns, PSSMHANDLE pSSM);
130/** Pointer to a FNSSMDEVSAVEEXEC() function. */
131typedef FNSSMDEVSAVEEXEC *PFNSSMDEVSAVEEXEC;
132
133/**
134 * Done state save operation.
135 *
136 * @returns VBox status code.
137 * @param pDevIns Device instance of the device which registered the data unit.
138 * @param pSSM SSM operation handle.
139 */
140typedef DECLCALLBACK(int) FNSSMDEVSAVEDONE(PPDMDEVINS pDevIns, PSSMHANDLE pSSM);
141/** Pointer to a FNSSMDEVSAVEDONE() function. */
142typedef FNSSMDEVSAVEDONE *PFNSSMDEVSAVEDONE;
143
144/**
145 * Prepare state load operation.
146 *
147 * @returns VBox status code.
148 * @param pDevIns Device instance of the device which registered the data unit.
149 * @param pSSM SSM operation handle.
150 */
151typedef DECLCALLBACK(int) FNSSMDEVLOADPREP(PPDMDEVINS pDevIns, PSSMHANDLE pSSM);
152/** Pointer to a FNSSMDEVLOADPREP() function. */
153typedef FNSSMDEVLOADPREP *PFNSSMDEVLOADPREP;
154
155/**
156 * Execute state load operation.
157 *
158 * @returns VBox status code.
159 * @param pDevIns Device instance of the device which registered the data unit.
160 * @param pSSM SSM operation handle.
161 * @param u32Version Data layout version.
162 */
163typedef DECLCALLBACK(int) FNSSMDEVLOADEXEC(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t u32Version);
164/** Pointer to a FNSSMDEVLOADEXEC() function. */
165typedef FNSSMDEVLOADEXEC *PFNSSMDEVLOADEXEC;
166
167/**
168 * Done state load operation.
169 *
170 * @returns VBox load code.
171 * @param pDevIns Device instance of the device which registered the data unit.
172 * @param pSSM SSM operation handle.
173 */
174typedef DECLCALLBACK(int) FNSSMDEVLOADDONE(PPDMDEVINS pDevIns, PSSMHANDLE pSSM);
175/** Pointer to a FNSSMDEVLOADDONE() function. */
176typedef FNSSMDEVLOADDONE *PFNSSMDEVLOADDONE;
177
178/** @} */
179
180
181/** The PDM Driver callback variants.
182 * @{
183 */
184
185/**
186 * Prepare state save operation.
187 *
188 * @returns VBox status code.
189 * @param pDrvIns Driver instance of the driver which registered the data unit.
190 * @param pSSM SSM operation handle.
191 */
192typedef DECLCALLBACK(int) FNSSMDRVSAVEPREP(PPDMDRVINS pDrvIns, PSSMHANDLE pSSM);
193/** Pointer to a FNSSMDRVSAVEPREP() function. */
194typedef FNSSMDRVSAVEPREP *PFNSSMDRVSAVEPREP;
195
196/**
197 * Execute state save operation.
198 *
199 * @returns VBox status code.
200 * @param pDrvIns Driver instance of the driver which registered the data unit.
201 * @param pSSM SSM operation handle.
202 */
203typedef DECLCALLBACK(int) FNSSMDRVSAVEEXEC(PPDMDRVINS pDrvIns, PSSMHANDLE pSSM);
204/** Pointer to a FNSSMDRVSAVEEXEC() function. */
205typedef FNSSMDRVSAVEEXEC *PFNSSMDRVSAVEEXEC;
206
207/**
208 * Done state save operation.
209 *
210 * @returns VBox status code.
211 * @param pDrvIns Driver instance of the driver which registered the data unit.
212 * @param pSSM SSM operation handle.
213 */
214typedef DECLCALLBACK(int) FNSSMDRVSAVEDONE(PPDMDRVINS pDrvIns, PSSMHANDLE pSSM);
215/** Pointer to a FNSSMDRVSAVEDONE() function. */
216typedef FNSSMDRVSAVEDONE *PFNSSMDRVSAVEDONE;
217
218/**
219 * Prepare state load operation.
220 *
221 * @returns VBox status code.
222 * @param pDrvIns Driver instance of the driver which registered the data unit.
223 * @param pSSM SSM operation handle.
224 */
225typedef DECLCALLBACK(int) FNSSMDRVLOADPREP(PPDMDRVINS pDrvIns, PSSMHANDLE pSSM);
226/** Pointer to a FNSSMDRVLOADPREP() function. */
227typedef FNSSMDRVLOADPREP *PFNSSMDRVLOADPREP;
228
229/**
230 * Execute state load operation.
231 *
232 * @returns VBox status code.
233 * @param pDrvIns Driver instance of the driver which registered the data unit.
234 * @param pSSM SSM operation handle.
235 * @param u32Version Data layout version.
236 */
237typedef DECLCALLBACK(int) FNSSMDRVLOADEXEC(PPDMDRVINS pDrvIns, PSSMHANDLE pSSM, uint32_t u32Version);
238/** Pointer to a FNSSMDRVLOADEXEC() function. */
239typedef FNSSMDRVLOADEXEC *PFNSSMDRVLOADEXEC;
240
241/**
242 * Done state load operation.
243 *
244 * @returns VBox load code.
245 * @param pDrvIns Driver instance of the driver which registered the data unit.
246 * @param pSSM SSM operation handle.
247 */
248typedef DECLCALLBACK(int) FNSSMDRVLOADDONE(PPDMDRVINS pDrvIns, PSSMHANDLE pSSM);
249/** Pointer to a FNSSMDRVLOADDONE() function. */
250typedef FNSSMDRVLOADDONE *PFNSSMDRVLOADDONE;
251
252/** @} */
253
254
255/** The internal callback variants.
256 * @{
257 */
258
259/**
260 * Prepare state save operation.
261 *
262 * @returns VBox status code.
263 * @param pVM VM Handle.
264 * @param pSSM SSM operation handle.
265 */
266typedef DECLCALLBACK(int) FNSSMINTSAVEPREP(PVM pVM, PSSMHANDLE pSSM);
267/** Pointer to a FNSSMINTSAVEPREP() function. */
268typedef FNSSMINTSAVEPREP *PFNSSMINTSAVEPREP;
269
270/**
271 * Execute state save operation.
272 *
273 * @returns VBox status code.
274 * @param pVM VM Handle.
275 * @param pSSM SSM operation handle.
276 */
277typedef DECLCALLBACK(int) FNSSMINTSAVEEXEC(PVM pVM, PSSMHANDLE pSSM);
278/** Pointer to a FNSSMINTSAVEEXEC() function. */
279typedef FNSSMINTSAVEEXEC *PFNSSMINTSAVEEXEC;
280
281/**
282 * Done state save operation.
283 *
284 * @returns VBox status code.
285 * @param pVM VM Handle.
286 * @param pSSM SSM operation handle.
287 */
288typedef DECLCALLBACK(int) FNSSMINTSAVEDONE(PVM pVM, PSSMHANDLE pSSM);
289/** Pointer to a FNSSMINTSAVEDONE() function. */
290typedef FNSSMINTSAVEDONE *PFNSSMINTSAVEDONE;
291
292/**
293 * Prepare state load operation.
294 *
295 * @returns VBox status code.
296 * @param pVM VM Handle.
297 * @param pSSM SSM operation handle.
298 */
299typedef DECLCALLBACK(int) FNSSMINTLOADPREP(PVM pVM, PSSMHANDLE pSSM);
300/** Pointer to a FNSSMINTLOADPREP() function. */
301typedef FNSSMINTLOADPREP *PFNSSMINTLOADPREP;
302
303/**
304 * Execute state load operation.
305 *
306 * @returns VBox status code.
307 * @param pVM VM Handle.
308 * @param pSSM SSM operation handle.
309 * @param u32Version Data layout version.
310 */
311typedef DECLCALLBACK(int) FNSSMINTLOADEXEC(PVM pVM, PSSMHANDLE pSSM, uint32_t u32Version);
312/** Pointer to a FNSSMINTLOADEXEC() function. */
313typedef FNSSMINTLOADEXEC *PFNSSMINTLOADEXEC;
314
315/**
316 * Done state load operation.
317 *
318 * @returns VBox load code.
319 * @param pVM VM Handle.
320 * @param pSSM SSM operation handle.
321 */
322typedef DECLCALLBACK(int) FNSSMINTLOADDONE(PVM pVM, PSSMHANDLE pSSM);
323/** Pointer to a FNSSMINTLOADDONE() function. */
324typedef FNSSMINTLOADDONE *PFNSSMINTLOADDONE;
325
326/** @} */
327
328
329/** The External callback variants.
330 * @{
331 */
332
333/**
334 * Prepare state save operation.
335 *
336 * @returns VBox status code.
337 * @param pSSM SSM operation handle.
338 * @param pvUser User argument.
339 */
340typedef DECLCALLBACK(int) FNSSMEXTSAVEPREP(PSSMHANDLE pSSM, void *pvUser);
341/** Pointer to a FNSSMEXTSAVEPREP() function. */
342typedef FNSSMEXTSAVEPREP *PFNSSMEXTSAVEPREP;
343
344/**
345 * Execute state save operation.
346 *
347 * @param pSSM SSM operation handle.
348 * @param pvUser User argument.
349 * @author The lack of return code is for legacy reasons.
350 */
351typedef DECLCALLBACK(void) FNSSMEXTSAVEEXEC(PSSMHANDLE pSSM, void *pvUser);
352/** Pointer to a FNSSMEXTSAVEEXEC() function. */
353typedef FNSSMEXTSAVEEXEC *PFNSSMEXTSAVEEXEC;
354
355/**
356 * Done state save operation.
357 *
358 * @returns VBox status code.
359 * @param pSSM SSM operation handle.
360 * @param pvUser User argument.
361 */
362typedef DECLCALLBACK(int) FNSSMEXTSAVEDONE(PSSMHANDLE pSSM, void *pvUser);
363/** Pointer to a FNSSMEXTSAVEDONE() function. */
364typedef FNSSMEXTSAVEDONE *PFNSSMEXTSAVEDONE;
365
366/**
367 * Prepare state load operation.
368 *
369 * @returns VBox status code.
370 * @param pSSM SSM operation handle.
371 * @param pvUser User argument.
372 */
373typedef DECLCALLBACK(int) FNSSMEXTLOADPREP(PSSMHANDLE pSSM, void *pvUser);
374/** Pointer to a FNSSMEXTLOADPREP() function. */
375typedef FNSSMEXTLOADPREP *PFNSSMEXTLOADPREP;
376
377/**
378 * Execute state load operation.
379 *
380 * @returns 0 on success.
381 * @returns Not 0 on failure.
382 * @param pSSM SSM operation handle.
383 * @param pvUser User argument.
384 * @param u32Version Data layout version.
385 * @remark The odd return value is for legacy reasons.
386 */
387typedef DECLCALLBACK(int) FNSSMEXTLOADEXEC(PSSMHANDLE pSSM, void *pvUser, uint32_t u32Version);
388/** Pointer to a FNSSMEXTLOADEXEC() function. */
389typedef FNSSMEXTLOADEXEC *PFNSSMEXTLOADEXEC;
390
391/**
392 * Done state load operation.
393 *
394 * @returns VBox load code.
395 * @param pSSM SSM operation handle.
396 * @param pvUser User argument.
397 */
398typedef DECLCALLBACK(int) FNSSMEXTLOADDONE(PSSMHANDLE pSSM, void *pvUser);
399/** Pointer to a FNSSMEXTLOADDONE() function. */
400typedef FNSSMEXTLOADDONE *PFNSSMEXTLOADDONE;
401
402/** @} */
403
404
405SSMR3DECL(int) SSMR3Register(PVM pVM, PPDMDEVINS pDevIns, const char *pszName, uint32_t u32Instance, uint32_t u32Version, size_t cbGuess,
406 PFNSSMDEVSAVEPREP pfnSavePrep, PFNSSMDEVSAVEEXEC pfnSaveExec, PFNSSMDEVSAVEDONE pfnSaveDone,
407 PFNSSMDEVLOADPREP pfnLoadPrep, PFNSSMDEVLOADEXEC pfnLoadExec, PFNSSMDEVLOADDONE pfnLoadDone);
408SSMR3DECL(int) SSMR3RegisterDriver(PVM pVM, PPDMDRVINS pDrvIns, const char *pszName, uint32_t u32Instance, uint32_t u32Version, size_t cbGuess,
409 PFNSSMDRVSAVEPREP pfnSavePrep, PFNSSMDRVSAVEEXEC pfnSaveExec, PFNSSMDRVSAVEDONE pfnSaveDone,
410 PFNSSMDRVLOADPREP pfnLoadPrep, PFNSSMDRVLOADEXEC pfnLoadExec, PFNSSMDRVLOADDONE pfnLoadDone);
411SSMR3DECL(int) SSMR3RegisterInternal(PVM pVM, const char *pszName, uint32_t u32Instance, uint32_t u32Version, size_t cbGuess,
412 PFNSSMINTSAVEPREP pfnSavePrep, PFNSSMINTSAVEEXEC pfnSaveExec, PFNSSMINTSAVEDONE pfnSaveDone,
413 PFNSSMINTLOADPREP pfnLoadPrep, PFNSSMINTLOADEXEC pfnLoadExec, PFNSSMINTLOADDONE pfnLoadDone);
414SSMR3DECL(int) SSMR3RegisterExternal(PVM pVM, const char *pszName, uint32_t u32Instance, uint32_t u32Version, size_t cbGuess,
415 PFNSSMEXTSAVEPREP pfnSavePrep, PFNSSMEXTSAVEEXEC pfnSaveExec, PFNSSMEXTSAVEDONE pfnSaveDone,
416 PFNSSMEXTLOADPREP pfnLoadPrep, PFNSSMEXTLOADEXEC pfnLoadExec, PFNSSMEXTLOADDONE pfnLoadDone, void *pvUser);
417SSMR3DECL(int) SSMR3Deregister(PVM pVM, PPDMDEVINS pDevIns, const char *pszName, uint32_t u32Instance);
418SSMR3DECL(int) SSMR3DeregisterDriver(PVM pVM, PPDMDRVINS pDrvIns, const char *pszName, uint32_t u32Instance);
419SSMR3DECL(int) SSMR3DeregisterInternal(PVM pVM, const char *pszName);
420SSMR3DECL(int) SSMR3DeregisterExternal(PVM pVM, const char *pszName);
421SSMR3DECL(int) SSMR3Save(PVM pVM, const char *pszFilename, SSMAFTER enmAfter, PFNVMPROGRESS pfnProgress, void *pvUser);
422SSMR3DECL(int) SSMR3Load(PVM pVM, const char *pszFilename, SSMAFTER enmAfter, PFNVMPROGRESS pfnProgress, void *pvUser);
423SSMR3DECL(int) SSMR3ValidateFile(const char *pszFilename);
424SSMR3DECL(int) SSMR3Open(const char *pszFilename, unsigned fFlags, PSSMHANDLE *ppSSM);
425SSMR3DECL(int) SSMR3Close(PSSMHANDLE pSSM);
426SSMR3DECL(int) SSMR3Seek(PSSMHANDLE pSSM, const char *pszUnit, uint32_t iInstance, uint32_t *piVersion);
427SSMR3DECL(int) SSMR3HandleGetStatus(PSSMHANDLE pSSM);
428SSMR3DECL(int) SSMR3HandleSetStatus(PSSMHANDLE pSSM, int iStatus);
429SSMR3DECL(SSMAFTER) SSMR3HandleGetAfter(PSSMHANDLE pSSM);
430
431
432/** Save operations.
433 * @{
434 */
435SSMR3DECL(int) SSMR3PutStruct(PSSMHANDLE pSSM, const void *pvStruct, PCSSMFIELD paFields);
436SSMR3DECL(int) SSMR3PutBool(PSSMHANDLE pSSM, bool fBool);
437SSMR3DECL(int) SSMR3PutU8(PSSMHANDLE pSSM, uint8_t u8);
438SSMR3DECL(int) SSMR3PutS8(PSSMHANDLE pSSM, int8_t i8);
439SSMR3DECL(int) SSMR3PutU16(PSSMHANDLE pSSM, uint16_t u16);
440SSMR3DECL(int) SSMR3PutS16(PSSMHANDLE pSSM, int16_t i16);
441SSMR3DECL(int) SSMR3PutU32(PSSMHANDLE pSSM, uint32_t u32);
442SSMR3DECL(int) SSMR3PutS32(PSSMHANDLE pSSM, int32_t i32);
443SSMR3DECL(int) SSMR3PutU64(PSSMHANDLE pSSM, uint64_t u64);
444SSMR3DECL(int) SSMR3PutS64(PSSMHANDLE pSSM, int64_t i64);
445SSMR3DECL(int) SSMR3PutU128(PSSMHANDLE pSSM, uint128_t u128);
446SSMR3DECL(int) SSMR3PutS128(PSSMHANDLE pSSM, int128_t i128);
447SSMR3DECL(int) SSMR3PutUInt(PSSMHANDLE pSSM, RTUINT u);
448SSMR3DECL(int) SSMR3PutSInt(PSSMHANDLE pSSM, RTINT i);
449SSMR3DECL(int) SSMR3PutGCUInt(PSSMHANDLE pSSM, RTGCUINT u);
450SSMR3DECL(int) SSMR3PutGCSInt(PSSMHANDLE pSSM, RTGCINT i);
451SSMR3DECL(int) SSMR3PutGCPhys32(PSSMHANDLE pSSM, RTGCPHYS32 GCPhys);
452SSMR3DECL(int) SSMR3PutGCPhys(PSSMHANDLE pSSM, RTGCPHYS GCPhys);
453SSMR3DECL(int) SSMR3PutGCPtr(PSSMHANDLE pSSM, RTGCPTR GCPtr);
454SSMR3DECL(int) SSMR3PutGCUIntPtr(PSSMHANDLE pSSM, RTGCUINTPTR GCPtr);
455SSMR3DECL(int) SSMR3PutHCUInt(PSSMHANDLE pSSM, RTHCUINT u);
456SSMR3DECL(int) SSMR3PutHCSInt(PSSMHANDLE pSSM, RTHCINT i);
457SSMR3DECL(int) SSMR3PutIOPort(PSSMHANDLE pSSM, RTIOPORT IOPort);
458SSMR3DECL(int) SSMR3PutSel(PSSMHANDLE pSSM, RTSEL Sel);
459SSMR3DECL(int) SSMR3PutMem(PSSMHANDLE pSSM, const void *pv, size_t cb);
460SSMR3DECL(int) SSMR3PutStrZ(PSSMHANDLE pSSM, const char *psz);
461/** @} */
462
463
464
465/** Load operations.
466 * @{
467 */
468SSMR3DECL(int) SSMR3GetStruct(PSSMHANDLE pSSM, void *pvStruct, PCSSMFIELD paFields);
469SSMR3DECL(int) SSMR3GetBool(PSSMHANDLE pSSM, bool *pfBool);
470SSMR3DECL(int) SSMR3GetU8(PSSMHANDLE pSSM, uint8_t *pu8);
471SSMR3DECL(int) SSMR3GetS8(PSSMHANDLE pSSM, int8_t *pi8);
472SSMR3DECL(int) SSMR3GetU16(PSSMHANDLE pSSM, uint16_t *pu16);
473SSMR3DECL(int) SSMR3GetS16(PSSMHANDLE pSSM, int16_t *pi16);
474SSMR3DECL(int) SSMR3GetU32(PSSMHANDLE pSSM, uint32_t *pu32);
475SSMR3DECL(int) SSMR3GetS32(PSSMHANDLE pSSM, int32_t *pi32);
476SSMR3DECL(int) SSMR3GetU64(PSSMHANDLE pSSM, uint64_t *pu64);
477SSMR3DECL(int) SSMR3GetS64(PSSMHANDLE pSSM, int64_t *pi64);
478SSMR3DECL(int) SSMR3GetU128(PSSMHANDLE pSSM, uint128_t *pu128);
479SSMR3DECL(int) SSMR3GetS128(PSSMHANDLE pSSM, int128_t *pi128);
480SSMR3DECL(int) SSMR3GetUInt(PSSMHANDLE pSSM, PRTUINT pu);
481SSMR3DECL(int) SSMR3GetSInt(PSSMHANDLE pSSM, PRTINT pi);
482SSMR3DECL(int) SSMR3GetGCUInt(PSSMHANDLE pSSM, PRTGCUINT pu);
483SSMR3DECL(int) SSMR3GetGCSInt(PSSMHANDLE pSSM, PRTGCINT pi);
484SSMR3DECL(int) SSMR3GetGCPhys32(PSSMHANDLE pSSM, PRTGCPHYS32 pGCPhys);
485SSMR3DECL(int) SSMR3GetGCPhys(PSSMHANDLE pSSM, PRTGCPHYS pGCPhys);
486SSMR3DECL(int) SSMR3GetGCPtr(PSSMHANDLE pSSM, PRTGCPTR pGCPtr);
487SSMR3DECL(int) SSMR3GetGCUIntPtr(PSSMHANDLE pSSM, PRTGCUINTPTR pGCPtr);
488SSMR3DECL(int) SSMR3GetIOPort(PSSMHANDLE pSSM, PRTIOPORT pIOPort);
489SSMR3DECL(int) SSMR3GetHCUInt(PSSMHANDLE pSSM, PRTHCUINT pu);
490SSMR3DECL(int) SSMR3GetHCSInt(PSSMHANDLE pSSM, PRTHCINT pi);
491SSMR3DECL(int) SSMR3GetSel(PSSMHANDLE pSSM, PRTSEL pSel);
492SSMR3DECL(int) SSMR3GetMem(PSSMHANDLE pSSM, void *pv, size_t cb);
493SSMR3DECL(int) SSMR3GetStrZ(PSSMHANDLE pSSM, char *psz, size_t cbMax);
494SSMR3DECL(int) SSMR3GetStrZEx(PSSMHANDLE pSSM, char *psz, size_t cbMax, size_t *pcbStr);
495SSMR3DECL(int) SSMR3GetTimer(PSSMHANDLE pSSM, PTMTIMER pTimer);
496
497/** @} */
498
499/** @} */
500#endif /* IN_RING3 */
501
502
503/** @} */
504
505__END_DECLS
506
507#endif
508
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette