Changeset 17662 in vbox for trunk/include/VBox
- Timestamp:
- Mar 11, 2009 8:21:04 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/ssm.h
r13596 r17662 89 89 /** 90 90 * 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. 91 98 */ 92 99 typedef struct SSMFIELD … … 103 110 104 111 /** 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) 106 117 /** 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 } 108 119 109 120
Note:
See TracChangeset
for help on using the changeset viewer.