VirtualBox

Ignore:
Timestamp:
Jan 12, 2015 2:37:03 PM (10 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: more refactoring.

Location:
trunk/src/VBox/Additions/x11/vboxvideo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/helpers.c

    r53770 r53773  
    33 * VirtualBox X11 Additions graphics driver X server helper functions
    44 *
    5  * This file contains helpers which call back into the X server, but which are
    6  * expected to use server ABIs which remain constant across all supported server
    7  * versions.  The longer-term idea is to eliminate X server version dependencies
    8  * in as many files as possible inside the driver code.  Most files should not
    9  * directly depend on X server symbols at all, and a single build of this one
    10  * should work in all server versions.
     5 * This file contains helpers which call back into the X server.  The longer-
     6 * term idea is to eliminate X server version dependencies in as many files as
     7 * possible inside the driver code.  Ideally most files should not directly
     8 * depend on X server symbols at all.
    119 */
    1210
     
    4442    FatalError("Assertion");
    4543}
     44
     45VBOXPtr vbvxGetRec(ScrnInfoPtr pScrn)
     46{
     47    return ((VBOXPtr)pScrn->driverPrivate);
     48}
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h

    r53770 r53773  
    237237extern void vbvxMsgV(const char *pszFormat, va_list args);
    238238extern void vbvxAbortServer(void);
     239extern VBOXPtr vbvxGetRec(ScrnInfoPtr pScrn);
     240#define VBOXGetRec vbvxGetRec  /* Temporary */
    239241
    240242/* setmode.c */
     
    275277/* Utilities */
    276278
    277 static inline VBOXPtr VBOXGetRec(ScrnInfoPtr pScrn)
    278 {
    279     return ((VBOXPtr)pScrn->driverPrivate);
    280 }
    281 
    282279/** Calculate the BPP from the screen depth */
    283280static inline uint16_t vboxBPP(ScrnInfoPtr pScrn)
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