Changeset 26326 in vbox for trunk/src/VBox/Additions/common/VBoxGuestLib
- Timestamp:
- Feb 8, 2010 1:22:24 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57409
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp
r26054 r26326 158 158 VBGLR3DECL(int) VbglR3CtlFilterMask(uint32_t fOr, uint32_t fNot) 159 159 { 160 #if defined(RT_OS_WINDOWS)161 /** @todo Not yet implemented. */162 return VERR_NOT_SUPPORTED;163 164 #else165 166 160 VBoxGuestFilterMaskInfo Info; 167 161 Info.u32OrMask = fOr; 168 162 Info.u32NotMask = fNot; 169 163 return vbglR3DoIOCtl(VBOXGUEST_IOCTL_CTL_FILTER_MASK, &Info, sizeof(Info)); 170 #endif171 164 } 172 165 … … 196 189 #endif 197 190 return rc; 191 } 192 193 /** 194 * Query the current statistics update interval 195 * 196 * @returns IPRT status code 197 * @param pu32Interval Update interval in ms (out) 198 */ 199 VBGLR3DECL(int) VbglR3StatQueryInterval(uint32_t *pu32Interval) 200 { 201 VMMDevGetStatisticsChangeRequest Req; 202 203 vmmdevInitRequest(&Req.header, VMMDevReq_GetStatisticsChangeRequest); 204 Req.eventAck = VMMDEV_EVENT_STATISTICS_INTERVAL_CHANGE_REQUEST; 205 int rc = vbglR3GRPerform(&Req.header); 206 if (RT_SUCCESS(rc)) 207 *pu32Interval = Req.u32StatInterval * 1000; 208 return rc; 209 } 210 211 212 /** 213 * Report guest statistics 214 * 215 * @returns IPRT status code 216 * @param pReq Request packet with statistics 217 */ 218 VBGLR3DECL(int) VbglR3StatReport(VMMDevReportGuestStats *pReq) 219 { 220 vmmdevInitRequest(&pReq->header, VMMDevReq_ReportGuestStats); 221 return vbglR3GRPerform(&pReq->header); 222 } 223 224 225 /** 226 * Refresh the memory balloon after a change 227 * 228 * @returns IPRT status code 229 * @param pu32Size Memory balloon size in MBs (out) 230 */ 231 VBGLR3DECL(int) VbglR3MemBalloonRefresh(uint32_t *pu32Size) 232 { 233 return vbglR3DoIOCtl(VBOXGUEST_IOCTL_CTL_CHECK_BALLOON_MASK, pu32Size, sizeof(*pu32Size)); 198 234 } 199 235
Note:
See TracChangeset
for help on using the changeset viewer.