VirtualBox

Changeset 9244 in vbox for trunk/include


Ignore:
Timestamp:
May 30, 2008 11:50:49 AM (17 years ago)
Author:
vboxsync
Message:

GC logging changes for 64 bits guests. (RTGCPTR -> RTRCPTR)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/log.h

    r9212 r9244  
    149149/** Logger structure. */
    150150#ifdef IN_GC
    151 typedef struct RTLOGGERGC RTLOGGER;
     151typedef struct RTLOGGERRC RTLOGGER;
    152152#else
    153153typedef struct RTLOGGER RTLOGGER;
     
    160160
    161161/** Guest context logger structure. */
    162 typedef struct RTLOGGERGC RTLOGGERGC;
     162typedef struct RTLOGGERRC RTLOGGERRC;
    163163/** Pointer to guest context logger structure. */
    164 typedef RTLOGGERGC *PRTLOGGERGC;
     164typedef RTLOGGERRC *PRTLOGGERRC;
    165165/** Pointer to const guest context logger structure. */
    166 typedef const RTLOGGERGC *PCRTLOGGERGC;
     166typedef const RTLOGGERRC *PCRTLOGGERRC;
    167167
    168168
     
    191191 * @param   pLogger     Pointer to the logger instance which is to be flushed.
    192192 */
    193 typedef DECLCALLBACK(void) FNRTLOGFLUSHGC(PRTLOGGERGC pLogger);
     193typedef DECLCALLBACK(void) FNRTLOGFLUSHGC(PRTLOGGERRC pLogger);
    194194/** Pointer to logger function. */
    195195typedef RCPTRTYPE(FNRTLOGFLUSHGC *) PFNRTLOGFLUSHGC;
     
    199199 * Logger instance structure for GC.
    200200 */
    201 struct RTLOGGERGC
     201struct RTLOGGERRC
    202202{
    203203    /** Pointer to temporary scratch buffer.
     
    215215    /** Pointer to the flush function. */
    216216    PFNRTLOGFLUSHGC         pfnFlush;
    217     /** Magic number (RTLOGGERGC_MAGIC). */
     217    /** Magic number (RTLOGGERRC_MAGIC). */
    218218    uint32_t                u32Magic;
    219219    /** Logger instance flags - RTLOGFLAGS. */
     
    227227};
    228228
    229 /** RTLOGGERGC::u32Magic value. (John Rogers Searle) */
    230 #define RTLOGGERGC_MAGIC    0x19320731
     229/** RTLOGGERRC::u32Magic value. (John Rogers Searle) */
     230#define RTLOGGERRC_MAGIC    0x19320731
    231231
    232232
     
    13041304
    13051305/**
    1306  * Create a logger instance clone for GC usage.
     1306 * Create a logger instance clone for RC usage.
    13071307 *
    13081308 * @returns iprt status code.
     
    13151315 * @param   fFlags              Logger instance flags, a combination of the RTLOGFLAGS_* values.
    13161316 */
    1317 RTDECL(int) RTLogCloneGC(PRTLOGGER pLogger, PRTLOGGERGC pLoggerGC, size_t cbLoggerGC,
    1318                          RTGCPTR pfnLoggerGCPtr, RTGCPTR pfnFlushGCPtr, RTUINT fFlags);
     1317RTDECL(int) RTLogCloneRC(PRTLOGGER pLogger, PRTLOGGERRC pLoggerGC, size_t cbLoggerGC,
     1318                         RTRCPTR pfnLoggerGCPtr, RTRCPTR pfnFlushGCPtr, RTUINT fFlags);
    13191319
    13201320/**
     
    13261326 * @param   pLoggerGC   The GC logger instance to flush.
    13271327 */
    1328 RTDECL(void) RTLogFlushGC(PRTLOGGER pLogger, PRTLOGGERGC pLoggerGC);
     1328RTDECL(void) RTLogFlushGC(PRTLOGGER pLogger, PRTLOGGERRC pLoggerGC);
    13291329
    13301330/**
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