- Timestamp:
- Jan 14, 2025 8:56:10 AM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServicePropCache.cpp
r107719 r107733 42 42 43 43 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 */ 46 52 static PVBOXSERVICEVEPROPCACHEENTRY vgsvcPropCacheFindInternal(PVBOXSERVICEVEPROPCACHE pCache, const char *pszName, 47 53 uint32_t fFlags) … … 74 80 75 81 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 */ 77 89 static PVBOXSERVICEVEPROPCACHEENTRY vgsvcPropCacheInsertEntryInternal(PVBOXSERVICEVEPROPCACHE pCache, const char *pszName) 78 90 { … … 106 118 107 119 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 */ 129 static int vgsvcPropCacheWritePropF(uint32_t uClientId, const char *pszName, uint32_t fFlags, const char *pszValueFormat, ...) 110 130 { 111 131 AssertPtrReturn(pszName, VERR_INVALID_POINTER); … … 128 148 * guest property using the TRANSRESET flag.. 129 149 */ 130 rc = VbglR3GuestPropWrite(u 32ClientId, pszName, pszValue, "TRANSRESET");150 rc = VbglR3GuestPropWrite(uClientId, pszName, pszValue, "TRANSRESET"); 131 151 if (rc == VERR_PARSE_ERROR) 132 152 { 133 153 /* Host does not support the "TRANSRESET" flag, so only 134 154 * use the "TRANSIENT" flag -- better than nothing :-). */ 135 rc = VbglR3GuestPropWrite(u 32ClientId, pszName, pszValue, "TRANSIENT");155 rc = VbglR3GuestPropWrite(uClientId, pszName, pszValue, "TRANSIENT"); 136 156 /** @todo r=bird: Remember that the host doesn't support 137 157 * this. */ … … 139 159 } 140 160 else 141 rc = VbglR3GuestPropWriteValue(u 32ClientId, pszName, pszValue /* No transient flags set */);161 rc = VbglR3GuestPropWriteValue(uClientId, pszName, pszValue /* No transient flags set */); 142 162 RTStrFree(pszValue); 143 163 } … … 147 167 } 148 168 else 149 rc = VbglR3GuestPropWriteValue(u 32ClientId, pszName, NULL);169 rc = VbglR3GuestPropWriteValue(uClientId, pszName, NULL); 150 170 return rc; 151 171 } … … 155 175 * Creates a property cache. 156 176 * 157 * @returns IPRTstatus code.177 * @returns VBox status code. 158 178 * @param pCache Pointer to the cache. 159 179 * @param uClientId The HGCM handle of to the guest property service. … … 176 196 * 177 197 * @returns VBox status code. 178 *179 198 * @param pCache The property cache. 180 199 * @param pszName The property name. … … 329 348 * 330 349 * @returns VBox status code. 331 *332 350 * @param pCache The property cache. 333 351 * @param pszValue The value to set. A NULL will delete the value. … … 384 402 * Flushes the cache by writing every item regardless of its state. 385 403 * 404 * @returns VBox status code. 386 405 * @param pCache The property cache. 387 406 */
Note:
See TracChangeset
for help on using the changeset viewer.