VirtualBox

Changeset 39809 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jan 19, 2012 1:37:03 PM (13 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxmouse: use the new mouse driver for XFree86 too.

Location:
trunk/src/VBox/Additions
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh

    r39786 r39809  
    292292    # We need to tell our xorg.conf hacking script whether /dev/psaux exists
    293293    nopsaux="--nopsaux"
    294     test -c /dev/psaux && nopsaux=""
     294    case "`uname -r`" in 2.4.*)
     295        test -c /dev/psaux && nopsaux="";;
     296    esac
    295297    # The video driver to install for X.Org 6.9+
    296298    vboxvideo_src=
     
    407409            vboxmouse_src=vboxmouse_drv.o
    408410            automouse=""
    409             newmouse=""
    410411            ;;
    411412        * )
  • trunk/src/VBox/Additions/x11/Installer/x11config.sh

    r38777 r39809  
    103103  Identifier   "Mouse[1]"
    104104  Option       "Buttons" "9"
    105   Option       "Device" "/dev/input/mice"
     105  Option       "Device" "$old_mouse_dev"
    106106  Option       "Name" "VirtualBox Mouse Buttons"
    107107  Option       "Protocol" "explorerps/2"
  • trunk/src/VBox/Additions/x11/vboxmouse/Makefile.kmk

    r39786 r39809  
    5151        $(PATH_SUB_CURRENT)
    5252 vboxmouse_drv_SOURCES = \
    53         mouse.c \
    54         pnp.c \
    55         VBoxUtils_68.c
     53        vboxmouse_15.c
     54 # Any global symbols in the driver object files will be added to XFree86's
     55 # symbol table, which can cause problems if we e.g. define a symbol in two
     56 # modules.
     57 vboxmouse_drv_POST_CMDS = \
     58        objcopy --keep-global-symbol vboxmouseModuleData $(out) $(out)-objcopy$$(NLTAB) \
     59        $(MV) -f $(out)-objcopy $(out)
    5660endif
    5761
     
    249253        $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    250254        $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
    251             "$(vboxmouse_drv_1_STAGE_TARGET)" "$(VBOXMOUSE_SRC_PATH)/undefined_68" --static
     255            "$(vboxmouse_drv_1_STAGE_TARGET)" "$(VBOXMOUSE_SRC_PATH)/undefined_15" --static
    252256        $(QUIET)$(APPEND) -t "$@" "done"
    253257     endif
  • trunk/src/VBox/Additions/x11/vboxmouse/undefined_15

    r37733 r39809  
     1ErrorF
    12GetMotionHistory
    23GetMotionHistorySize
     
    56InitPtrFeedbackClassDeviceStruct
    67InitValuatorClassDeviceStruct
     8VErrorF
     9Xalloc
    710_Jv_RegisterClasses
    811___errno
     
    9598xf86AddInputDriver
    9699xf86AllocateInput
    97 xf86CheckStrOption
    98100xf86CollectInputOptions
    99101xf86DeleteInput
     
    107109xf86ScaleAxis
    108110xf86SetIntOption
     111xf86SetStrOption
     112xf86errno
     113xf86isspace
     114xf86strtoul
     115xf86vsnprintf
  • trunk/src/VBox/Additions/x11/vboxmouse/vboxmouse_15.c

    r38591 r39809  
    5353#include <xf86Module.h>
    5454
    55 #include <errno.h>
    56 #include <fcntl.h>
    57 #include <unistd.h>
     55#ifdef VBOX_GUESTR3XF86MOD
     56# define _X_EXPORT
     57#else
     58# include <errno.h>
     59# include <fcntl.h>
     60# include <unistd.h>
     61#endif
    5862
    5963#include "product-generated.h"
     
    265269    pInfo->flags |= XI86_ALWAYS_CORE;
    266270
    267     device = xf86CheckStrOption(pInfo->options, "Device",
     271    device = xf86SetStrOption(pInfo->options, "Device",
    268272                                "/dev/vboxguest");
    269273
  • trunk/src/VBox/Additions/x11/vboxvideo/Makefile.kmk

    r38825 r39809  
    8888        $(PATH_ROOT)/src/VBox/Runtime/common/alloc/heapsimple.cpp \
    8989        $(PATH_ROOT)/src/VBox/Runtime/common/alloc/heapoffset.cpp
    90 
     90 # Any global symbols in the driver object files will be added to XFree86's
     91 # symbol table, which can cause problems if we e.g. define a symbol in two
     92 # modules.
     93 vboxvideo_drv_POST_CMDS = \
     94        objcopy --keep-global-symbol vboxvideoModuleData $(out) $(out)-objcopy$$(NLTAB) \
     95        $(MV) -f $(out)-objcopy $(out)
    9196
    9297#
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