VirtualBox

Changeset 69079 in vbox


Ignore:
Timestamp:
Oct 13, 2017 3:27:12 PM (7 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: Drop dependency on IPRT header files.
bugref:9017: Additions/x11: put vboxvideo into upstream X.Org

Remove (hopefully) all dependencies on IPRT header files inside of the X.Org
vboxvideo driver and provide the dependencies which are still useful in the
form of a single, local VBoxVideoIPRT.h file. These are mainly definitions
and macros.

Location:
trunk/src/VBox/Additions/x11
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/undefined_xorg

    r58635 r69079  
    44# it fixing that would add additional complexity.
    55
     6__assert_fail
    67calloc
    78chdir
  • trunk/src/VBox/Additions/x11/vboxvideo/Makefile.kmk

    r69078 r69079  
    4040        $(VBOX_GRAPHICS_INCS)
    4141vboxvideo_override_INCLUDES = \
    42     -include $(PATH_ROOT)/src/VBox/Additions/x11/vboxvideo/HGSMIMemAlloc.h
     42        -include $(PATH_ROOT)/src/VBox/Additions/x11/vboxvideo/VBoxVideoIPRT.h \
     43        -include $(PATH_ROOT)/src/VBox/Additions/x11/vboxvideo/HGSMIMemAlloc.h
    4344
    4445LIBRARIES += vboxvideo_drv_lib
     
    4849#
    4950vboxvideo_drv_lib_TEMPLATE = VBOXGUESTR3XORGMOD
     51# We are relying in the include guard in the two headers below to stop the more
     52# generic ones from being included.  Not very nice, I know.
    5053vboxvideo_drv_lib_CFLAGS += $(vboxvideo_override_INCLUDES)
    5154vboxvideo_drv_lib_CXXFLAGS += $(vboxvideo_override_INCLUDES)
     
    6063        $(PATH_ROOT)/src/VBox/GuestHost/HGSMI/HGSMICommon.cpp \
    6164        $(PATH_ROOT)/src/VBox/Additions/x11/vboxvideo/hgsmimemalloc.c
     65# $(VBOX_PATH_X11_ROOT)/xorg-server-1.18.0 is for in[blw] and out[blw], xproto
     66# for _X_[UN]LIKELY.
    6267vboxvideo_drv_lib_INCS = \
     68        $(VBOX_PATH_X11_ROOT)/xorg-server-1.18.0 \
     69        $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \
     70        $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
    6371        $(PATH_ROOT)/src/VBox/Runtime/include \
    6472        $(VBOX_GRAPHICS_INCS)
     
    8896        BUILDDEBUG X_BYTE_ORDER=X_LITTLE_ENDIAN DNDEBUG FUNCPROTO=15 NARROWPROTO \
    8997        IN_MODULE XFree86Module IN_XF86_MODULE IN_RT_STATIC
    90 vboxvideo_drv_DEFS += memset=xf86memset memcpy=xf86memcpy
    9198vboxvideo_drv_INCS = \
    9299        $(VBOX_PATH_X11_XFREE_4_3)/include \
  • trunk/src/VBox/Additions/x11/vboxvideo/getmode.c

    r69064 r69079  
    2929
    3030#define NEED_XF86_TYPES
    31 #include <iprt/string.h>
    32 
    3331#include "xf86.h"
    3432
     
    3634# include <stdio.h>
    3735# include <stdlib.h>
     36# include <string.h>
    3837#endif
    3938
  • trunk/src/VBox/Additions/x11/vboxvideo/pointer.c

    r69075 r69079  
    2626 */
    2727
    28 #include <VBox/VBoxGuestLib.h>
    29 
    3028#ifndef PCIACCESS
    3129# include "xf86Pci.h"
     
    3533#include "xf86.h"
    3634#define NEED_XF86_TYPES
    37 #include <iprt/string.h>
    3835#include "compiler.h"
    3936#include "cursorstr.h"
     
    4441#ifdef XORG_7X
    4542# include <stdlib.h>
     43# include <string.h>
    4644#endif
    4745
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c

    r69078 r69079  
    4444
    4545#include "vboxvideo.h"
    46 #include <VBox/VBoxGuestLib.h>
    4746#include <VBoxVideoVBE.h>
    4847
     
    252251    VBVXASSERT(pPixmap != NULL, ("Failed to get the screen pixmap.\n"));
    253252    TRACE_LOG("pPixmap=%p adjustedWidth=%d height=%d pScrn->depth=%d pScrn->bitsPerPixel=%d cbLine=%d pVBox->base=%p pPixmap->drawable.width=%d pPixmap->drawable.height=%d\n",
    254               (void *)pPixmap, adjustedWidth, height, pScrn->depth, pScrn->bitsPerPixel, cbLine, pVBox->base, pPixmap->drawable.width,
    255               pPixmap->drawable.height);
     253              (void *)pPixmap, adjustedWidth, height, pScrn->depth,
     254              pScrn->bitsPerPixel, cbLine, pVBox->base,
     255              pPixmap->drawable.width, pPixmap->drawable.height);
    256256    if (   adjustedWidth != pPixmap->drawable.width
    257257        || height != pPixmap->drawable.height)
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h

    r69078 r69079  
    8686    xf86ErrorF("\nAssertion failed!\n\n"); \
    8787    xf86ErrorF("%s\n", #expr); \
    88     xf86ErrorF("at %s (%s:%d)\n", RT_GCC_EXTENSION __PRETTY_FUNCTION__, __FILE__, __LINE__); \
     88    xf86ErrorF("at %s (%s:%d)\n", __func__, __FILE__, __LINE__); \
    8989    xf86ErrorF out; \
    9090    FatalError("Assertion"); \
  • trunk/src/VBox/Additions/x11/vboxvideo/vbva.c

    r69066 r69079  
    2626 */
    2727
    28 #include <VBox/VBoxGuestLib.h>
    29 
    30 #include <iprt/string.h>
     28#if defined(IN_XF86_MODULE) && !defined(NO_ANSIC)
     29# include "xf86_ansic.h"
     30#endif
    3131#include "compiler.h"
    3232
     
    3535#ifdef XORG_7X
    3636# include <stdlib.h>
     37# include <string.h>
    3738#endif
    3839
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