VirtualBox

Changeset 6162 in vbox for trunk/include


Ignore:
Timestamp:
Dec 20, 2007 11:27:44 PM (17 years ago)
Author:
vboxsync
Message:

Wrappers for template creation the right way.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r6017 r6162  
    124124 * @param   pszDesc         Description.
    125125 */
    126 PDMR3DECL(int) PDMR3AsyncCompletionTemplateCreateDevice(PVM pVM, PPDMDEVINS pDevIns, PPPDMASYNCCOMPLETIONTEMPLATE ppTemplate, PFNPDMASYNCCOMPLETEDEV pfnCompleted, const char *pszDesc);
     126PDMR3DECL(int) PDMR3AsyncCompletionTemplateCreateDeviceEx(PVM pVM, PPDMDEVINS pDevIns, PPPDMASYNCCOMPLETIONTEMPLATE ppTemplate, PFNPDMASYNCCOMPLETEDEV pfnCompleted, const char *pszDesc);
     127
     128/**
     129 * Creates a async completion template for a device instance.
     130 * Wrapper for PDMR3AsyncCompletionTemplateCreateDeviceEx.
     131 *
     132 * The template is used when creating new completion tasks.
     133 *
     134 * @returns VBox status code.
     135 * @param   pDevIns         The device instance.
     136 * @param   ppTemplate      Where to store the template pointer on success.
     137 * @param   pfnCompleted    The completion callback routine.
     138 * @param   pszDesc         Description.
     139 */
     140PDMR3DECL(int) PDMR3AsyncCompletionTemplateCreateDevice(PPDMDEVINS pDevIns, PPPDMASYNCCOMPLETIONTEMPLATE ppTemplate, PFNPDMASYNCCOMPLETEDEV pfnCompleted, const char *pszDesc);
    127141
    128142/**
     
    138152 * @param   pszDesc         Description.
    139153 */
    140 PDMR3DECL(int) PDMR3AsyncCompletionTemplateCreateDriver(PVM pVM, PPDMDRVINS pDrvIns, PPPDMASYNCCOMPLETIONTEMPLATE ppTemplate, PFNPDMASYNCCOMPLETEDRV pfnCompleted, const char *pszDesc);
     154PDMR3DECL(int) PDMR3AsyncCompletionTemplateCreateDriverEx(PVM pVM, PPDMDRVINS pDrvIns, PPPDMASYNCCOMPLETIONTEMPLATE ppTemplate, PFNPDMASYNCCOMPLETEDRV pfnCompleted, const char *pszDesc);
     155
     156/**
     157 * Creates a async completion template for a driver instance.
     158 * Wrapper for PDMR3AsyncCompletionTemplateCreateDriverEx.
     159 *
     160 * The template is used when creating new completion tasks.
     161 *
     162 * @returns VBox status code.
     163 * @param   pDrvIns         The driver instance.
     164 * @param   ppTemplate      Where to store the template pointer on success.
     165 * @param   pfnCompleted    The completion callback routine.
     166 * @param   pszDesc         Description.
     167 */
     168PDMR3DECL(int) PDMR3AsyncCompletionTemplateCreateDriver(PPDMDRVINS pDrvIns, PPPDMASYNCCOMPLETIONTEMPLATE ppTemplate, PFNPDMASYNCCOMPLETEDRV pfnCompleted, const char *pszDesc);
    141169
    142170/**
     
    152180 * @param   pszDesc         Description.
    153181 */
    154 PDMR3DECL(int) PDMR3AsyncCompletionTemplateCreateUsb(PVM pVM, PPDMUSBINS pUsbIns, PPPDMASYNCCOMPLETIONTEMPLATE ppTemplate, PFNPDMASYNCCOMPLETEUSB pfnCompleted, const char *pszDesc);
     182PDMR3DECL(int) PDMR3AsyncCompletionTemplateCreateUsbEx(PVM pVM, PPDMUSBINS pUsbIns, PPPDMASYNCCOMPLETIONTEMPLATE ppTemplate, PFNPDMASYNCCOMPLETEUSB pfnCompleted, const char *pszDesc);
     183
     184/**
     185 * Creates a async completion template for a USB device instance.
     186 * Wrapper for PDMR3AsyncCompletionTemplateCreateUsbEx.
     187 *
     188 * The template is used when creating new completion tasks.
     189 *
     190 * @returns VBox status code.
     191 * @param   pUsbIns         The USB device instance.
     192 * @param   ppTemplate      Where to store the template pointer on success.
     193 * @param   pfnCompleted    The completion callback routine.
     194 * @param   pszDesc         Description.
     195 */
     196PDMR3DECL(int) PDMR3AsyncCompletionTemplateCreateUsb(PPDMUSBINS pUsbIns, PPPDMASYNCCOMPLETIONTEMPLATE ppTemplate, PFNPDMASYNCCOMPLETEUSB pfnCompleted, const char *pszDesc);
    155197
    156198/**
  • trunk/include/VBox/pdmdrv.h

    r6111 r6162  
    652652                                                  PFNPDMTHREADWAKEUPDRV pfnWakeup, size_t cbStack, RTTHREADTYPE enmType, const char *pszName));
    653653
    654     /**
    655      * Gets the VM handle.
    656      *
    657      * @returns VM Handle.
    658      * @param   pDrvIns         Driver instance.
    659      */
    660     DECLR3CALLBACKMEMBER(PVM, pfnGetVM,(PPDMDRVINS pDrvIns));
    661 
    662654    /** Just a safety precaution. */
    663655    uint32_t                        u32TheEnd;
     
    817809}
    818810
    819 /**
    820  * @copydoc PDMDRVHLP::pfnGetVM
    821  */
    822 DECLINLINE(PVM) PDMDrvHlpGetVM(PPDMDRVINS pDrvIns)
    823 {
    824     return pDrvIns->pDrvHlp->pfnGetVM(pDrvIns);
    825 }
    826811#endif /* IN_RING3 */
    827812
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