VirtualBox

Changeset 30788 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jul 12, 2010 11:20:45 AM (15 years ago)
Author:
vboxsync
Message:

include,Config.kmk: Made the headers syntax check cleanly on linux.amd64 w/ gcc v4.3.4.

Location:
trunk/include/VBox
Files:
9 edited

Legend:

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

    r30555 r30788  
    274274DECLINLINE(PVDINTERFACE) VDInterfaceGet(PVDINTERFACE pVDIfs, VDINTERFACETYPE enmInterface)
    275275{
    276     AssertMsgReturn(   (enmInterface >= VDINTERFACETYPE_FIRST)
    277                     && (enmInterface < VDINTERFACETYPE_INVALID),
     276    AssertMsgReturn(   enmInterface >= VDINTERFACETYPE_FIRST
     277                    && enmInterface < VDINTERFACETYPE_INVALID,
    278278                    ("enmInterface=%u", enmInterface), NULL);
    279279
     
    308308                               void *pvUser, PVDINTERFACE *ppVDIfs)
    309309{
    310 
    311     /** Argument checks. */
    312     AssertMsgReturn(   (enmInterface >= VDINTERFACETYPE_FIRST)
    313                     && (enmInterface < VDINTERFACETYPE_INVALID),
     310    /* Argument checks. */
     311    AssertMsgReturn(   enmInterface >= VDINTERFACETYPE_FIRST
     312                    && enmInterface < VDINTERFACETYPE_INVALID,
    314313                    ("enmInterface=%u", enmInterface), VERR_INVALID_PARAMETER);
    315314
     
    347346    int rc = VERR_NOT_FOUND;
    348347
    349     /** Argument checks. */
     348    /* Argument checks. */
    350349    AssertMsgReturn(VALID_PTR(pInterface),
    351350                    ("pInterface=%#p", pInterface),
     
    436435DECLINLINE(PVDINTERFACEERROR) VDGetInterfaceError(PVDINTERFACE pInterface)
    437436{
     437    PVDINTERFACEERROR pInterfaceError;
     438
    438439    /* Check that the interface descriptor is a error interface. */
    439     AssertMsgReturn(   (pInterface->enmInterface == VDINTERFACETYPE_ERROR)
    440                     && (pInterface->cbSize == sizeof(VDINTERFACE)),
     440    AssertMsgReturn(   pInterface->enmInterface == VDINTERFACETYPE_ERROR
     441                    && pInterface->cbSize == sizeof(VDINTERFACE),
    441442                    ("Not an error interface"), NULL);
    442443
    443     PVDINTERFACEERROR pInterfaceError = (PVDINTERFACEERROR)pInterface->pCallbacks;
     444    pInterfaceError = (PVDINTERFACEERROR)pInterface->pCallbacks;
    444445
    445446    /* Do basic checks. */
    446     AssertMsgReturn(   (pInterfaceError->cbSize == sizeof(VDINTERFACEERROR))
    447                     && (pInterfaceError->enmInterface == VDINTERFACETYPE_ERROR),
     447    AssertMsgReturn(   pInterfaceError->cbSize == sizeof(VDINTERFACEERROR)
     448                    && pInterfaceError->enmInterface == VDINTERFACETYPE_ERROR,
    448449                    ("A non error callback table attached to a error interface descriptor\n"), NULL);
    449450
     
    632633DECLINLINE(PVDINTERFACEASYNCIO) VDGetInterfaceAsyncIO(PVDINTERFACE pInterface)
    633634{
     635    PVDINTERFACEASYNCIO pInterfaceAsyncIO;
     636
    634637    /* Check that the interface descriptor is a async I/O interface. */
    635638    AssertMsgReturn(   (pInterface->enmInterface == VDINTERFACETYPE_ASYNCIO)
     
    637640                    ("Not an async I/O interface"), NULL);
    638641
    639     PVDINTERFACEASYNCIO pInterfaceAsyncIO = (PVDINTERFACEASYNCIO)pInterface->pCallbacks;
     642    pInterfaceAsyncIO = (PVDINTERFACEASYNCIO)pInterface->pCallbacks;
    640643
    641644    /* Do basic checks. */
     
    691694DECLINLINE(PVDINTERFACEPROGRESS) VDGetInterfaceProgress(PVDINTERFACE pInterface)
    692695{
     696    PVDINTERFACEPROGRESS pInterfaceProgress;
     697
    693698    /* Check that the interface descriptor is a progress interface. */
    694699    AssertMsgReturn(   (pInterface->enmInterface == VDINTERFACETYPE_PROGRESS)
     
    697702
    698703
    699     PVDINTERFACEPROGRESS pInterfaceProgress = (PVDINTERFACEPROGRESS)pInterface->pCallbacks;
     704    pInterfaceProgress = (PVDINTERFACEPROGRESS)pInterface->pCallbacks;
    700705
    701706    /* Do basic checks. */
     
    772777DECLINLINE(PVDINTERFACECONFIG) VDGetInterfaceConfig(PVDINTERFACE pInterface)
    773778{
     779    PVDINTERFACECONFIG pInterfaceConfig;
     780
    774781    /* Check that the interface descriptor is a config interface. */
    775782    AssertMsgReturn(   (pInterface->enmInterface == VDINTERFACETYPE_CONFIG)
     
    777784                    ("Not a config interface"), NULL);
    778785
    779     PVDINTERFACECONFIG pInterfaceConfig = (PVDINTERFACECONFIG)pInterface->pCallbacks;
     786    pInterfaceConfig = (PVDINTERFACECONFIG)pInterface->pCallbacks;
    780787
    781788    /* Do basic checks. */
     
    977984    if (RT_SUCCESS(rc))
    978985    {
     986        char *pbData;
    979987        Assert(cb);
    980988
    981         char *pvData = (char *)RTMemAlloc(cb);
    982         if (pvData)
     989        pbData = (char *)RTMemAlloc(cb);
     990        if (pbData)
    983991        {
    984             rc = pCfgIf->pfnQuery(pvUser, pszName, pvData, cb);
     992            rc = pCfgIf->pfnQuery(pvUser, pszName, pbData, cb);
    985993            if (RT_SUCCESS(rc))
    986994            {
    987                 *ppvData = pvData;
     995                *ppvData = pbData;
    988996                *pcbData = cb - 1; /* Exclude terminator of the queried string. */
    989997            }
    990998            else
    991                 RTMemFree(pvData);
     999                RTMemFree(pbData);
    9921000        }
    9931001        else
     
    11231131DECLINLINE(PVDINTERFACETCPNET) VDGetInterfaceTcpNet(PVDINTERFACE pInterface)
    11241132{
     1133    PVDINTERFACETCPNET pInterfaceTcpNet;
     1134
    11251135    /* Check that the interface descriptor is a TCP network stack interface. */
    11261136    AssertMsgReturn(   (pInterface->enmInterface == VDINTERFACETYPE_TCPNET)
     
    11281138                    ("Not a TCP network stack interface"), NULL);
    11291139
    1130     PVDINTERFACETCPNET pInterfaceTcpNet = (PVDINTERFACETCPNET)pInterface->pCallbacks;
     1140    pInterfaceTcpNet = (PVDINTERFACETCPNET)pInterface->pCallbacks;
    11311141
    11321142    /* Do basic checks. */
     
    11811191DECLINLINE(PVDINTERFACEPARENTSTATE) VDGetInterfaceParentState(PVDINTERFACE pInterface)
    11821192{
     1193    PVDINTERFACEPARENTSTATE pInterfaceParentState;
     1194
    11831195    /* Check that the interface descriptor is a parent state interface. */
    11841196    AssertMsgReturn(   (pInterface->enmInterface == VDINTERFACETYPE_PARENTSTATE)
     
    11861198                    ("Not a parent state interface"), NULL);
    11871199
    1188     PVDINTERFACEPARENTSTATE pInterfaceParentState = (PVDINTERFACEPARENTSTATE)pInterface->pCallbacks;
     1200    pInterfaceParentState = (PVDINTERFACEPARENTSTATE)pInterface->pCallbacks;
    11891201
    11901202    /* Do basic checks. */
     
    12601272DECLINLINE(PVDINTERFACETHREADSYNC) VDGetInterfaceThreadSync(PVDINTERFACE pInterface)
    12611273{
     1274    PVDINTERFACETHREADSYNC pInterfaceThreadSync;
     1275
    12621276    /* Check that the interface descriptor is a thread synchronization interface. */
    12631277    AssertMsgReturn(   (pInterface->enmInterface == VDINTERFACETYPE_THREADSYNC)
     
    12651279                    ("Not a thread synchronization interface"), NULL);
    12661280
    1267     PVDINTERFACETHREADSYNC pInterfaceThreadSync = (PVDINTERFACETHREADSYNC)pInterface->pCallbacks;
     1281    pInterfaceThreadSync = (PVDINTERFACETHREADSYNC)pInterface->pCallbacks;
    12681282
    12691283    /* Do basic checks. */
     
    16421656DECLINLINE(PVDINTERFACEIO) VDGetInterfaceIO(PVDINTERFACE pInterface)
    16431657{
     1658    PVDINTERFACEIO pInterfaceIO;
     1659
    16441660    /* Check that the interface descriptor is a async I/O interface. */
    16451661    AssertMsgReturn(   (pInterface->enmInterface == VDINTERFACETYPE_IO)
     
    16471663                    ("Not an I/O interface"), NULL);
    16481664
    1649     PVDINTERFACEIO pInterfaceIO = (PVDINTERFACEIO)pInterface->pCallbacks;
     1665    pInterfaceIO = (PVDINTERFACEIO)pInterface->pCallbacks;
    16501666
    16511667    /* Do basic checks. */
  • trunk/include/VBox/VBoxKeyboard.h

    r29654 r30788  
    11/** @file
    2  *
    3  * VBox frontends: Qt GUI ("VirtualBox"):
    4  * X11 keyboard driver interface
    5  *
     2 * Frontends/Common - X11 keyboard driver interface.
    63 */
    74
     
    3128 */
    3229
    33 #ifndef __H_KEYBOARD
    34 #define __H_KEYBOARD
     30#ifndef ___VBox_VBoxKeyboard_h
     31#define ___VBox_VBoxKeyboard_h
    3532
    3633#include <X11/Xlib.h>
     
    5350#endif
    5451
    55 #endif /* __H_KEYBOARD */
     52#endif
    5653
  • trunk/include/VBox/VBoxVideo.h

    r30566 r30788  
    469469#define VBOXVHWA_SD_PITCH               0x00000008
    470470#define VBOXVHWA_SD_PIXELFORMAT         0x00001000
    471 //#define VBOXVHWA_SD_REFRESHRATE       0x00040000
     471/*#define VBOXVHWA_SD_REFRESHRATE       0x00040000*/
    472472#define VBOXVHWA_SD_WIDTH               0x00000004
    473473
     
    529529#define VBOXVHWA_CAPS2_WIDESURFACES                 0x00001000
    530530#define VBOXVHWA_CAPS2_COPYFOURCC                   0x00008000
    531 //#define VBOXVHWA_CAPS2_FLIPINTERVAL                 0x00200000
    532 //#define VBOXVHWA_CAPS2_FLIPNOVSYNC                  0x00400000
     531/*#define VBOXVHWA_CAPS2_FLIPINTERVAL                 0x00200000*/
     532/*#define VBOXVHWA_CAPS2_FLIPNOVSYNC                  0x00400000*/
    533533
    534534
     
    10621062 * while keeping this flag unchanged */
    10631063#define VBOXSHGSMI_FLAG_HG_ASYNCH               0x00010000
    1064 ///* if set     - asynch completion is performed by issuing the event,
    1065 // * if cleared - asynch completion is performed by calling a callback */
    1066 //#define VBOXSHGSMI_FLAG_GH_ASYNCH_EVENT         0x00000001
     1064#if 0
     1065/* if set     - asynch completion is performed by issuing the event,
     1066 * if cleared - asynch completion is performed by calling a callback */
     1067#define VBOXSHGSMI_FLAG_GH_ASYNCH_EVENT         0x00000001
     1068#endif
    10671069/* issue interrupt on asynch completion, used for critical G->H commands,
    10681070 * i.e. for completion of which guest is waiting. */
     
    11631165} VBOXVDMA_SURF_DESC, *PVBOXVDMA_SURF_DESC;
    11641166
    1165 //typedef uint64_t VBOXVDMAPHADDRESS;
     1167/*typedef uint64_t VBOXVDMAPHADDRESS;*/
    11661168typedef uint64_t VBOXVDMASURFHANDLE;
    11671169
  • trunk/include/VBox/VDEPlugSymDefs.h

    r29461 r30788  
    2626#include <stddef.h>
    2727#include <sys/types.h>
     28
    2829/** Opaque connection type */
    2930struct vdeconn;
     
    3435struct vde_open_args
    3536{
    36     /** The port of the switch to connect to */
     37    /** The port of the switch to connect to. */
    3738    int port;
    38     /** The group to set ownership of the port socket to */
     39    /** The group to set ownership of the port socket to. */
    3940    char *group;
    40     /** The file mode to set the port socket to */
     41    /** The file mode to set the port socket to. */
    4142    mode_t mode;
    4243};
     
    5556               (vde_switch, descr, interface_version, open_args)) \
    5657 RT_PROXY_STUB(vde_recv, size_t, \
    57                (VDECONN *conn,void *buf,size_t len,int flags), \
     58               (VDECONN *conn, void *buf,size_t len, int flags), \
    5859               (conn, buf, len, flags)) \
    5960 RT_PROXY_STUB(vde_send, size_t, \
    60                (VDECONN *conn,const void *buf,size_t len,int flags), \
     61               (VDECONN *conn, const void *buf, size_t len, int flags), \
    6162               (conn, buf, len, flags)) \
    6263 RT_PROXY_STUB(vde_datafd, int, (VDECONN *conn), (conn)) \
     
    7475# undef RT_RUNTIME_LOADER_GENERATE_BODY_STUBS
    7576#else
    76 # error This file should only be included to generate stubs for loading the \
    77 libvdeplug library at runtime
     77# error This file should only be included to generate stubs for loading the libvdeplug library at runtime
    7878#endif
    7979
    8080#undef RT_RUNTIME_LOADER_LIB_NAME
    8181#undef RT_RUNTIME_LOADER_INSERT_SYMBOLS
     82
  • trunk/include/VBox/cpum.h

    r30263 r30788  
    8181 * CPU context core.
    8282 */
     83#ifndef VBOX_WITHOUT_UNNAMED_UNIONS
    8384#pragma pack(1)
    8485typedef struct CPUMCTXCORE
     
    181182} CPUMCTXCORE;
    182183#pragma pack()
     184#else  /* VBOX_WITHOUT_UNNAMED_UNIONS */
     185typedef struct CPUMCTXCORE CPUMCTXCORE;
     186#endif /* VBOX_WITHOUT_UNNAMED_UNIONS */
    183187
    184188
     
    186190 * CPU context.
    187191 */
    188 #pragma pack(1)
     192#ifndef VBOX_WITHOUT_UNNAMED_UNIONS
     193# pragma pack(1)
    189194typedef struct CPUMCTX
    190195{
     
    348353    /** @} */
    349354
    350 #if 0
     355# if 0
    351356    /** Padding to align the size on a 64 byte boundrary. */
    352357    uint32_t        padding[6];
    353 #endif
     358# endif
    354359} CPUMCTX;
    355 #pragma pack()
     360# pragma pack()
     361#else  /* VBOX_WITHOUT_UNNAMED_UNIONS */
     362typedef struct CPUMCTX CPUMCTX;
     363#endif /* VBOX_WITHOUT_UNNAMED_UNIONS */
    356364
    357365/**
     
    379387 * @remarks PATM uses this, which is why it has to be here.
    380388 */
    381 #pragma pack(1)
     389#ifndef VBOX_WITHOUT_UNNAMED_UNIONS
     390# pragma pack(1)
    382391typedef struct CPUMCTX_VER1_6
    383392{
     
    541550} CPUMCTX_VER1_6;
    542551#pragma pack()
     552#else  /* VBOX_WITHOUT_UNNAMED_UNIONS */
     553typedef struct CPUMCTX_VER1_6 CPUMCTX_VER1_6;
     554#endif /* VBOX_WITHOUT_UNNAMED_UNIONS */
    543555
    544556/**
     
    725737VMMDECL(bool)       CPUMIsGuestInPAEMode(PVMCPU pVCpu);
    726738
     739#ifndef VBOX_WITHOUT_UNNAMED_UNIONS
     740
    727741/**
    728742 * Tests if the guest is running in real mode or not.
     
    800814            &&  !CPUMIsGuestInLongModeEx(pCtx));
    801815}
     816
     817#endif /* VBOX_WITHOUT_UNNAMED_UNIONS */
    802818
    803819/** @} */
  • trunk/include/VBox/em.h

    r30338 r30788  
    158158VMMDECL(bool)       EMShouldContinueAfterHalt(PVMCPU pVCpu, PCPUMCTX pCtx);
    159159
    160 /* Wrap EMInterpretInstructionCPUEx for supervisor code only interpretation.
    161  */
    162 inline int EMInterpretInstructionCPU(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDISState, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize)
     160/**
     161 * Wrap EMInterpretInstructionCPUEx for supervisor code only interpretation.
     162 */
     163DECLINLINE(int) EMInterpretInstructionCPU(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDISState, PCPUMCTXCORE pRegFrame,
     164                                          RTGCPTR pvFault, uint32_t *pcbSize)
    163165{
    164166    return EMInterpretInstructionCPUEx(pVM, pVCpu, pDISState, pRegFrame, pvFault, pcbSize, EMCODETYPE_SUPERVISOR);
  • trunk/include/VBox/patm.h

    r28800 r30788  
    7272typedef struct PATMGCSTATE
    7373{
    74     // Virtual Flags register (IF + more later on)
     74    /* Virtual Flags register (IF + more later on) */
    7575    uint32_t  uVMFlags;
    7676
     
    7878    uint32_t  uPendingAction;
    7979
    80     // Records the number of times all patches are called (indicating how many exceptions we managed to avoid)
     80    /* Records the number of times all patches are called (indicating how many exceptions we managed to avoid) */
    8181    uint32_t  uPatchCalls;
    82     // Scratchpad dword
     82    /* Scratchpad dword */
    8383    uint32_t  uScratch;
    84     // Debugging info
     84    /* Debugging info */
    8585    uint32_t  uIretEFlags, uIretCS, uIretEIP;
    8686
     
    110110typedef struct PATMTRAPREC
    111111{
    112     // pointer to original guest code instruction (for emulation)
     112    /* pointer to original guest code instruction (for emulation) */
    113113    RTRCPTR pNewEIP;
    114     // pointer to the next guest code instruction
     114    /* pointer to the next guest code instruction */
    115115    RTRCPTR pNextInstr;
    116     //pointer to the corresponding next instruction in the patch block
     116    /* pointer to the corresponding next instruction in the patch block */
    117117    RTRCPTR pNextPatchInstr;
    118118} PATMTRAPREC, *PPATMTRAPREC;
  • trunk/include/VBox/pgm.h

    r30493 r30788  
    44
    55/*
    6  * Copyright (C) 2006-2007 Oracle Corporation
     6 * Copyright (C) 2006-2010 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3232#include <VBox/vmapi.h>
    3333#include <VBox/x86.h>
    34 #include <VBox/hwacc_vmx.h>
    35 #include <VBox/VMMDev.h> /* for VMMDEVSHAREDREGIONDESC */
    36 #include <VBox/gmm.h> /* for PGMMREGISTERSHAREDMODULEREQ */
     34#include <VBox/VMMDev.h>                /* for VMMDEVSHAREDREGIONDESC */
     35#include <VBox/gmm.h>                   /* for PGMMREGISTERSHAREDMODULEREQ */
    3736#include <VBox/feature.h>
    3837
  • trunk/include/VBox/vusb.h

    r30653 r30788  
    3333# include "runtime.h"
    3434#endif
     35
     36struct PDMLED;
    3537
    3638RT_C_DECLS_BEGIN
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