VirtualBox

Changeset 107733 in vbox for trunk


Ignore:
Timestamp:
Jan 14, 2025 8:56:10 AM (4 weeks ago)
Author:
vboxsync
Message:

VBoxService/VBoxServicePropCache.cpp: Docs, renaming (to match the rest).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePropCache.cpp

    r107719 r107733  
    4242
    4343
    44 
    45 /** @todo Docs */
     44/**
     45 * Searches a property within a property cache.
     46 *
     47 * @returns A pointer to the found property cache entry on success, or NULL if not found.
     48 * @param   pCache          The property cache.
     49 * @param   pszName         Name of property to search for. Case sensitive.
     50 * @param   fFlags          Search flags. Currently unused and must be 0.
     51 */
    4652static PVBOXSERVICEVEPROPCACHEENTRY vgsvcPropCacheFindInternal(PVBOXSERVICEVEPROPCACHE pCache, const char *pszName,
    4753                                                               uint32_t fFlags)
     
    7480
    7581
    76 /** @todo Docs */
     82/**
     83 * Inserts (appends) a property into a property cache.
     84 *
     85 * @returns A pointer to the inserted property cache entry on success, or NULL on failure.
     86 * @param   pCache          The property cache.
     87 * @param   pszName         Name of property to insert. Case sensitive.
     88 */
    7789static PVBOXSERVICEVEPROPCACHEENTRY vgsvcPropCacheInsertEntryInternal(PVBOXSERVICEVEPROPCACHE pCache, const char *pszName)
    7890{
     
    106118
    107119
    108 /** @todo Docs */
    109 static int vgsvcPropCacheWritePropF(uint32_t u32ClientId, const char *pszName, uint32_t fFlags, const char *pszValueFormat, ...)
     120/**
     121 * Writes a new value to a property.
     122 *
     123 * @returns VBox status code.
     124 * @param   uClientId       The HGCM handle of to the guest property service.
     125 * @param   pszName         Name of property to write value for. Case sensitive.
     126 * @param   fFlags          Property cache flags of type VGSVCPROPCACHE_FLAGS_XXX.
     127 * @param   pszValueFormat  Format string of value to write.
     128 */
     129static int vgsvcPropCacheWritePropF(uint32_t uClientId, const char *pszName, uint32_t fFlags, const char *pszValueFormat, ...)
    110130{
    111131    AssertPtrReturn(pszName, VERR_INVALID_POINTER);
     
    128148                 * guest property using the TRANSRESET flag..
    129149                 */
    130                 rc = VbglR3GuestPropWrite(u32ClientId, pszName, pszValue, "TRANSRESET");
     150                rc = VbglR3GuestPropWrite(uClientId, pszName, pszValue, "TRANSRESET");
    131151                if (rc == VERR_PARSE_ERROR)
    132152                {
    133153                    /* Host does not support the "TRANSRESET" flag, so only
    134154                     * use the "TRANSIENT" flag -- better than nothing :-). */
    135                     rc = VbglR3GuestPropWrite(u32ClientId, pszName, pszValue, "TRANSIENT");
     155                    rc = VbglR3GuestPropWrite(uClientId, pszName, pszValue, "TRANSIENT");
    136156                    /** @todo r=bird: Remember that the host doesn't support
    137157                     * this. */
     
    139159            }
    140160            else
    141                 rc = VbglR3GuestPropWriteValue(u32ClientId, pszName, pszValue /* No transient flags set */);
     161                rc = VbglR3GuestPropWriteValue(uClientId, pszName, pszValue /* No transient flags set */);
    142162            RTStrFree(pszValue);
    143163        }
     
    147167    }
    148168    else
    149         rc = VbglR3GuestPropWriteValue(u32ClientId, pszName, NULL);
     169        rc = VbglR3GuestPropWriteValue(uClientId, pszName, NULL);
    150170    return rc;
    151171}
     
    155175 * Creates a property cache.
    156176 *
    157  * @returns IPRT status code.
     177 * @returns VBox status code.
    158178 * @param   pCache          Pointer to the cache.
    159179 * @param   uClientId       The HGCM handle of to the guest property service.
     
    176196 *
    177197 * @returns VBox status code.
    178  *
    179198 * @param   pCache          The property cache.
    180199 * @param   pszName         The property name.
     
    329348 *
    330349 * @returns VBox status code.
    331  *
    332350 * @param   pCache          The property cache.
    333351 * @param   pszValue        The value to set.  A NULL will delete the value.
     
    384402 * Flushes the cache by writing every item regardless of its state.
    385403 *
     404 * @returns VBox status code.
    386405 * @param   pCache          The property cache.
    387406 */
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