Changeset 94184 in vbox for trunk/src/VBox/Additions/common/VBoxControl
- Timestamp:
- Mar 11, 2022 6:24:17 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150440
- Location:
- trunk/src/VBox/Additions/common/VBoxControl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp ¶
r93300 r94184 1515 1515 uint64_t u64TimestampOut = 0; 1516 1516 char *pszFlags = NULL; 1517 bool fWasDeleted = false; 1517 1518 /* The buffer for storing the data and its initial size. We leave a bit 1518 1519 * of space here in case the maximum values are raised. */ … … 1538 1539 u64TimestampIn, u32Timeout, 1539 1540 &pszName, &pszValue, &u64TimestampOut, 1540 &pszFlags, &cbBuf );1541 &pszFlags, &cbBuf, &fWasDeleted); 1541 1542 } 1542 1543 if (VERR_BUFFER_OVERFLOW == rc) … … 1562 1563 else if (RT_SUCCESS(rc)) 1563 1564 { 1564 RTPrintf("Name: %s\n", pszName); 1565 RTPrintf("Value: %s\n", pszValue); 1566 RTPrintf("Timestamp: %lld ns\n", u64TimestampOut); 1567 RTPrintf("Flags: %s\n", pszFlags); 1565 if (fWasDeleted) 1566 { 1567 RTPrintf("Property %s was deleted\n", pszName); 1568 } 1569 else 1570 { 1571 RTPrintf("Name: %s\n", pszName); 1572 RTPrintf("Value: %s\n", pszValue); 1573 RTPrintf("Timestamp: %lld ns\n", u64TimestampOut); 1574 RTPrintf("Flags: %s\n", pszFlags); 1575 } 1568 1576 } 1569 1577 -
trunk/src/VBox/Additions/common/VBoxControl/testcase/tstVBoxControl.cpp ¶
r93115 r94184 177 177 uint64_t *pu64Timestamp, 178 178 char **ppszFlags, 179 uint32_t *pcbBufActual) 179 uint32_t *pcbBufActual, 180 bool *pfWasDeleted) 180 181 { 181 182 RT_NOREF2(pvBuf, cbBuf); … … 201 202 if (pcbBufActual) 202 203 *pcbBufActual = 256; 204 if (pfWasDeleted) 205 *pfWasDeleted = false; 203 206 return VINF_SUCCESS; 204 207 }
Note:
See TracChangeset
for help on using the changeset viewer.