Changeset 25062 in vbox for trunk/include/VBox/HGSMI
- Timestamp:
- Nov 27, 2009 7:24:14 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55413
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HGSMI/HGSMI.h
r22652 r25062 153 153 typedef struct _HGSMIHEAP 154 154 { 155 RTHEAPSIMPLE heap; /* Heap instance. */ 156 HGSMIAREA area; /* Description. */ 157 int cRefs; /* Number of heap allocations. */ 155 union 156 { 157 RTHEAPSIMPLE hPtr; /**< Pointer based heap. */ 158 RTHEAPOFFSET hOff; /**< Offset based heap. */ 159 } u; 160 HGSMIAREA area; /**< Description. */ 161 int cRefs; /**< Number of heap allocations. */ 162 bool fOffsetBased; /**< Set if offset based. */ 158 163 } HGSMIHEAP; 159 164 #pragma pack() … … 262 267 void *pvBase, 263 268 HGSMISIZE cbArea, 264 HGSMIOFFSET offBase); 269 HGSMIOFFSET offBase, 270 bool fOffsetBased); 265 271 266 272 int HGSMIHeapRelocate (HGSMIHEAP *pHeap, 267 void *pvBase,268 uint32_t offHeapHandle,269 uintptr_t offDelta,270 HGSMISIZE cbArea,271 HGSMIOFFSET offBase272 );273 void *pvBase, 274 uint32_t offHeapHandle, 275 uintptr_t offDelta, 276 HGSMISIZE cbArea, 277 HGSMIOFFSET offBase, 278 bool fOffsetBased); 273 279 274 280 void HGSMIHeapSetupUnitialized (HGSMIHEAP *pHeap); … … 296 302 DECLINLINE(HGSMIOFFSET) HGSMIHeapHandleLocationOffset(HGSMIHEAP *pHeap) 297 303 { 298 return pHeap->heap != NIL_RTHEAPSIMPLE ? (uint32_t)(pHeap->area.pu8Base - (uint8_t*)pHeap->heap) : HGSMIOFFSET_VOID; 304 AssertCompile((uintptr_t)NIL_RTHEAPSIMPLE == (uintptr_t)NIL_RTHEAPOFFSET); 305 return pHeap->u.hPtr != NIL_RTHEAPSIMPLE 306 ? (HGSMIOFFSET)(pHeap->area.pu8Base - (uint8_t*)pHeap->u.hPtr) 307 : HGSMIOFFSET_VOID; 299 308 } 300 309
Note:
See TracChangeset
for help on using the changeset viewer.