Changeset 25966 in vbox for trunk/src/VBox/Main/DisplayImpl.cpp
- Timestamp:
- Jan 22, 2010 11:15:43 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/DisplayImpl.cpp
r25893 r25966 1 1 /* $Id$ */ 2 3 2 /** @file 4 *5 3 * VirtualBox COM class implementation 6 4 */ 7 5 8 6 /* 9 * Copyright (C) 2006-20 08Sun Microsystems, Inc.7 * Copyright (C) 2006-2010 Sun Microsystems, Inc. 10 8 * 11 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 48 46 /** 49 47 * Display driver instance data. 48 * 49 * @implements PDMIDISPLAYCONNECTOR 50 50 */ 51 51 typedef struct DRVMAINDISPLAY … … 66 66 67 67 /** Converts PDMIDISPLAYCONNECTOR pointer to a DRVMAINDISPLAY pointer. */ 68 #define PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface) ( (PDRVMAINDISPLAY) ((uintptr_t)pInterface - RT_OFFSETOF(DRVMAINDISPLAY, Connector)))68 #define PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface) RT_FROM_MEMBER(pInterface, DRVMAINDISPLAY, Connector) 69 69 70 70 #ifdef DEBUG_sunlover … … 76 76 ///////////////////////////////////////////////////////////////////////////// 77 77 78 DEFINE_EMPTY_CTOR_DTOR 78 DEFINE_EMPTY_CTOR_DTOR(Display) 79 79 80 80 HRESULT Display::FinalConstruct() … … 3363 3363 3364 3364 /** 3365 * Queries an interface to the driver. 3366 * 3367 * @returns Pointer to interface. 3368 * @returns NULL if the interface was not supported by the driver. 3369 * @param pInterface Pointer to this interface structure. 3370 * @param enmInterface The requested interface identification. 3365 * @interface_method_impl{PDMIBASE,pfnQueryInterface} 3371 3366 */ 3372 DECLCALLBACK(void *) Display::drvQueryInterface(PPDMIBASE pInterface, PDMINTERFACE enmInterface)3367 DECLCALLBACK(void *) Display::drvQueryInterface(PPDMIBASE pInterface, const char *pszIID) 3373 3368 { 3374 3369 PPDMDRVINS pDrvIns = PDMIBASE_2_PDMDRV(pInterface); 3375 3370 PDRVMAINDISPLAY pDrv = PDMINS_2_DATA(pDrvIns, PDRVMAINDISPLAY); 3376 switch (enmInterface) 3377 { 3378 case PDMINTERFACE_BASE: 3379 return &pDrvIns->IBase; 3380 case PDMINTERFACE_DISPLAY_CONNECTOR: 3381 return &pDrv->Connector; 3382 default: 3383 return NULL; 3384 } 3371 if (RTUuidCompare2Strs(pszIID, PDMIBASE_IID) == 0) 3372 return &pDrvIns->IBase; 3373 if (RTUuidCompare2Strs(pszIID, PDMINTERFACE_DISPLAY_CONNECTOR) == 0) 3374 return &pDrv->Connector; 3375 return NULL; 3385 3376 } 3386 3377
Note:
See TracChangeset
for help on using the changeset viewer.