VirtualBox

Changeset 100566 in vbox for trunk/include


Ignore:
Timestamp:
Jul 13, 2023 6:50:43 PM (17 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Added ShClEventWaitEx() + ShClEventSignalEx() for easier error propagation when waiting for events, plus new error codes VERR_SHCLPB_EVENT_FAILED + VERR_SHCLPB_GUEST_ERROR. bugref:9437

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/SharedClipboard.h

    r100451 r100566  
    189189    /** Payload to this event, optional (NULL). */
    190190    PSHCLEVENTPAYLOAD   pPayload;
     191    /** Result code (IPRT-style) to assign. */
     192    int                 rc;
    191193} SHCLEVENT;
    192194/** Pointer to a shared clipboard event. */
     
    236238uint32_t ShClEventRetain(PSHCLEVENT pEvent);
    237239uint32_t ShClEventRelease(PSHCLEVENT pEvent);
     240int ShClEventSignalEx(PSHCLEVENT pEvent, int rc, PSHCLEVENTPAYLOAD pPayload);
    238241int ShClEventSignal(PSHCLEVENT pEvent, PSHCLEVENTPAYLOAD pPayload);
    239242int ShClEventWait(PSHCLEVENT pEvent, RTMSINTERVAL uTimeoutMs, PSHCLEVENTPAYLOAD *ppPayload);
     243int ShClEventWaitEx(PSHCLEVENT pEvent, RTMSINTERVAL uTimeoutMs, int *pRc, PSHCLEVENTPAYLOAD *ppPayload);
    240244/** @} */
    241245
  • trunk/include/VBox/err.h

    r100183 r100566  
    30733073/** Shared Clipboard transfer ID not found. */
    30743074#define VERR_SHCLPB_TRANSFER_ID_NOT_FOUND           (-7150)
     3075/** Shared Clipboard guest error. */
     3076#define VERR_SHCLPB_GUEST_ERROR                     (-7151)
     3077/** Shared Clipboard event failed error. */
     3078#define VERR_SHCLPB_EVENT_FAILED                    (-7152)
    30753079/** @} */
    30763080
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