VirtualBox

Changeset 82490 in vbox for trunk/include


Ignore:
Timestamp:
Dec 7, 2019 10:28:26 AM (5 years ago)
Author:
vboxsync
Message:

VBox/GuestHost/SharedClipboard-transfers.h: Just use DECLCALLBACKMEMBER for SHCLTRANSFERCALLBACKS. bugref:9437

File:
1 edited

Legend:

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

    r82480 r82490  
    817817} SHCLTRANSFERCALLBACKDATA, *PSHCLTRANSFERCALLBACKDATA;
    818818
    819 /** Declares a Shared Clipboard transfer callback. */
    820 #define SHCLTRANSFERCALLBACKDECL(a_Ret, a_Name) \
    821     typedef DECLCALLBACK(a_Ret) RT_CONCAT(FNSHCLCALLBACK, a_Name)(PSHCLTRANSFERCALLBACKDATA pData); \
    822     typedef RT_CONCAT(FNSHCLCALLBACK, a_Name) RT_CONCAT(*PFNSHCLCALLBACK, a_Name);
    823 
    824 /** Declares a Shared Clipboard transfer callback with variable arguments. */
    825 #define SHCLTRANSFERCALLBACKDECL_VA(a_Ret, a_Name, ...) \
    826     typedef DECLCALLBACK(a_Ret) RT_CONCAT(FNSHCLCALLBACK, a_Name)(PSHCLTRANSFERCALLBACKDATA pData, __VA_ARGS__); \
    827     typedef RT_CONCAT(FNSHCLCALLBACK, a_Name) RT_CONCAT(*PFNSHCLCALLBACK, a_Name);
    828 
    829 /** Declares a Shared Clipboard transfer callback member function. */
    830 #define SHCLTRANSFERCALLBACKMEMBER(a_Name, a_Member) \
    831     RT_CONCAT(PFNSHCLCALLBACK, a_Name) a_Member;
    832 
    833 SHCLTRANSFERCALLBACKDECL   (int,  TRANSFERINITIALIZE)
    834 SHCLTRANSFERCALLBACKDECL   (int,  TRANSFERSTART)
    835 SHCLTRANSFERCALLBACKDECL   (void, LISTHEADERCOMPLETE)
    836 SHCLTRANSFERCALLBACKDECL   (void, LISTENTRYCOMPLETE)
    837 SHCLTRANSFERCALLBACKDECL_VA(void, TRANSFERCOMPLETE, int rc)
    838 SHCLTRANSFERCALLBACKDECL   (void, TRANSFERCANCELED)
    839 SHCLTRANSFERCALLBACKDECL_VA(void, TRANSFERERROR, int rc)
    840 
    841 /**
    842  * Structure acting as a function callback table for Shared Clipboard transfers.
     819/**
     820 * Function callback table for Shared Clipboard transfers.
     821 *
    843822 * All callbacks are optional and therefore can be NULL.
    844823 */
    845 typedef struct _SHCLTRANSFERCALLBACKS
     824typedef struct SHCLTRANSFERCALLBACKS
    846825{
    847826    /** User pointer to data. Optional and can be NULL. */
     
    849828    /** Size (in bytes) of user data pointing at. Optional and can be 0. */
    850829    size_t cbUser;
    851     /** Function pointer, called after the transfer has been initialized. */
    852     SHCLTRANSFERCALLBACKMEMBER(TRANSFERINITIALIZE, pfnTransferInitialize)
    853     /** Function pointer, called before the transfer will be started. */
    854     SHCLTRANSFERCALLBACKMEMBER(TRANSFERSTART, pfnTransferStart)
    855     /** Function pointer, called when reading / writing the list header is complete. */
    856     SHCLTRANSFERCALLBACKMEMBER(LISTHEADERCOMPLETE, pfnListHeaderComplete)
    857     /** Function pointer, called when reading / writing a list entry is complete. */
    858     SHCLTRANSFERCALLBACKMEMBER(LISTENTRYCOMPLETE, pfnListEntryComplete)
    859     /** Function pointer, called when the transfer is complete. */
    860     SHCLTRANSFERCALLBACKMEMBER(TRANSFERCOMPLETE, pfnTransferComplete)
    861     /** Function pointer, called when the transfer has been canceled. */
    862     SHCLTRANSFERCALLBACKMEMBER(TRANSFERCANCELED, pfnTransferCanceled)
    863     /** Function pointer, called when transfer resulted in an unrecoverable error. */
    864     SHCLTRANSFERCALLBACKMEMBER(TRANSFERERROR, pfnTransferError)
     830    /** Called after the transfer has been initialized. */
     831    DECLCALLBACKMEMBER(int,  pfnTransferInitialize)(PSHCLTRANSFERCALLBACKDATA pData);
     832    /** Called before the transfer will be started. */
     833    DECLCALLBACKMEMBER(int,  pfnTransferStart)(PSHCLTRANSFERCALLBACKDATA pData);
     834    /** Called when reading / writing the list header is complete. */
     835    DECLCALLBACKMEMBER(void, pfnListHeaderComplete)(PSHCLTRANSFERCALLBACKDATA pData);
     836    /** Called when reading / writing a list entry is complete. */
     837    DECLCALLBACKMEMBER(void, pfnListEntryComplete)(PSHCLTRANSFERCALLBACKDATA pData);
     838    /** Called when the transfer is complete. */
     839    DECLCALLBACKMEMBER(void, pfnTransferComplete)(PSHCLTRANSFERCALLBACKDATA pData, int rc);
     840    /** Called when the transfer has been canceled. */
     841    DECLCALLBACKMEMBER(void, pfnTransferCanceled)(PSHCLTRANSFERCALLBACKDATA pData);
     842    /** Called when transfer resulted in an unrecoverable error. */
     843    DECLCALLBACKMEMBER(void, pfnTransferError)(PSHCLTRANSFERCALLBACKDATA pData, int rc);
    865844} SHCLTRANSFERCALLBACKS, *PSHCLTRANSFERCALLBACKS;
    866845
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