VirtualBox

Ignore:
Timestamp:
Apr 1, 2020 3:28:53 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136798
Message:

Guest Control/HostService: Logging for querying/setting features.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestControl/VBoxGuestControlSvc.cpp

    r83405 r83504  
    911911    int clientMakeMeMaster(ClientState *pClient, VBOXHGCMCALLHANDLE hCall, uint32_t cParms);
    912912    int clientReportFeatures(ClientState *pClient, VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[]);
    913     int clientQueryFeatures(VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[]);
     913    int clientQueryFeatures(ClientState *pClient, VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[]);
    914914    int clientMsgPeek(ClientState *pClient, VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[], bool fWait);
    915915    int clientMsgGet(ClientState *pClient, VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[]);
     
    11981198        m_fGuestFeatures0 = fFeatures0;
    11991199        m_fGuestFeatures1 = fFeatures1;
    1200         Log(("[Client %RU32] features: %#RX64 %#RX64\n", pClient->m_idClient, fFeatures0, fFeatures1));
     1200        Log(("[Client %RU32] reported features: %#RX64 %#RX64\n", pClient->m_idClient, fFeatures0, fFeatures1));
    12011201
    12021202        /*
     
    12191219 * @retval  VERR_WRONG_PARAMETER_COUNT
    12201220 *
     1221 * @param   pClient     The client state.
    12211222 * @param   hCall       The client's call handle.
    12221223 * @param   cParms      Number of parameters.
    12231224 * @param   paParms     Array of parameters.
    12241225 */
    1225 int GstCtrlService::clientQueryFeatures(VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[])
     1226int GstCtrlService::clientQueryFeatures(ClientState *pClient,
     1227                                        VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[])
    12261228{
    12271229    /*
     
    12391241    paParms[1].u.uint64 = 0;
    12401242    int rc = mpHelpers->pfnCallComplete(hCall, VINF_SUCCESS);
    1241     if (RT_FAILURE(rc))
     1243    if (RT_SUCCESS(rc))
     1244    {
     1245        Log(("[Client %RU32] query features: %#RX64 0\n", pClient->m_idClient, g_fGstCtrlHostFeatures0));
     1246    }
     1247    else
    12421248        LogFunc(("pfnCallComplete -> %Rrc\n", rc));
    12431249
     
    21132119        case GUEST_MSG_QUERY_FEATURES:
    21142120            LogFlowFunc(("[Client %RU32] GUEST_MSG_QUERY_FEATURES\n", idClient));
    2115             rc = pThis->clientQueryFeatures(hCall, cParms, paParms);
     2121            rc = pThis->clientQueryFeatures(pClient, hCall, cParms, paParms);
    21162122            break;
    21172123        case GUEST_MSG_PEEK_NOWAIT:
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