VirtualBox

Changeset 30082 in vbox for trunk


Ignore:
Timestamp:
Jun 7, 2010 3:34:06 PM (15 years ago)
Author:
vboxsync
Message:

VBoxService/PropCache: Some renaming.

Location:
trunk/src/VBox/Additions/common/VBoxService
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceInternal.h

    r29858 r30082  
    200200    /** The client ID for HGCM communication. */
    201201    uint32_t    uClientID;
    202     /** List of VBOXSERVICEVEPROPCACHEENTRY nodes. */
    203     RTLISTNODE  ListEntries;
     202    /** Head node of list. */
     203    RTLISTNODE  NodeHead;
    204204    /** Critical section for thread-safe use. */
    205205    RTCRITSECT  CritSect;
     
    213213typedef struct VBOXSERVICEVEPROPCACHEENTRY
    214214{
    215     /** Node. */
    216     RTLISTNODE  Node;
     215    /** Node to successor. */
     216    RTLISTNODE  NodeSucc;
    217217    /** Name (and full path) of guest property. */
    218218    char       *pszName;
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePropCache.cpp

    r30013 r30082  
    4949    if (RT_SUCCESS(RTCritSectEnter(&pCache->CritSect)))
    5050    {
    51         RTListForEach(&pCache->ListEntries, pNodeIt, VBOXSERVICEVEPROPCACHEENTRY, Node)
     51        RTListForEach(&pCache->NodeHead, pNodeIt, VBOXSERVICEVEPROPCACHEENTRY, NodeSucc)
    5252        {
    5353            if (strcmp(pNodeIt->pszName, pszName) == 0)
     
    7878        if (RT_SUCCESS(rc))
    7979        {
    80             /*rc =*/ RTListAppend(&pCache->ListEntries, &pNode->Node);
     80            /*rc =*/ RTListAppend(&pCache->NodeHead, &pNode->NodeSucc);
    8181            rc = RTCritSectLeave(&pCache->CritSect);
    8282        }
     
    9898    /** @todo Prevent init the cache twice!
    9999     *  r=bird: Use a magic. */
    100     RTListInit(&pCache->ListEntries);
     100    RTListInit(&pCache->NodeHead);
    101101    pCache->uClientID = uClientId;
    102102    return RTCritSectInit(&pCache->CritSect);
     
    279279    if (RT_SUCCESS(RTCritSectEnter(&pCache->CritSect)))
    280280    {
    281         RTListForEach(&pCache->ListEntries, pNodeIt, VBOXSERVICEVEPROPCACHEENTRY, Node)
     281        RTListForEach(&pCache->NodeHead, pNodeIt, VBOXSERVICEVEPROPCACHEENTRY, NodeSucc)
    282282        {
    283283            rc = VBoxServiceWritePropF(pCache->uClientID, pNodeIt->pszName, pNodeIt->pszValue);
     
    305305    if (RT_SUCCESS(rc))
    306306    {
    307         PVBOXSERVICEVEPROPCACHEENTRY pNode = RTListNodeGetFirst(&pCache->ListEntries, VBOXSERVICEVEPROPCACHEENTRY, Node);
     307        PVBOXSERVICEVEPROPCACHEENTRY pNode = RTListNodeGetFirst(&pCache->NodeHead, VBOXSERVICEVEPROPCACHEENTRY, NodeSucc);
    308308        while (pNode)
    309309        {
     
    317317            pNode->fFlags = 0;
    318318
    319             PVBOXSERVICEVEPROPCACHEENTRY pNext = RTListNodeGetNext(&pNode->Node, VBOXSERVICEVEPROPCACHEENTRY, Node);
    320             RTListNodeRemove(&pNode->Node);
     319            PVBOXSERVICEVEPROPCACHEENTRY pNext = RTListNodeGetNext(&pNode->NodeSucc, VBOXSERVICEVEPROPCACHEENTRY, NodeSucc);
     320            RTListNodeRemove(&pNode->NodeSucc);
    321321            RTMemFree(pNode);
    322322
    323             if (pNext && RTListNodeIsLast(&pCache->ListEntries, &pNext->Node))
     323            if (pNext && RTListNodeIsLast(&pCache->NodeHead, &pNext->NodeSucc))
    324324                break;
    325325            pNode = pNext;
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