VirtualBox

Ignore:
Timestamp:
Apr 8, 2008 1:12:40 PM (17 years ago)
Author:
vboxsync
Message:

HGCM: Add user data pointer to HGCM service function table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/service.cpp

    r7165 r7801  
    242242}
    243243
    244 static DECLCALLBACK(int) svcUnload (void)
     244static DECLCALLBACK(int) svcUnload (void *)
    245245{
    246246    vboxClipboardDestroy ();
     
    253253 * to the guest side.
    254254 */
    255 static DECLCALLBACK(int) svcDisconnect (uint32_t u32ClientID, void *pvClient)
     255static DECLCALLBACK(int) svcDisconnect (void *, uint32_t u32ClientID, void *pvClient)
    256256{
    257257    VBOXCLIPBOARDCLIENTDATA *pClient = (VBOXCLIPBOARDCLIENTDATA *)pvClient;
     
    268268}
    269269
    270 static DECLCALLBACK(int) svcConnect (uint32_t u32ClientID, void *pvClient)
     270static DECLCALLBACK(int) svcConnect (void *, uint32_t u32ClientID, void *pvClient)
    271271{
    272272    VBOXCLIPBOARDCLIENTDATA *pClient = (VBOXCLIPBOARDCLIENTDATA *)pvClient;
     
    279279        uint32_t u32ClientID = g_pClient->u32ClientID;
    280280
    281         svcDisconnect(u32ClientID, g_pClient);
     281        svcDisconnect(NULL, u32ClientID, g_pClient);
    282282        /* And free the resources in the hgcm subsystem. */
    283283        g_pHelpers->pfnDisconnectClient(g_pHelpers->pvInstance, u32ClientID);
     
    301301}
    302302
    303 static DECLCALLBACK(void) svcCall (VBOXHGCMCALLHANDLE callHandle,
     303static DECLCALLBACK(void) svcCall (void *,
     304                                   VBOXHGCMCALLHANDLE callHandle,
    304305                                   uint32_t u32ClientID,
    305306                                   void *pvClient,
     
    562563 * We differentiate between a function handler for the guest and one for the host.
    563564 */
    564 static DECLCALLBACK(int) svcHostCall (uint32_t u32Function,
     565static DECLCALLBACK(int) svcHostCall (void *,
     566                                      uint32_t u32Function,
    565567                                      uint32_t cParms,
    566568                                      VBOXHGCMSVCPARM paParms[])
     
    605607}
    606608
    607 static DECLCALLBACK(int) svcSaveState(uint32_t u32ClientID, void *pvClient, PSSMHANDLE pSSM)
     609static DECLCALLBACK(int) svcSaveState(void *, uint32_t u32ClientID, void *pvClient, PSSMHANDLE pSSM)
    608610{
    609611    /* If there are any pending requests, they must be completed here. Since
     
    638640}
    639641
    640 static DECLCALLBACK(int) svcLoadState(uint32_t u32ClientID, void *pvClient, PSSMHANDLE pSSM)
     642static DECLCALLBACK(int) svcLoadState(void *, uint32_t u32ClientID, void *pvClient, PSSMHANDLE pSSM)
    641643{
    642644    Log(("svcLoadState: u32ClientID = %d\n", u32ClientID));
     
    704706}
    705707
    706 static DECLCALLBACK(int) svcRegisterExtension(PFNHGCMSVCEXT pfnExtension, void *pvExtension)
     708static DECLCALLBACK(int) svcRegisterExtension(void *, PFNHGCMSVCEXT pfnExtension, void *pvExtension)
    707709{
    708710    LogFlowFunc(("pfnExtension = %p\n", pfnExtension));
     
    768770            ptable->pfnLoadState  = svcLoadState;
    769771            ptable->pfnRegisterExtension  = svcRegisterExtension;
     772            ptable->pvService     = NULL;
    770773
    771774            /* Service specific initialization. */
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