VirtualBox

忽略:
時間撮記:
2010-2-26 下午06:21:38 (15 年 以前)
作者:
vboxsync
訊息:

dev/Graphics: HGSMILIST additional tooling functions (to be used by the Video DMA)

位置:
trunk/src/VBox/Devices/Graphics/HGSMI
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHostHlp.cpp

    r22652 r26876  
    7272}
    7373
     74HGSMILISTENTRY * hgsmiListRemoveAll (HGSMILIST *pList, HGSMILISTENTRY ** ppTail /* optional */)
     75{
     76    HGSMILISTENTRY * pHead = pList->pHead;
     77    if (ppTail)
     78        *ppTail = pList->pTail;
     79
     80    hgsmiListInit (pList);
     81
     82    return pHead;
     83}
     84
     85
  • trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHostHlp.h

    r22652 r26876  
    4242void hgsmiListRemove (HGSMILIST *pList, HGSMILISTENTRY *pEntry, HGSMILISTENTRY *pPrev);
    4343
     44DECLINLINE(HGSMILISTENTRY*) hgsmiListRemoveHead (HGSMILIST *pList)
     45{
     46    HGSMILISTENTRY *pHead = pList->pHead;
     47    if (pHead)
     48        hgsmiListRemove (pList, pHead, NULL);
     49    return pHead;
     50}
     51
     52DECLINLINE(void) hgsmiListInit (HGSMILIST *pList)
     53{
     54    pList->pHead = NULL;
     55    pList->pTail = NULL;
     56}
     57
     58HGSMILISTENTRY * hgsmiListRemoveAll (HGSMILIST *pList, HGSMILISTENTRY ** ppTail /* optional */);
     59
    4460
    4561#endif /* !__HGSMIHostHlp_h__*/
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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