VirtualBox

Changeset 68670 in vbox for trunk/include


Ignore:
Timestamp:
Sep 6, 2017 9:02:20 AM (7 years ago)
Author:
vboxsync
Message:

include file build fixes (kmk -C include)

Location:
trunk/include
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/Makefile.kmk

    r68658 r68670  
    3030        VBox/VBoxCrHgsmi.h \
    3131        VBox/VBoxUhgsmi.h \
    32        VBox/dbus.h
     32       VBox/dbus.h \
     33       VBox/VBoxPktDmp.h
    3334
    3435# Omit headers that are C++ and ring-3.
     
    4344r3_only_hdrs := \
    4445        VBox/vrdpapi.h \
    45         VBox/vrdpusb.h \
     46        VBox/vrdpusb.h \
    4647        VBox/VBoxHDD.h \
    4748        VBox/VBoxHDD-Plugin.h \
    4849        VBox/VBoxCrHgsmi.h \
    4950        VBox/VBoxUhgsmi.h \
     51        VBox/VBoxNetCfg-win.h \
    5052        VBox/dbus.h \
     53        VBox/usblib-win.h \
    5154        VBox/vd.h \
     55        VBox/vd-cache-backend.h \
     56        VBox/vd-ifs.h \
     57        VBox/vd-ifs-internal.h \
     58        VBox/vd-image-backend.h \
    5259        VBox/vd-plugin.h \
    53         VBox/vd-cache-plugin.h \
     60        VBox/vd-filter-backend.h \
     61        VBox/vddbg.h \
    5462        VBox/vmm/uvm.h \
    5563        VBox/vscsi.h \
     
    6270        iprt/socket.h
    6371
     72# Ring-0 only headers.
     73r0_only_hdrs := \
     74        VBox/VBoxGuestLibSharedFolders.h
     75
    6476# We omit a few headers which have platform specific issues or are templates.
    6577hdrs := $(filter-out \
     
    6981        VBox/VBoxGL2D.h \
    7082        VBox/WinNetConfig.h \
    71         VBox/usblib-win.h \
    7283        VBox/usblib-solaris.h \
    7384        VBox/VDEPlug.h \
     85        VBox/VDEPlugSymDefs.h \
     86        VBox/VBoxNetCmn-win.h \
    7487        $(if-expr "$(KBUILD_TARGET)" != "win", \
    7588                VBox/VBoxDrvCfg-win.h \
    7689                VBox/VBoxNetCfg-win.h \
     90                VBox/usblib-win.h \
    7791        ,) \
    7892        \
    7993        VBox/dbus-calls.h \
    80         VBox/VDEPlugSymDefs.h \
    8194        VBox/VBoxKeyboard.h \
    8295        VBox/vmm/pdmpcidevint.h \
     
    89102
    90103# ring-3, ring-0 and raw-mode context specific exclusions.
    91 hdrs.r3   := $(filter-out , $(hdrs))
    92 hdrs-c.r3 := $(filter-out $(cpp_features_hdrs) $(r3_cpp_hdrs), $(hdrs.r3))
     104hdrs.r3   := $(filter-out $(r0_only_hdrs), $(hdrs))
     105hdrs-c.r3 := $(filter-out $(cpp_features_hdrs) $(r3_cpp_hdrs) $(r0_only_hdrs), $(hdrs.r3))
    93106hdrs.r0   := $(filter-out $(r3_cpp_hdrs) $(r3_only_hdrs), $(hdrs))
    94107hdrs-c.r0 := $(filter-out $(cpp_features_hdrs), $(hdrs.r0))
     
    102115        $(r3_cpp_hdrs) \
    103116        $(r3_only_hdrs) \
     117        $(r0_only_hdrs) \
    104118        , $(hdrs))
    105119hdrs-c.rc := $(filter-out $(cpp_features_hdrs), $(hdrs.rc))
  • trunk/include/VBox/VBoxGuestLib.h

    r68654 r68670  
    3131#include <VBox/VBoxGuestCoreTypes.h>
    3232
    33 
    3433/** @defgroup grp_vboxguest_lib     VirtualBox Guest Additions Library
    3534 * @ingroup grp_vboxguest
     
    8483 * @{
    8584 */
    86 #if defined(IN_RING0) && !defined(IN_RING0_AGNOSTIC)
     85#ifdef IN_RING0
    8786/** @def DECLR0VBGL
    8887 * Declare a VBGL ring-0 API with the right calling convention and visibilitiy.
     
    471470# endif /* VBOX_GUEST */
    472471
    473 #endif /* IN_RING0 && !IN_RING0_AGNOSTIC */
     472#endif /* IN_RING0 */
    474473
    475474/** @} */
  • trunk/include/VBox/VBoxGuestLibSharedFolders.h

    r62476 r68670  
    3030#include <VBox/VBoxGuestLib.h>
    3131#include <VBox/shflsvc.h>
     32
     33#ifndef IN_RING0
     34# error "ring-0 only"
     35#endif
    3236
    3337RT_C_DECLS_BEGIN
  • trunk/include/VBox/VBoxNetCfg-win.h

    r62688 r68670  
    4242#include <iprt/win/Setupapi.h>
    4343#include <VBox/cdefs.h>
     44#include <iprt/types.h>
    4445
    4546/** @defgroup grp_vboxnetcfgwin     The Windows Network Configration Library
  • trunk/include/VBox/VBoxNetCmn-win.h

    r62684 r68670  
    2525 */
    2626
     27#ifndef ___VBox_VBoxNetCmn_win_h
     28#define ___VBox_VBoxNetCmn_win_h
     29
     30#include <iprt/log.h> /* for LOG_ENABLED */
     31
     32
    2733DECLHIDDEN(void) vboxNetCmnWinDumpOidRequest(const char *pcszFunction, PNDIS_OID_REQUEST pRequest)
    2834{
    29 #ifdef LOG_ENABLED
     35# ifdef LOG_ENABLED
    3036    const char *pszType;
    3137    const char *pszOid  = "unknown";
     
    137143    }
    138144    Log(("%s: %s(0x%x) %s(0x%x)\n", pcszFunction, pszType, pRequest->RequestType, pszOid, pRequest->DATA.SET_INFORMATION.Oid));
    139 #else
     145# else
    140146    RT_NOREF2(pcszFunction, pRequest);
     147# endif
     148}
     149
    141150#endif
    142 }
  • trunk/include/VBox/VBoxPktDmp.h

    r63704 r68670  
    2727#ifndef ___VBox_vboxpktdmp_h
    2828#define ___VBox_vboxpktdmp_h
     29
     30#include <iprt/net.h>
     31#include <iprt/log.h>
     32#if defined(LOG_ENABLED) && !defined(VBOX_DEVICE_STRUCT_TESTCASE)
     33# include <iprt/asm.h>
     34#endif
     35
    2936
    3037DECLINLINE(const char *) vboxEthTypeStr(uint16_t uType)
  • trunk/include/VBox/usblib-win.h

    r62476 r68670  
    302302USBLIB_DECL(int) USBLibWaitChange(RTMSINTERVAL cMillies);
    303303
    304 USBLIB_DECL(int) USBLibInterruptWaitChange();
    305 
    306 USBLIB_DECL(int) USBLibRunFilters();
     304USBLIB_DECL(int) USBLibInterruptWaitChange(void);
     305
     306USBLIB_DECL(int) USBLibRunFilters(void);
    307307
    308308/** @} */
  • trunk/include/VBox/vd-ifs.h

    r67247 r68670  
    651651VBOXDDU_DECL(int) VDIfCreateVfsStream(PVDINTERFACEIO pVDIfsIo, void *pvStorage, uint32_t fFlags, PRTVFSIOSTREAM phVfsIos);
    652652
     653struct VDINTERFACEIOINT;
     654
    653655/**
    654656 * Create a VFS file handle around a VD I/O interface.
     
    668670 * @param   phVfsFile       Where to return the VFS file handle on success.
    669671 */
    670 VBOXDDU_DECL(int) VDIfCreateVfsFile(PVDINTERFACEIO pVDIfs, struct VDINTERFACEIOINT *pVDIfsInt, void *pvStorage, uint32_t fFlags, PRTVFSFILE phVfsFile);
     672VBOXDDU_DECL(int) VDIfCreateVfsFile(PVDINTERFACEIO pVDIfs, struct VDINTERFACEIOINT *pVDIfsInt, void *pvStorage,
     673                                    uint32_t fFlags, PRTVFSFILE phVfsFile);
    671674
    672675/**
  • trunk/include/VBox/vd.h

    r66346 r68670  
    286286DECLINLINE(uint32_t) VDOpenFlagsToFileOpenFlags(unsigned fOpenFlags, bool fCreate)
    287287{
     288    uint32_t fOpen;
    288289    AssertMsg(!(fOpenFlags & VD_OPEN_FLAGS_READONLY) || !fCreate, ("Image can't be opened readonly while being created\n"));
    289290
    290     uint32_t fOpen;
    291291    if (fOpenFlags & VD_OPEN_FLAGS_READONLY)
    292292        fOpen = RTFILE_O_READ | RTFILE_O_DENY_NONE;
     
    15141514typedef struct VDIOBUFCALLBACKS *PVDIOBUFCALLBACKS;
    15151515/** Pointer to const VD I/O buffer callbacks. */
    1516 typedef const VDIOBUFCALLBACKS *PCVDIOBUFCALLBACKS;
     1516typedef const struct VDIOBUFCALLBACKS *PCVDIOBUFCALLBACKS;
    15171517
    15181518/**
  • trunk/include/VBox/vdmedia.h

    r66486 r68670  
    2323 * terms and conditions of either the GPL or the CDDL or both.
    2424 */
     25
    2526#ifndef ___VBox_vdmedia_h
    2627#define ___VBox_vdmedia_h
     28
     29#include <iprt/types.h>
    2730
    2831/** @name VD container type.
     
    208211
    209212#endif /* !___VBox_vdmedia_h */
     213
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