VirtualBox

Ignore:
Timestamp:
Jul 15, 2008 1:14:27 PM (17 years ago)
Author:
vboxsync
Message:

Additions/x11: rewrote todos in the XFree86 graphics driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/xgraphics/vboxutils_68.c

    r10562 r10656  
    3030#include "compiler.h"
    3131#include "cursorstr.h"
    32 
    33 #ifndef RT_OS_SOLARIS
    34 #include <asm/ioctl.h>
    35 #endif
    3632
    3733#include "vboxvideo_68.h"
     
    114110
    115111    TRACE_ENTRY ();
    116 #ifdef RT_OS_SOLARIS
    117     err = vbglR3GRPerform(hdrp);
    118     if (RT_FAILURE(err))
    119     {
    120         xf86DrvMsg(pScrn->scrnIndex, X_INFO, "VbglR3Perform failed. rc=%d\n", err);
    121         err = -1;
    122     }
     112#ifdef RT_OS_LINUX
     113    err = ioctl (pVBox->vbox_fd, VBOXGUEST_IOCTL_VMMREQUEST(hdrp->size), hdrp);
    123114#else
    124     /** @todo r=bird: Michael, I thought we decided a long time ago that all these should be replaced by VbglR3. I assume this is just a leftover... */
    125     err = ioctl (pVBox->vbox_fd, VBOXGUEST_IOCTL_VMMREQUEST(0), hdrp);
     115/**
     116 * @todo this should work fine on other platforms too, but it needs to be
     117 *       checked for each one.
     118 */
     119# error port me!
    126120#endif
    127121    if (err < 0)
     
    150144        xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
    151145            "Unable to determine whether the virtual machine supports mouse pointer integration - request initialization failed with return code %d\n", rc);
    152 /** @todo r=bird: Michael, ditto. */
     146#ifdef RT_OS_LINUX
    153147    if (   RT_SUCCESS(vrc)
    154148        && (ioctl(pVBox->vbox_fd, VBOXGUEST_IOCTL_VMMREQUEST(sizeof(req)), (void*)&req) < 0))
     149#else
     150# error port me!
     151#endif
    155152    {
    156153        vrc = VERR_FILE_IO_ERROR;
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