VirtualBox

Changeset 50537 in vbox for trunk/include


Ignore:
Timestamp:
Feb 21, 2014 12:11:24 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92387
Message:

Additions/common/VBoxGuest: simplify the mouse call-back management.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxGuest.h

    r50524 r50537  
    378378
    379379/** IOCTL to for setting the mouse driver callback. (kernel only) */
     380/** @note The callback will be called in interrupt context with the VBoxGuest
     381 * device event spinlock held. */
    380382#define VBOXGUEST_IOCTL_SET_MOUSE_NOTIFY_CALLBACK   VBOXGUEST_IOCTL_CODE(31, sizeof(VBoxGuestMouseSetNotifyCallback))
     383
     384typedef DECLCALLBACK(void) FNVBOXGUESTMOUSENOTIFY(void *pfnUser);
     385typedef FNVBOXGUESTMOUSENOTIFY *PFNVBOXGUESTMOUSENOTIFY;
     386
     387/** Input buffer for VBOXGUEST_IOCTL_INTERNAL_SET_MOUSE_NOTIFY_CALLBACK. */
     388typedef struct VBoxGuestMouseSetNotifyCallback
     389{
     390    /**
     391     * Mouse notification callback.
     392     *
     393     * @param   pvUser      The callback argument.
     394     */
     395    PFNVBOXGUESTMOUSENOTIFY      pfnNotify;
     396    /** The callback argument*/
     397    void                       *pvUser;
     398} VBoxGuestMouseSetNotifyCallback;
     399
    381400
    382401typedef enum VBOXGUESTCAPSACQUIRE_FLAGS
     
    433452
    434453
    435 typedef DECLCALLBACK(void) FNVBOXGUESTMOUSENOTIFY(void *pfnUser);
    436 typedef FNVBOXGUESTMOUSENOTIFY *PFNVBOXGUESTMOUSENOTIFY;
    437 
    438 /** Input buffer for VBOXGUEST_IOCTL_INTERNAL_SET_MOUSE_NOTIFY_CALLBACK. */
    439 typedef struct VBoxGuestMouseSetNotifyCallback
    440 {
    441     /**
    442      * Mouse notification callback.
    443      *
    444      * @param   pvUser      The callback argument.
    445      */
    446     PFNVBOXGUESTMOUSENOTIFY      pfnNotify;
    447     /** The callback argument*/
    448     void                       *pvUser;
    449 } VBoxGuestMouseSetNotifyCallback;
    450 
    451 
    452454#ifdef RT_OS_OS2
    453455
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette