VirtualBox

Changeset 25969 in vbox for trunk/include


Ignore:
Timestamp:
Jan 22, 2010 12:22:38 PM (15 years ago)
Author:
vboxsync
Message:

pdmifs.h: Converted the mouse interface ids. Committing early to see how MSC likes PDMIBASE_QUERY_INTERFACE.

File:
1 edited

Legend:

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

    r25966 r25969  
    4141 */
    4242
     43
    4344/** @name Common Driver Interface Identficators.
    4445 * @todo Convert all these to _IID.
    4546 * @{
    4647 */
    47 /** PDMIMOUSEPORT           - The mouse port interface.             (Down)  Coupled with PDMINTERFACE_MOUSE_CONNECTOR. */
    48 #define PDMINTERFACE_MOUSE_PORT                 "dcf20e6b-6cd5-4517-8759-91064605b8a8"
    49 /** PDMIMOUSECONNECTOR      - The mouse connector interface.        (Up)    Coupled with PDMINTERFACE_MOUSE_PORT. */
    50 #define PDMINTERFACE_MOUSE_CONNECTOR            "847f965f-0eb8-4363-88ac-b0ee58a05bde"
    5148/** PDMIKEYBOARDPORT        - The keyboard port interface.          (Down)  Coupled with PDMINTERFACE_KEYBOARD_CONNECTOR. */
    5249#define PDMINTERFACE_KEYBOARD_PORT              "2a0844f0-410b-40ab-a6ed-6575f3aa3e29"
     
    176173#define PDMIBASE_IID                            "a2299c0d-b709-4551-aa5a-73f59ffbed74"
    177174
     175/**
     176 * Helper macro for quering an interface from PDMIBASE.
     177 *
     178 * @returns Correctly typed PDMIBASE::pfnQueryInterface return value.
     179 *
     180 * @param    pIBase         Pointer to the base interface.
     181 * @param    InterfaceType  The interface type name.  The interface ID is
     182 *                          derived from this by appending _IID.
     183 */
     184#define PDMIBASE_QUERY_INTERFACE(pIBase, InterfaceType)  \
     185    ( (InterfaceType *)(pIBase)->pfnQueryInterface(pIBase, InterfaceType##_IID ) )
     186
    178187
    179188/**
     
    190199
    191200
     201/** PDMIMOUSEPORT interface ID. */
     202#define PDMIMOUSEPORT_IID "dcf20e6b-6cd5-4517-8759-91064605b8a8"
    192203/** Pointer to a mouse port interface. */
    193204typedef struct PDMIMOUSEPORT *PPDMIMOUSEPORT;
    194205/**
    195  * Mouse port interface.
     206 * Mouse port interface (down).
    196207 * Pair with PDMIMOUSECONNECTOR.
    197208 */
     
    226237
    227238/**
    228  * Mouse connector interface.
     239 * Mouse connector interface (up).
    229240 * Pair with PDMIMOUSEPORT.
    230241 */
     
    232243 /** Pointer to a mouse connector interface. */
    233244typedef PDMIMOUSECONNECTOR *PPDMIMOUSECONNECTOR;
     245/** PDMIMOUSECONNECTOR interface ID.  */
     246#define PDMIMOUSECONNECTOR_IID                  "847f965f-0eb8-4363-88ac-b0ee58a05bde"
    234247
    235248
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