VirtualBox

Ignore:
Timestamp:
Oct 12, 2015 1:46:16 PM (9 years ago)
Author:
vboxsync
Message:

VBoxGuestLib: u32ClientI[Dd] -> idClient. Some cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibHostVersion.cpp

    r57358 r58183  
    4646 * @returns VBox status code
    4747 *
    48  * @param   u32ClientId         The client id returned by
     48 * @param   idClient            The client id returned by
    4949 *                              VbglR3InfoSvcConnect().
    5050 * @param   pfUpdate            Receives pointer to boolean flag indicating
     
    5959 *                              NULL.
    6060 */
    61 VBGLR3DECL(int) VbglR3HostVersionCheckForUpdate(uint32_t u32ClientId, bool *pfUpdate, char **ppszHostVersion, char **ppszGuestVersion)
     61VBGLR3DECL(int) VbglR3HostVersionCheckForUpdate(HGCMCLIENTID idClient, bool *pfUpdate, char **ppszHostVersion, char **ppszGuestVersion)
    6262{
    63     Assert(u32ClientId > 0);
     63    Assert(idClient > 0);
    6464    AssertPtr(pfUpdate);
    6565    AssertPtr(ppszHostVersion);
     
    7575    /* Do we need to do all this stuff? */
    7676    char *pszCheckHostVersion;
    77     int rc = VbglR3GuestPropReadValueAlloc(u32ClientId, "/VirtualBox/GuestAdd/CheckHostVersion", &pszCheckHostVersion);
     77    int rc = VbglR3GuestPropReadValueAlloc(idClient, "/VirtualBox/GuestAdd/CheckHostVersion", &pszCheckHostVersion);
    7878    if (RT_FAILURE(rc))
    7979    {
     
    100100    {
    101101        /* Look up host version */
    102         rc = VbglR3GuestPropReadValueAlloc(u32ClientId, "/VirtualBox/HostInfo/VBoxVer", ppszHostVersion);
     102        rc = VbglR3GuestPropReadValueAlloc(idClient, "/VirtualBox/HostInfo/VBoxVer", ppszHostVersion);
    103103        if (RT_FAILURE(rc))
    104104        {
     
    111111            /* Get last checked host version */
    112112            char *pszLastCheckedHostVersion;
    113             rc = VbglR3HostVersionLastCheckedLoad(u32ClientId, &pszLastCheckedHostVersion);
     113            rc = VbglR3HostVersionLastCheckedLoad(idClient, &pszLastCheckedHostVersion);
    114114            if (RT_SUCCESS(rc))
    115115            {
     
    173173 * @returns VBox status code.
    174174 *
    175  * @param   u32ClientId     The client id returned by VbglR3InfoSvcConnect().
     175 * @param   idClient        The client id returned by VbglR3InfoSvcConnect().
    176176 * @param   ppszVer         Receives pointer of allocated version string.
    177177 *                          The returned pointer must be freed using RTStrFree() on VINF_SUCCESS.
    178178 */
    179 VBGLR3DECL(int) VbglR3HostVersionLastCheckedLoad(uint32_t u32ClientId, char **ppszVer)
     179VBGLR3DECL(int) VbglR3HostVersionLastCheckedLoad(HGCMCLIENTID idClient, char **ppszVer)
    180180{
    181     Assert(u32ClientId > 0);
     181    Assert(idClient > 0);
    182182    AssertPtr(ppszVer);
    183     return VbglR3GuestPropReadValueAlloc(u32ClientId, "/VirtualBox/GuestAdd/HostVerLastChecked", ppszVer);
     183    return VbglR3GuestPropReadValueAlloc(idClient, "/VirtualBox/GuestAdd/HostVerLastChecked", ppszVer);
    184184}
    185185
     
    190190 * @returns VBox status code.
    191191 *
    192  * @param   u32ClientId     The client id returned by VbglR3InfoSvcConnect().
     192 * @param   idClient        The client id returned by VbglR3InfoSvcConnect().
    193193 * @param   pszVer          Pointer to version string to store.
    194194 */
    195 VBGLR3DECL(int) VbglR3HostVersionLastCheckedStore(uint32_t u32ClientId, const char *pszVer)
     195VBGLR3DECL(int) VbglR3HostVersionLastCheckedStore(HGCMCLIENTID idClient, const char *pszVer)
    196196{
    197     Assert(u32ClientId > 0);
     197    Assert(idClient > 0);
    198198    AssertPtr(pszVer);
    199     return VbglR3GuestPropWriteValue(u32ClientId, "/VirtualBox/GuestAdd/HostVerLastChecked", pszVer);
     199    return VbglR3GuestPropWriteValue(idClient, "/VirtualBox/GuestAdd/HostVerLastChecked", pszVer);
    200200}
     201
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette