VirtualBox

Changeset 17662 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Mar 11, 2009 8:21:04 AM (16 years ago)
Author:
vboxsync
Message:

SSM: SSMFIELD preps and ideas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/ssm.h

    r13596 r17662  
    8989/**
    9090 * A structure field description.
     91 *
     92 * @todo Add an type field here for recording what's a GCPtr, GCPhys or anything
     93 *       else that may change and is expected to continue to work.
     94 * @todo Later we need to add load transformations to this structure. I think a
     95 *       callback with a number of default transformations in SIG_DEF style
     96 *       would be good enough. The callback would take a user context from a new
     97 *       SSMR3GetStruct parameter or something.
    9198 */
    9299typedef struct SSMFIELD
     
    103110
    104111/** Emit a SSMFIELD array entry. */
    105 #define SSMFIELD_ENTRY(Type, Field) { RT_OFFSETOF(Type, Field), RT_SIZEOFMEMB(Type, Field) }
     112#define SSMFIELD_ENTRY(Type, Field)         { RT_OFFSETOF(Type, Field), RT_SIZEOFMEMB(Type, Field) }
     113/** Emit a SSMFIELD array entry for a RTGCPTR type. */
     114#define SSMFIELD_ENTRY_GCPTR(Type, Field)   SSMFIELD_ENTRY(Type, Field)
     115/** Emit a SSMFIELD array entry for a RTGCPHYS type. */
     116#define SSMFIELD_ENTRY_GCPHYS(Type, Field)  SSMFIELD_ENTRY(Type, Field)
    106117/** Emit the terminating entry of a SSMFIELD array. */
    107 #define SSMFIELD_ENTRY_TERM()       { UINT32_MAX, UINT32_MAX }
     118#define SSMFIELD_ENTRY_TERM()               { UINT32_MAX, UINT32_MAX }
    108119
    109120
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