VirtualBox

Changeset 63470 in vbox


Ignore:
Timestamp:
Aug 15, 2016 12:07:31 PM (8 years ago)
Author:
vboxsync
Message:

HBDMgmt-darwin.cpp: DECLCALLBACK should not be used for OS X callback, only VBox/IPRT ones!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/HBDMgmt-darwin.cpp

    r62506 r63470  
    201201
    202202/**
    203  * Callback notifying us that the async DADiskClaim()/DADiskUnmount call has completed.
     203 * Implements the OS X callback DADiskClaimCallback.
     204 *
     205 * This notifies us that the async DADiskClaim()/DADiskUnmount call has
     206 * completed.
    204207 *
    205208 * @param   hDiskRef         The disk that was attempted claimed / unmounted.
     
    207210 * @param   pvContext        Pointer to the return code variable.
    208211 */
    209 static DECLCALLBACK(void) hbdMgrDACallbackComplete(DADiskRef hDiskRef, DADissenterRef hDissenterRef, void *pvContext)
    210 {
     212static void hbdMgrDACallbackComplete(DADiskRef hDiskRef, DADissenterRef hDissenterRef, void *pvContext)
     213{
     214    RT_NOREF(hDiskRef);
    211215    PHBDMGRDACLBKARGS pArgs = (PHBDMGRDACLBKARGS)pvContext;
    212216    pArgs->pszErrDetail = NULL;
     
    231235
    232236/**
    233  * Callback notifying us about any attempt to mount a volume. If we claimed the volume
    234  * or the complete disk containing the volume we will deny the attempt.
     237 * Implements the OS X callback DADiskMountApprovalCallback.
     238 *
     239 * This notifies us about any attempt to mount a volume.  If we claimed the
     240 * volume or the complete disk containing the volume we will deny the attempt.
    235241 *
    236242 * @returns Reference to a DADissenter object which contains the result.
     
    238244 * @param   pvCOntext        Pointer to the block device manager.
    239245 */
    240 static DECLCALLBACK(DADissenterRef) hbdMgrDAMountApprovalCallback(DADiskRef hDiskRef, void *pvContext)
     246static DADissenterRef hbdMgrDAMountApprovalCallback(DADiskRef hDiskRef, void *pvContext)
    241247{
    242248    PHBDMGRINT pThis = (PHBDMGRINT)pvContext;
     
    275281
    276282/**
     283 * Implements OS X callback CFRunLoopSourceContext::perform.
     284 *
    277285 * Dummy handler for the wakeup source to kick the worker thread.
    278286 *
     
    280288 * @param   pInfo            Opaque user data given during source creation, unused.
    281289 */
    282 static DECLCALLBACK(void) hbdMgrDAPerformWakeup(void *pInfo)
    283 {
    284     return;
     290static void hbdMgrDAPerformWakeup(void *pInfo)
     291{
     292    RT_NOREF(pInfo);
    285293}
    286294
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