Changeset 21363 in vbox for trunk/include
- Timestamp:
- Jul 7, 2009 5:10:52 PM (15 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdmdev.h
r21217 r21363 2299 2299 * If 0 then the emulation thread will be notified whenever an item arrives. 2300 2300 * @param pfnCallback The consumer function. 2301 * @param fGCEnabled Set if the queue should work in GC too. 2301 * @param fRZEnabled Set if the queue should work in RC and R0. 2302 * @param pszName The queue base name. The instance number will be 2303 * appended automatically. 2302 2304 * @param ppQueue Where to store the queue handle on success. 2303 2305 * @thread The emulation thread. 2304 2306 */ 2305 2307 DECLR3CALLBACKMEMBER(int, pfnPDMQueueCreate,(PPDMDEVINS pDevIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, 2306 PFNPDMQUEUEDEV pfnCallback, bool f GCEnabled, PPDMQUEUE *ppQueue));2308 PFNPDMQUEUEDEV pfnCallback, bool fRZEnabled, const char *pszName, PPDMQUEUE *ppQueue)); 2307 2309 2308 2310 /** … … 2881 2883 2882 2884 /** Current PDMDEVHLP version number. */ 2883 #define PDM_DEVHLP_VERSION 0xf20 a00002885 #define PDM_DEVHLP_VERSION 0xf20b0000 2884 2886 2885 2887 … … 3582 3584 */ 3583 3585 DECLINLINE(int) PDMDevHlpPDMQueueCreate(PPDMDEVINS pDevIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, 3584 PFNPDMQUEUEDEV pfnCallback, bool fGCEnabled, PPDMQUEUE *ppQueue)3585 { 3586 return pDevIns->pDevHlpR3->pfnPDMQueueCreate(pDevIns, cbItem, cItems, cMilliesInterval, pfnCallback, fGCEnabled, p pQueue);3586 PFNPDMQUEUEDEV pfnCallback, bool fGCEnabled, const char *pszName, PPDMQUEUE *ppQueue) 3587 { 3588 return pDevIns->pDevHlpR3->pfnPDMQueueCreate(pDevIns, cbItem, cItems, cMilliesInterval, pfnCallback, fGCEnabled, pszName, ppQueue); 3587 3589 } 3588 3590 -
trunk/include/VBox/pdmdrv.h
r21217 r21363 482 482 * If 0 then the emulation thread will be notified whenever an item arrives. 483 483 * @param pfnCallback The consumer function. 484 * @param pszName The queue base name. The instance number will be 485 * appended automatically. 484 486 * @param ppQueue Where to store the queue handle on success. 485 487 * @thread The emulation thread. 486 488 */ 487 DECLR3CALLBACKMEMBER(int, pfnPDMQueueCreate,(PPDMDRVINS pDrvIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, PFNPDMQUEUEDRV pfnCallback, PPDMQUEUE *ppQueue)); 488 489 /** 490 * Register a poller function. 491 * TEMPORARY HACK FOR NETWORKING! DON'T USE! 492 * 493 * @returns VBox status code. 494 * @param pDrvIns Driver instance. 495 * @param pfnPoller The callback function. 496 */ 497 DECLR3CALLBACKMEMBER(int, pfnPDMPollerRegister,(PPDMDRVINS pDrvIns, PFNPDMDRVPOLLER pfnPoller)); 489 DECLR3CALLBACKMEMBER(int, pfnPDMQueueCreate,(PPDMDRVINS pDrvIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, 490 PFNPDMQUEUEDRV pfnCallback, const char *pszName, PPDMQUEUE *ppQueue)); 498 491 499 492 /** … … 710 703 711 704 /** Current DRVHLP version number. */ 712 #define PDM_DRVHLP_VERSION 0x900 40000705 #define PDM_DRVHLP_VERSION 0x90050000 713 706 714 707 … … 826 819 */ 827 820 DECLINLINE(int) PDMDrvHlpPDMQueueCreate(PPDMDRVINS pDrvIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, 828 PFNPDMQUEUEDRV pfnCallback, PPDMQUEUE *ppQueue)829 { 830 return pDrvIns->pDrvHlp->pfnPDMQueueCreate(pDrvIns, cbItem, cItems, cMilliesInterval, pfnCallback, p pQueue);821 PFNPDMQUEUEDRV pfnCallback, const char *pszName, PPDMQUEUE *ppQueue) 822 { 823 return pDrvIns->pDrvHlp->pfnPDMQueueCreate(pDrvIns, cbItem, cItems, cMilliesInterval, pfnCallback, pszName, ppQueue); 831 824 } 832 825 -
trunk/include/VBox/pdmqueue.h
r21217 r21363 112 112 113 113 VMMR3DECL(int) PDMR3QueueCreateDevice(PVM pVM, PPDMDEVINS pDevIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, 114 PFNPDMQUEUEDEV pfnCallback, bool fGCEnabled, PPDMQUEUE *ppQueue);114 PFNPDMQUEUEDEV pfnCallback, bool fGCEnabled, const char *pszName, PPDMQUEUE *ppQueue); 115 115 VMMR3DECL(int) PDMR3QueueCreateDriver(PVM pVM, PPDMDRVINS pDrvIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, 116 PFNPDMQUEUEDRV pfnCallback, PPDMQUEUE *ppQueue);116 PFNPDMQUEUEDRV pfnCallback, const char *pszName, PPDMQUEUE *ppQueue); 117 117 VMMR3DECL(int) PDMR3QueueCreateInternal(PVM pVM, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, 118 PFNPDMQUEUEINT pfnCallback, bool fGCEnabled, PPDMQUEUE *ppQueue);118 PFNPDMQUEUEINT pfnCallback, bool fGCEnabled, const char *pszName, PPDMQUEUE *ppQueue); 119 119 VMMR3DECL(int) PDMR3QueueCreateExternal(PVM pVM, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, 120 PFNPDMQUEUEEXT pfnCallback, void *pvUser, PPDMQUEUE *ppQueue);120 PFNPDMQUEUEEXT pfnCallback, void *pvUser, const char *pszName, PPDMQUEUE *ppQueue); 121 121 VMMR3DECL(int) PDMR3QueueDestroy(PPDMQUEUE pQueue); 122 122 VMMR3DECL(int) PDMR3QueueDestroyDevice(PVM pVM, PPDMDEVINS pDevIns);
Note:
See TracChangeset
for help on using the changeset viewer.