VirtualBox

Ignore:
Timestamp:
Apr 8, 2008 1:12:40 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29367
Message:

HGCM: Add user data pointer to HGCM service function table

File:
1 edited

Legend:

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

    r5999 r7801  
    2929
    3030
    31 static DECLCALLBACK(int) svcUnload (void)
     31static DECLCALLBACK(int) svcUnload (void *)
    3232{
    3333    int rc = VINF_SUCCESS;
     
    3939}
    4040
    41 static DECLCALLBACK(int) svcConnect (uint32_t u32ClientID, void *pvClient)
     41static DECLCALLBACK(int) svcConnect (void *, uint32_t u32ClientID, void *pvClient)
    4242{
    4343    int rc = VINF_SUCCESS;
     
    5252}
    5353
    54 static DECLCALLBACK(int) svcDisconnect (uint32_t u32ClientID, void *pvClient)
     54static DECLCALLBACK(int) svcDisconnect (void *, uint32_t u32ClientID, void *pvClient)
    5555{
    5656    int rc = VINF_SUCCESS;
     
    6767 * We can't save the OpenGL state, so there's not much to do. Perhaps we should invalidate the client id?
    6868 */
    69 static DECLCALLBACK(int) svcSaveState(uint32_t u32ClientID, void *pvClient, PSSMHANDLE pSSM)
     69static DECLCALLBACK(int) svcSaveState(void *, uint32_t u32ClientID, void *pvClient, PSSMHANDLE pSSM)
    7070{
    7171    VBOXOGLCTX *pClient = (VBOXOGLCTX *)pvClient;
     
    7979}
    8080
    81 static DECLCALLBACK(int) svcLoadState(uint32_t u32ClientID, void *pvClient, PSSMHANDLE pSSM)
     81static DECLCALLBACK(int) svcLoadState(void *, uint32_t u32ClientID, void *pvClient, PSSMHANDLE pSSM)
    8282{
    8383    VBOXOGLCTX *pClient = (VBOXOGLCTX *)pvClient;
     
    9191}
    9292
    93 static DECLCALLBACK(void) svcCall (VBOXHGCMCALLHANDLE callHandle, uint32_t u32ClientID, void *pvClient, uint32_t u32Function, uint32_t cParms, VBOXHGCMSVCPARM paParms[])
     93static DECLCALLBACK(void) svcCall (void *, VBOXHGCMCALLHANDLE callHandle, uint32_t u32ClientID, void *pvClient, uint32_t u32Function, uint32_t cParms, VBOXHGCMSVCPARM paParms[])
    9494{
    9595    int rc = VINF_SUCCESS;
     
    316316 * We differentiate between a function handler for the guest and one for the host. The guest is not allowed to add or remove mappings for obvious security reasons.
    317317 */
    318 static DECLCALLBACK(int) svcHostCall (uint32_t u32Function, uint32_t cParms, VBOXHGCMSVCPARM paParms[])
     318static DECLCALLBACK(int) svcHostCall (void *, uint32_t u32Function, uint32_t cParms, VBOXHGCMSVCPARM paParms[])
    319319{
    320320    int rc = VINF_SUCCESS;
     
    375375            ptable->pfnSaveState  = svcSaveState;
    376376            ptable->pfnLoadState  = svcLoadState;
     377            ptable->pvService     = NULL;
    377378
    378379            vboxglGlobalInit();
Note: See TracChangeset for help on using the changeset viewer.

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