Changeset 58183 in vbox for trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibHostVersion.cpp
- Timestamp:
- Oct 12, 2015 1:46:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibHostVersion.cpp
r57358 r58183 46 46 * @returns VBox status code 47 47 * 48 * @param u32ClientIdThe client id returned by48 * @param idClient The client id returned by 49 49 * VbglR3InfoSvcConnect(). 50 50 * @param pfUpdate Receives pointer to boolean flag indicating … … 59 59 * NULL. 60 60 */ 61 VBGLR3DECL(int) VbglR3HostVersionCheckForUpdate( uint32_t u32ClientId, bool *pfUpdate, char **ppszHostVersion, char **ppszGuestVersion)61 VBGLR3DECL(int) VbglR3HostVersionCheckForUpdate(HGCMCLIENTID idClient, bool *pfUpdate, char **ppszHostVersion, char **ppszGuestVersion) 62 62 { 63 Assert( u32ClientId> 0);63 Assert(idClient > 0); 64 64 AssertPtr(pfUpdate); 65 65 AssertPtr(ppszHostVersion); … … 75 75 /* Do we need to do all this stuff? */ 76 76 char *pszCheckHostVersion; 77 int rc = VbglR3GuestPropReadValueAlloc( u32ClientId, "/VirtualBox/GuestAdd/CheckHostVersion", &pszCheckHostVersion);77 int rc = VbglR3GuestPropReadValueAlloc(idClient, "/VirtualBox/GuestAdd/CheckHostVersion", &pszCheckHostVersion); 78 78 if (RT_FAILURE(rc)) 79 79 { … … 100 100 { 101 101 /* Look up host version */ 102 rc = VbglR3GuestPropReadValueAlloc( u32ClientId, "/VirtualBox/HostInfo/VBoxVer", ppszHostVersion);102 rc = VbglR3GuestPropReadValueAlloc(idClient, "/VirtualBox/HostInfo/VBoxVer", ppszHostVersion); 103 103 if (RT_FAILURE(rc)) 104 104 { … … 111 111 /* Get last checked host version */ 112 112 char *pszLastCheckedHostVersion; 113 rc = VbglR3HostVersionLastCheckedLoad( u32ClientId, &pszLastCheckedHostVersion);113 rc = VbglR3HostVersionLastCheckedLoad(idClient, &pszLastCheckedHostVersion); 114 114 if (RT_SUCCESS(rc)) 115 115 { … … 173 173 * @returns VBox status code. 174 174 * 175 * @param u32ClientIdThe client id returned by VbglR3InfoSvcConnect().175 * @param idClient The client id returned by VbglR3InfoSvcConnect(). 176 176 * @param ppszVer Receives pointer of allocated version string. 177 177 * The returned pointer must be freed using RTStrFree() on VINF_SUCCESS. 178 178 */ 179 VBGLR3DECL(int) VbglR3HostVersionLastCheckedLoad( uint32_t u32ClientId, char **ppszVer)179 VBGLR3DECL(int) VbglR3HostVersionLastCheckedLoad(HGCMCLIENTID idClient, char **ppszVer) 180 180 { 181 Assert( u32ClientId> 0);181 Assert(idClient > 0); 182 182 AssertPtr(ppszVer); 183 return VbglR3GuestPropReadValueAlloc( u32ClientId, "/VirtualBox/GuestAdd/HostVerLastChecked", ppszVer);183 return VbglR3GuestPropReadValueAlloc(idClient, "/VirtualBox/GuestAdd/HostVerLastChecked", ppszVer); 184 184 } 185 185 … … 190 190 * @returns VBox status code. 191 191 * 192 * @param u32ClientIdThe client id returned by VbglR3InfoSvcConnect().192 * @param idClient The client id returned by VbglR3InfoSvcConnect(). 193 193 * @param pszVer Pointer to version string to store. 194 194 */ 195 VBGLR3DECL(int) VbglR3HostVersionLastCheckedStore( uint32_t u32ClientId, const char *pszVer)195 VBGLR3DECL(int) VbglR3HostVersionLastCheckedStore(HGCMCLIENTID idClient, const char *pszVer) 196 196 { 197 Assert( u32ClientId> 0);197 Assert(idClient > 0); 198 198 AssertPtr(pszVer); 199 return VbglR3GuestPropWriteValue( u32ClientId, "/VirtualBox/GuestAdd/HostVerLastChecked", pszVer);199 return VbglR3GuestPropWriteValue(idClient, "/VirtualBox/GuestAdd/HostVerLastChecked", pszVer); 200 200 } 201
Note:
See TracChangeset
for help on using the changeset viewer.