VirtualBox

Changeset 75773 in vbox for trunk/include


Ignore:
Timestamp:
Nov 27, 2018 2:14:41 PM (6 years ago)
Author:
vboxsync
Message:

HGCM: Added fRequestor and fRestoring to VBOXHGCMSVCFNTABLE::pfnConnect. bugref:9105

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HostServices/Service.h

    r75500 r75773  
    289289    static DECLCALLBACK(int) svcConnect(void *pvService,
    290290                                        uint32_t u32ClientID,
    291                                         void *pvClient)
    292     {
     291                                        void *pvClient,
     292                                        uint32_t fRequestor,
     293                                        bool fRestoring)
     294    {
     295        RT_NOREF(fRequestor, fRestoring);
    293296        AssertLogRelReturn(VALID_PTR(pvService), VERR_INVALID_PARAMETER);
    294297        LogFlowFunc(("pvService=%p, u32ClientID=%u, pvClient=%p\n", pvService, u32ClientID, pvClient));
  • trunk/include/VBox/hgcmsvc.h

    r75771 r75773  
    7070 * 6.1->6.2 Because pfnCallComplete starts returning a status code (VBox 6.0).
    7171 * 6.2->6.3 Because pfnGetRequestor was added (VBox 6.0).
     72 * 6.3->6.4 Bacause pfnConnect got an additional parameter (VBox 6.0).
    7273 */
    7374#define VBOX_HGCM_SVC_VERSION_MAJOR (0x0006)
    74 #define VBOX_HGCM_SVC_VERSION_MINOR (0x0003)
     75#define VBOX_HGCM_SVC_VERSION_MINOR (0x0004)
    7576#define VBOX_HGCM_SVC_VERSION ((VBOX_HGCM_SVC_VERSION_MAJOR << 16) + VBOX_HGCM_SVC_VERSION_MINOR)
    7677
     
    455456
    456457/* The structure is used in separately compiled binaries so an explicit packing is required. */
    457 #pragma pack(1) /** @todo r=bird: The pragma pack(1) is not at all required!! */
    458458typedef struct VBOXHGCMSVCFNTABLE
    459459{
     
    484484
    485485    /** Inform the service about a client connection. */
    486     DECLR3CALLBACKMEMBER(int, pfnConnect, (void *pvService, uint32_t u32ClientID, void *pvClient));
     486    DECLR3CALLBACKMEMBER(int, pfnConnect, (void *pvService, uint32_t u32ClientID, void *pvClient, uint32_t fRequestor, bool fRestoring));
    487487
    488488    /** Inform the service that the client wants to disconnect. */
     
    514514    /** @} */
    515515} VBOXHGCMSVCFNTABLE;
    516 #pragma pack()
    517516
    518517
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