Changeset 75600 in vbox
- Timestamp:
- Nov 19, 2018 9:15:16 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126770
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuestLib.h
r75588 r75600 128 128 */ 129 129 DECLR0VBGL(void) VbglR0TerminateClient(void); 130 131 /** 132 * Query the host feature mask. 133 * 134 * @returns VBox status code. 135 * @param pfHostFeatures Where to return the host feature mask, 136 * VMMDEV_HVF_XXX. 137 * @note Client only. May fail we're unable to connect VBoxGuest. 138 */ 139 DECLR0VBGL(int) VbglR0QueryHostFeatures(uint32_t *pfHostFeatures); 130 140 131 141 -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibInit.cpp
r75588 r75600 82 82 * values and fails if they are unavailable. 83 83 */ 84 static voidvbglR0QueryDriverInfo(void)84 static int vbglR0QueryDriverInfo(void) 85 85 { 86 86 # ifdef VBGLDATA_USE_FAST_MUTEX … … 129 129 # endif 130 130 } 131 return rc; 131 132 } 132 133 #endif /* !VBGL_VBOXGUEST */ … … 312 313 } 313 314 315 316 DECLR0VBGL(int) VbglR0QueryHostFeatures(uint32_t *pfHostFeatures) 317 { 318 if (g_vbgldata.status == VbglStatusReady) 319 *pfHostFeatures = g_vbgldata.hostVersion.features; 320 else 321 { 322 int rc = vbglR0QueryDriverInfo(); 323 if (g_vbgldata.status != VbglStatusReady) 324 return rc; 325 *pfHostFeatures = g_vbgldata.hostVersion.features; 326 } 327 328 return VINF_SUCCESS; 329 } 330 314 331 #endif /* !VBGL_VBOXGUEST */ 315 332
Note:
See TracChangeset
for help on using the changeset viewer.