VirtualBox

Changeset 41892 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 22, 2012 6:00:06 PM (13 years ago)
Author:
vboxsync
Message:

SharedClipboard/service.cpp: Redefining APIs screws up for editors that uses tags. Please avoid it or put it in some header we can systematically ignore.

File:
1 edited

Legend:

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

    r37472 r41892  
    745745}
    746746
    747 #ifdef UNIT_TEST
    748 static int testSSMStubRC(void) { AssertFailedReturn(VERR_WRONG_ORDER); }
    749 static uint32_t testSSMStubU32(void) { AssertFailedReturn(0); }
    750 # define SSMR3PutU32(pSSM, u32) testSSMStubRC()
    751 # define SSMR3PutStructEx(pSSM, pvStruct, cbStruct, fFlags, paFields, pvUser) \
    752       testSSMStubRC()
    753 # define SSMR3GetU32(pSSM, pu32) ( *(pu32) = 0, testSSMStubRC() )
    754 # define SSMR3HandleHostBits(pSSM) testSSMStubU32()
    755 # define SSMR3GetStructEx(pSSM, pvStruct, cbStruct, fFlags, paFields, pvUser) \
    756       testSSMStubRC()
    757 #endif
    758 
    759747/**
    760748 * SSM descriptor table for the VBOXCLIPBOARDCLIENTDATA structure.
     
    772760static DECLCALLBACK(int) svcSaveState(void *, uint32_t u32ClientID, void *pvClient, PSSMHANDLE pSSM)
    773761{
     762#ifndef UNIT_TEST
    774763    /* If there are any pending requests, they must be completed here. Since
    775764     * the service is single threaded, there could be only requests
     
    801790    vboxSvcClipboardCompleteReadData (pClient, VINF_SUCCESS, 0);
    802791
     792#endif /* !UNIT_TEST */
    803793    return VINF_SUCCESS;
    804794}
     
    848838static DECLCALLBACK(int) svcLoadState(void *, uint32_t u32ClientID, void *pvClient, PSSMHANDLE pSSM)
    849839{
     840#ifndef UNIT_TEST
    850841    LogRel2 (("svcLoadState: u32ClientID = %d\n", u32ClientID));
    851842
     
    918909    vboxClipboardSync (pClient);
    919910
     911#endif /* !UNIT_TEST */
    920912    return VINF_SUCCESS;
    921913}
    922 
    923 #ifdef UNIT_TEST
    924 # undef SSMR3PutU32
    925 # undef SSMR3GetU32
    926 # undef SSMR3HandleHostBits
    927 # undef SSMR3GetStructEx
    928 #endif
    929914
    930915static DECLCALLBACK(int) extCallback (uint32_t u32Function, uint32_t u32Format, void *pvData, uint32_t cbData)
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