VirtualBox

Ignore:
Timestamp:
Sep 9, 2019 8:43:14 AM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard: Renaming (SHAREDCLIPBOARD -> SHCL and VBOXCLIPBOARD -> SHCL).

Location:
trunk/src/VBox/GuestHost/SharedClipboard
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/ClipboardArea.cpp

    r79347 r80662  
    3838    , m_fOpen(0)
    3939    , m_hDir(NIL_RTDIR)
    40     , m_uID(NIL_SHAREDCLIPBOARDAREAID)
     40    , m_uID(NIL_SHCLAREAID)
    4141{
    4242    int rc = initInternal();
     
    4646
    4747SharedClipboardArea::SharedClipboardArea(const char *pszPath,
    48                                          SHAREDCLIPBOARDAREAID uID /* = NIL_SHAREDCLIPBOARDAREAID */,
    49                                          SHAREDCLIPBOARDAREAOPENFLAGS fFlags /* = SHAREDCLIPBOARDAREA_OPEN_FLAGS_NONE */)
     48                                         SHCLAREAID uID /* = NIL_SHCLAREAID */,
     49                                         SHCLAREAOPENFLAGS fFlags /* = SHCLAREA_OPEN_FLAGS_NONE */)
    5050    : m_tsCreatedMs(0)
    5151    , m_cRefs(0)
     
    115115}
    116116
    117 int SharedClipboardArea::AddObject(const char *pszPath, const SHAREDCLIPBOARDAREAOBJ &Obj)
     117int SharedClipboardArea::AddObject(const char *pszPath, const SHCLAREAOBJ &Obj)
    118118{
    119119    AssertPtrReturn(pszPath, VERR_INVALID_POINTER);
     
    126126}
    127127
    128 int SharedClipboardArea::GetObject(const char *pszPath, PSHAREDCLIPBOARDAREAOBJ pObj)
     128int SharedClipboardArea::GetObject(const char *pszPath, PSHCLAREAOBJ pObj)
    129129{
    130130    SharedClipboardAreaFsObjMap::const_iterator itObj = m_mapObj.find(pszPath);
     
    166166    if (RT_SUCCESS(rc))
    167167    {
    168         this->m_fOpen = SHAREDCLIPBOARDAREA_OPEN_FLAGS_NONE;
    169         this->m_uID   = NIL_SHAREDCLIPBOARDAREAID;
     168        this->m_fOpen = SHCLAREA_OPEN_FLAGS_NONE;
     169        this->m_uID   = NIL_SHCLAREAID;
    170170    }
    171171
     
    185185 */
    186186/* static */
    187 int SharedClipboardArea::PathConstruct(const char *pszBase, SHAREDCLIPBOARDAREAID uID, char *pszPath, size_t cbPath)
     187int SharedClipboardArea::PathConstruct(const char *pszBase, SHCLAREAID uID, char *pszPath, size_t cbPath)
    188188{
    189189    LogFlowFunc(("pszBase=%s, uAreaID=%RU32\n", pszBase, uID));
     
    224224}
    225225
    226 SHAREDCLIPBOARDAREAID SharedClipboardArea::GetID(void) const
     226SHCLAREAID SharedClipboardArea::GetID(void) const
    227227{
    228228    return this->m_uID;
     
    245245
    246246int SharedClipboardArea::OpenEx(const char *pszPath,
    247                                 SHAREDCLIPBOARDAREAID uID /* = NIL_SHAREDCLIPBOARDAREAID */,
    248                                 SHAREDCLIPBOARDAREAOPENFLAGS fFlags /* = SHAREDCLIPBOARDAREA_OPEN_FLAGS_NONE */)
     247                                SHCLAREAID uID /* = NIL_SHCLAREAID */,
     248                                SHCLAREAOPENFLAGS fFlags /* = SHCLAREA_OPEN_FLAGS_NONE */)
    249249{
    250250    AssertPtrReturn(pszPath, VERR_INVALID_POINTER);
    251     AssertReturn(!(fFlags & ~SHAREDCLIPBOARDAREA_OPEN_FLAGS_VALID_MASK), VERR_INVALID_FLAGS);
     251    AssertReturn(!(fFlags & ~SHCLAREA_OPEN_FLAGS_VALID_MASK), VERR_INVALID_FLAGS);
    252252
    253253    char szAreaDir[RTPATH_MAX];
     
    256256    {
    257257        if (   RTDirExists(szAreaDir)
    258             && (fFlags & SHAREDCLIPBOARDAREA_OPEN_FLAGS_MUST_NOT_EXIST))
     258            && (fFlags & SHCLAREA_OPEN_FLAGS_MUST_NOT_EXIST))
    259259        {
    260260            rc = VERR_ALREADY_EXISTS;
     
    282282}
    283283
    284 int SharedClipboardArea::OpenTemp(SHAREDCLIPBOARDAREAID uID,
    285                                   SHAREDCLIPBOARDAREAOPENFLAGS fFlags /* = SHAREDCLIPBOARDAREA_OPEN_FLAGS_NONE */)
    286 {
    287     AssertReturn(!(fFlags & ~SHAREDCLIPBOARDAREA_OPEN_FLAGS_VALID_MASK), VERR_INVALID_FLAGS);
     284int SharedClipboardArea::OpenTemp(SHCLAREAID uID,
     285                                  SHCLAREAOPENFLAGS fFlags /* = SHCLAREA_OPEN_FLAGS_NONE */)
     286{
     287    AssertReturn(!(fFlags & ~SHCLAREA_OPEN_FLAGS_VALID_MASK), VERR_INVALID_FLAGS);
    288288
    289289    /*
  • trunk/src/VBox/GuestHost/SharedClipboard/ClipboardDataObjectImpl-win.cpp

    r80359 r80662  
    4141//#define VBOX_CLIPBOARD_WITH_UNICODE_SUPPORT 0
    4242
    43 VBoxClipboardWinDataObject::VBoxClipboardWinDataObject(PSHAREDCLIPBOARDURITRANSFER pTransfer,
     43VBoxClipboardWinDataObject::VBoxClipboardWinDataObject(PSHCLURITRANSFER pTransfer,
    4444                                                       LPFORMATETC pFormatEtc, LPSTGMEDIUM pStgMed, ULONG cFormats)
    4545    : m_enmStatus(Uninitialized)
     
    229229 * @param   strDir              Directory path to handle.
    230230 */
    231 int VBoxClipboardWinDataObject::readDir(PSHAREDCLIPBOARDURITRANSFER pTransfer, const Utf8Str &strDir)
     231int VBoxClipboardWinDataObject::readDir(PSHCLURITRANSFER pTransfer, const Utf8Str &strDir)
    232232{
    233233    LogFlowFunc(("strDir=%s\n", strDir.c_str()));
    234234
    235     VBOXCLIPBOARDLISTOPENPARMS openParmsList;
     235    SHCLLISTOPENPARMS openParmsList;
    236236    int rc = SharedClipboardURIListOpenParmsInit(&openParmsList);
    237237    if (RT_SUCCESS(rc))
     
    240240        if (RT_SUCCESS(rc))
    241241        {
    242             SHAREDCLIPBOARDLISTHANDLE hList;
     242            SHCLLISTHANDLE hList;
    243243            rc = SharedClipboardURITransferListOpen(pTransfer, &openParmsList, &hList);
    244244            if (RT_SUCCESS(rc))
     
    246246                LogFlowFunc(("strDir=%s -> hList=%RU64\n", strDir.c_str(), hList));
    247247
    248                 VBOXCLIPBOARDLISTHDR hdrList;
     248                SHCLLISTHDR hdrList;
    249249                rc = SharedClipboardURITransferListGetHeader(pTransfer, hList, &hdrList);
    250250                if (RT_SUCCESS(rc))
     
    255255                    for (uint64_t o = 0; o < hdrList.cTotalObjects; o++)
    256256                    {
    257                         VBOXCLIPBOARDLISTENTRY entryList;
     257                        SHCLLISTENTRY entryList;
    258258                        rc = SharedClipboardURITransferListRead(pTransfer, hList, &entryList);
    259259                        if (RT_SUCCESS(rc))
    260260                        {
    261                             PSHAREDCLIPBOARDFSOBJINFO pFsObjInfo = (PSHAREDCLIPBOARDFSOBJINFO)entryList.pvInfo;
    262                             Assert(entryList.cbInfo == sizeof(SHAREDCLIPBOARDFSOBJINFO));
     261                            PSHCLFSOBJINFO pFsObjInfo = (PSHCLFSOBJINFO)entryList.pvInfo;
     262                            Assert(entryList.cbInfo == sizeof(SHCLFSOBJINFO));
    263263
    264264                            Utf8Str strPath = strDir + Utf8Str("\\") + Utf8Str(entryList.pszName);
     
    320320    VBoxClipboardWinDataObject *pThis = (VBoxClipboardWinDataObject *)pvUser;
    321321
    322     PSHAREDCLIPBOARDURITRANSFER pTransfer = pThis->m_pTransfer;
     322    PSHCLURITRANSFER pTransfer = pThis->m_pTransfer;
    323323    AssertPtr(pTransfer);
    324324
     
    333333    if (RT_SUCCESS(rc))
    334334    {
    335         PVBOXCLIPBOARDROOTLIST pRootList;
     335        PSHCLROOTLIST pRootList;
    336336        rc = SharedClipboardURILTransferRootsAsList(pTransfer, &pRootList);
    337337        if (RT_SUCCESS(rc))
     
    341341            for (uint32_t i = 0; i < pRootList->Hdr.cRoots; i++)
    342342            {
    343                 PVBOXCLIPBOARDLISTENTRY pRootEntry = &pRootList->paEntries[i];
     343                PSHCLLISTENTRY pRootEntry = &pRootList->paEntries[i];
    344344                AssertPtr(pRootEntry);
    345345
    346                 Assert(pRootEntry->cbInfo == sizeof(SHAREDCLIPBOARDFSOBJINFO));
    347                 PSHAREDCLIPBOARDFSOBJINFO pFsObjInfo = (PSHAREDCLIPBOARDFSOBJINFO)pRootEntry->pvInfo;
     346                Assert(pRootEntry->cbInfo == sizeof(SHCLFSOBJINFO));
     347                PSHCLFSOBJINFO pFsObjInfo = (PSHCLFSOBJINFO)pRootEntry->pvInfo;
    348348
    349349                LogFlowFunc(("pszRoot=%s, fMode=0x%x\n", pRootEntry->pszName, pFsObjInfo->Attr.fMode));
     
    405405 * @param   phGlobal            Where to store the allocated HGLOBAL object on success.
    406406 */
    407 int VBoxClipboardWinDataObject::createFileGroupDescriptorFromTransfer(PSHAREDCLIPBOARDURITRANSFER pTransfer,
     407int VBoxClipboardWinDataObject::createFileGroupDescriptorFromTransfer(PSHCLURITRANSFER pTransfer,
    408408                                                                      bool fUnicode, HGLOBAL *phGlobal)
    409409{
     
    478478        pFD->dwFileAttributes = FILE_ATTRIBUTE_NORMAL;
    479479
    480         const SHAREDCLIPBOARDFSOBJINFO *pObjInfo = &itRoot->objInfo;
     480        const SHCLFSOBJINFO *pObjInfo = &itRoot->objInfo;
    481481
    482482        if (RTFS_IS_DIRECTORY(pObjInfo->Attr.fMode))
     
    558558
    559559        /* The caller can call GetData() several times, so make sure we don't do the same transfer multiple times. */
    560         if (SharedClipboardURITransferGetStatus(m_pTransfer) == SHAREDCLIPBOARDURITRANSFERSTATUS_NONE)
     560        if (SharedClipboardURITransferGetStatus(m_pTransfer) == SHCLURITRANSFERSTATUS_NONE)
    561561        {
    562562            rc = SharedClipboardURITransferPrepare(m_pTransfer);
     
    615615            /* Hand-in the provider so that our IStream implementation can continue working with it. */
    616616            hr = VBoxClipboardWinStreamImpl::Create(this /* pParent */, m_pTransfer,
    617                                                     fsObjEntry.strPath.c_str()/* File name */, &fsObjEntry.objInfo /* PSHAREDCLIPBOARDFSOBJINFO */,
     617                                                    fsObjEntry.strPath.c_str()/* File name */, &fsObjEntry.objInfo /* PSHCLFSOBJINFO */,
    618618                                                    &m_pStream);
    619619            if (SUCCEEDED(hr))
  • trunk/src/VBox/GuestHost/SharedClipboard/ClipboardStreamImpl-win.cpp

    r80359 r80662  
    4646
    4747
    48 VBoxClipboardWinStreamImpl::VBoxClipboardWinStreamImpl(VBoxClipboardWinDataObject *pParent, PSHAREDCLIPBOARDURITRANSFER pTransfer,
    49                                                        const Utf8Str &strPath, PSHAREDCLIPBOARDFSOBJINFO pObjInfo)
     48VBoxClipboardWinStreamImpl::VBoxClipboardWinStreamImpl(VBoxClipboardWinDataObject *pParent, PSHCLURITRANSFER pTransfer,
     49                                                       const Utf8Str &strPath, PSHCLFSOBJINFO pObjInfo)
    5050    : m_pParent(pParent)
    5151    , m_lRefCount(1) /* Our IDataObjct *always* holds the last reference to this object; needed for the callbacks. */
    5252    , m_pURITransfer(pTransfer)
    5353    , m_strPath(strPath)
    54     , m_hObj(SHAREDCLIPBOARDOBJHANDLE_INVALID)
     54    , m_hObj(SHCLOBJHANDLE_INVALID)
    5555    , m_objInfo(*pObjInfo)
    5656    , m_cbProcessed(0)
     
    184184    try
    185185    {
    186         if (   m_hObj == SHAREDCLIPBOARDOBJHANDLE_INVALID
     186        if (   m_hObj == SHCLOBJHANDLE_INVALID
    187187            && m_pURITransfer->ProviderIface.pfnObjOpen)
    188188        {
    189             VBOXCLIPBOARDOBJOPENCREATEPARMS openParms;
     189            SHCLOBJOPENCREATEPARMS openParms;
    190190            rc = SharedClipboardURIObjectOpenParmsInit(&openParms);
    191191            if (RT_SUCCESS(rc))
    192192            {
    193                 openParms.fCreate = SHAREDCLIPBOARD_OBJ_CF_ACT_OPEN_IF_EXISTS
    194                                   | SHAREDCLIPBOARD_OBJ_CF_ACT_FAIL_IF_NEW
    195                                   | SHAREDCLIPBOARD_OBJ_CF_ACCESS_READ
    196                                   | SHAREDCLIPBOARD_OBJ_CF_ACCESS_DENYWRITE;
     193                openParms.fCreate = SHCL_OBJ_CF_ACT_OPEN_IF_EXISTS
     194                                  | SHCL_OBJ_CF_ACT_FAIL_IF_NEW
     195                                  | SHCL_OBJ_CF_ACCESS_READ
     196                                  | SHCL_OBJ_CF_ACCESS_DENYWRITE;
    197197
    198198                rc = RTStrCopy(openParms.pszPath, openParms.cbPath, m_strPath.c_str());
     
    362362 */
    363363/* static */
    364 HRESULT VBoxClipboardWinStreamImpl::Create(VBoxClipboardWinDataObject *pParent, PSHAREDCLIPBOARDURITRANSFER pTransfer,
    365                                            const Utf8Str &strPath, PSHAREDCLIPBOARDFSOBJINFO pObjInfo,
     364HRESULT VBoxClipboardWinStreamImpl::Create(VBoxClipboardWinDataObject *pParent, PSHCLURITRANSFER pTransfer,
     365                                           const Utf8Str &strPath, PSHCLFSOBJINFO pObjInfo,
    366366                                           IStream **ppStream)
    367367{
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp

    r80623 r80662  
    4242 */
    4343int SharedClipboardPayloadAlloc(uint32_t uID, const void *pvData, uint32_t cbData,
    44                                 PSHAREDCLIPBOARDEVENTPAYLOAD *ppPayload)
     44                                PSHCLEVENTPAYLOAD *ppPayload)
    4545{
    4646    AssertPtrReturn(pvData, VERR_INVALID_POINTER);
    4747    AssertReturn   (cbData, VERR_INVALID_PARAMETER);
    4848
    49     PSHAREDCLIPBOARDEVENTPAYLOAD pPayload =
    50         (PSHAREDCLIPBOARDEVENTPAYLOAD)RTMemAlloc(sizeof(SHAREDCLIPBOARDEVENTPAYLOAD));
     49    PSHCLEVENTPAYLOAD pPayload =
     50        (PSHCLEVENTPAYLOAD)RTMemAlloc(sizeof(SHCLEVENTPAYLOAD));
    5151    if (!pPayload)
    5252        return VERR_NO_MEMORY;
     
    7575 * @param   pPayload            Event payload to free.
    7676 */
    77 void SharedClipboardPayloadFree(PSHAREDCLIPBOARDEVENTPAYLOAD pPayload)
     77void SharedClipboardPayloadFree(PSHCLEVENTPAYLOAD pPayload)
    7878{
    7979    if (!pPayload)
     
    100100 * @param   uID                 Event ID to use.
    101101 */
    102 int SharedClipboardEventCreate(PSHAREDCLIPBOARDEVENT pEvent, VBOXCLIPBOARDEVENTID uID)
     102int SharedClipboardEventCreate(PSHCLEVENT pEvent, SHCLEVENTID uID)
    103103{
    104104    AssertPtrReturn(pEvent, VERR_INVALID_POINTER);
     
    121121 * @param   pEvent              Event to destroy.
    122122 */
    123 void SharedClipboardEventDestroy(PSHAREDCLIPBOARDEVENT pEvent)
     123void SharedClipboardEventDestroy(PSHCLEVENT pEvent)
    124124{
    125125    if (!pEvent)
     
    146146 * @param   uID                 ID to use for event source.
    147147 */
    148 int SharedClipboardEventSourceCreate(PSHAREDCLIPBOARDEVENTSOURCE pSource, VBOXCLIPBOARDEVENTSOURCEID uID)
     148int SharedClipboardEventSourceCreate(PSHCLEVENTSOURCE pSource, SHCLEVENTSOURCEID uID)
    149149{
    150150    AssertPtrReturn(pSource, VERR_INVALID_POINTER);
     
    169169 * @param   pSource             Event source to destroy.
    170170 */
    171 void SharedClipboardEventSourceDestroy(PSHAREDCLIPBOARDEVENTSOURCE pSource)
     171void SharedClipboardEventSourceDestroy(PSHCLEVENTSOURCE pSource)
    172172{
    173173    if (!pSource)
     
    176176    LogFlowFunc(("ID=%RU16\n", pSource->uID));
    177177
    178     PSHAREDCLIPBOARDEVENT pEvIt;
    179     PSHAREDCLIPBOARDEVENT pEvItNext;
    180     RTListForEachSafe(&pSource->lstEvents, pEvIt, pEvItNext, SHAREDCLIPBOARDEVENT, Node)
     178    PSHCLEVENT pEvIt;
     179    PSHCLEVENT pEvItNext;
     180    RTListForEachSafe(&pSource->lstEvents, pEvIt, pEvItNext, SHCLEVENT, Node)
    181181    {
    182182        SharedClipboardEventDestroy(pEvIt);
     
    194194 * @param   pSource             Event source to generate event for.
    195195 */
    196 VBOXCLIPBOARDEVENTID SharedClipboardEventIDGenerate(PSHAREDCLIPBOARDEVENTSOURCE pSource)
     196SHCLEVENTID SharedClipboardEventIDGenerate(PSHCLEVENTSOURCE pSource)
    197197{
    198198    AssertPtrReturn(pSource, 0);
     
    209209 * @param   uID                 Event ID to get.
    210210 */
    211 inline PSHAREDCLIPBOARDEVENT sharedClipboardEventGet(PSHAREDCLIPBOARDEVENTSOURCE pSource, VBOXCLIPBOARDEVENTID uID)
    212 {
    213     PSHAREDCLIPBOARDEVENT pEvIt;
    214     RTListForEach(&pSource->lstEvents, pEvIt, SHAREDCLIPBOARDEVENT, Node)
     211inline PSHCLEVENT sharedClipboardEventGet(PSHCLEVENTSOURCE pSource, SHCLEVENTID uID)
     212{
     213    PSHCLEVENT pEvIt;
     214    RTListForEach(&pSource->lstEvents, pEvIt, SHCLEVENT, Node)
    215215    {
    216216        if (pEvIt->uID == uID)
     
    227227 * @param   pSource             Event source to get last registered event from.
    228228 */
    229 VBOXCLIPBOARDEVENTID SharedClipboardEventGetLast(PSHAREDCLIPBOARDEVENTSOURCE pSource)
     229SHCLEVENTID SharedClipboardEventGetLast(PSHCLEVENTSOURCE pSource)
    230230{
    231231    AssertPtrReturn(pSource, 0);
    232     PSHAREDCLIPBOARDEVENT pEvent = RTListGetLast(&pSource->lstEvents, SHAREDCLIPBOARDEVENT, Node);
     232    PSHCLEVENT pEvent = RTListGetLast(&pSource->lstEvents, SHCLEVENT, Node);
    233233    if (pEvent)
    234234        return pEvent->uID;
     
    244244 * @param   uID                 Event ID to register.
    245245 */
    246 int SharedClipboardEventRegister(PSHAREDCLIPBOARDEVENTSOURCE pSource, VBOXCLIPBOARDEVENTID uID)
     246int SharedClipboardEventRegister(PSHCLEVENTSOURCE pSource, SHCLEVENTID uID)
    247247{
    248248    AssertPtrReturn(pSource, VERR_INVALID_POINTER);
     
    254254    if (sharedClipboardEventGet(pSource, uID) == NULL)
    255255    {
    256         PSHAREDCLIPBOARDEVENT pEvent
    257             = (PSHAREDCLIPBOARDEVENT)RTMemAllocZ(sizeof(SHAREDCLIPBOARDEVENT));
     256        PSHCLEVENT pEvent
     257            = (PSHCLEVENT)RTMemAllocZ(sizeof(SHCLEVENT));
    258258        if (pEvent)
    259259        {
     
    287287 * @param   uID                 Event ID to unregister.
    288288 */
    289 int SharedClipboardEventUnregister(PSHAREDCLIPBOARDEVENTSOURCE pSource, VBOXCLIPBOARDEVENTID uID)
     289int SharedClipboardEventUnregister(PSHCLEVENTSOURCE pSource, SHCLEVENTID uID)
    290290{
    291291    AssertPtrReturn(pSource, VERR_INVALID_POINTER);
     
    295295    LogFlowFunc(("uSource=%RU16, uEvent=%RU16\n", pSource->uID, uID));
    296296
    297     PSHAREDCLIPBOARDEVENT pEvent = sharedClipboardEventGet(pSource, uID);
     297    PSHCLEVENT pEvent = sharedClipboardEventGet(pSource, uID);
    298298    if (pEvent)
    299299    {
     
    326326 *                              SharedClipboardPayloadFree().
    327327 */
    328 int SharedClipboardEventWait(PSHAREDCLIPBOARDEVENTSOURCE pSource, VBOXCLIPBOARDEVENTID uID, RTMSINTERVAL uTimeoutMs,
    329                              PSHAREDCLIPBOARDEVENTPAYLOAD* ppPayload)
     328int SharedClipboardEventWait(PSHCLEVENTSOURCE pSource, SHCLEVENTID uID, RTMSINTERVAL uTimeoutMs,
     329                             PSHCLEVENTPAYLOAD* ppPayload)
    330330{
    331331    AssertPtrReturn(pSource, VERR_INVALID_POINTER);
     
    335335    int rc;
    336336
    337     PSHAREDCLIPBOARDEVENT pEvent = sharedClipboardEventGet(pSource, uID);
     337    PSHCLEVENT pEvent = sharedClipboardEventGet(pSource, uID);
    338338    if (pEvent)
    339339    {
     
    361361 * @param   pPayload            Event payload to associate. Takes ownership. Optional.
    362362 */
    363 int SharedClipboardEventSignal(PSHAREDCLIPBOARDEVENTSOURCE pSource, VBOXCLIPBOARDEVENTID uID,
    364                                PSHAREDCLIPBOARDEVENTPAYLOAD pPayload)
     363int SharedClipboardEventSignal(PSHCLEVENTSOURCE pSource, SHCLEVENTID uID,
     364                               PSHCLEVENTPAYLOAD pPayload)
    365365{
    366366    AssertPtrReturn(pSource, VERR_INVALID_POINTER);
     
    370370    LogFlowFunc(("uSource=%RU16, uEvent=%RU16\n", pSource->uID, uID));
    371371
    372     PSHAREDCLIPBOARDEVENT pEvent = sharedClipboardEventGet(pSource, uID);
     372    PSHCLEVENT pEvent = sharedClipboardEventGet(pSource, uID);
    373373    if (pEvent)
    374374    {
     
    393393 * @param   uID                 Event ID to detach payload for.
    394394 */
    395 void SharedClipboardEventPayloadDetach(PSHAREDCLIPBOARDEVENTSOURCE pSource, VBOXCLIPBOARDEVENTID uID)
     395void SharedClipboardEventPayloadDetach(PSHCLEVENTSOURCE pSource, SHCLEVENTID uID)
    396396{
    397397    AssertPtrReturnVoid(pSource);
     
    399399    LogFlowFunc(("uSource=%RU16, uEvent=%RU16\n", pSource->uID, uID));
    400400
    401     PSHAREDCLIPBOARDEVENT pEvent = sharedClipboardEventGet(pSource, uID);
     401    PSHCLEVENT pEvent = sharedClipboardEventGet(pSource, uID);
    402402    if (pEvent)
    403403    {
     
    751751}
    752752
    753 void VBoxClipboardDbgDumpData(const void *pv, size_t cb, VBOXCLIPBOARDFORMAT u32Format)
     753void VBoxClipboardDbgDumpData(const void *pv, size_t cb, SHCLFORMAT u32Format)
    754754{
    755755    if (u32Format & VBOX_SHARED_CLIPBOARD_FMT_UNICODETEXT)
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-uri.cpp

    r80444 r80662  
    3030
    3131
    32 static int sharedClipboardURITransferThreadCreate(PSHAREDCLIPBOARDURITRANSFER pTransfer, PFNRTTHREAD pfnThreadFunc, void *pvUser);
    33 static int sharedClipboardURITransferThreadDestroy(PSHAREDCLIPBOARDURITRANSFER pTransfer, RTMSINTERVAL uTimeoutMs);
    34 static PSHAREDCLIPBOARDURITRANSFER sharedClipboardURICtxGetTransferInternal(PSHAREDCLIPBOARDURICTX pURI, uint32_t uIdx);
     32static int sharedClipboardURITransferThreadCreate(PSHCLURITRANSFER pTransfer, PFNRTTHREAD pfnThreadFunc, void *pvUser);
     33static int sharedClipboardURITransferThreadDestroy(PSHCLURITRANSFER pTransfer, RTMSINTERVAL uTimeoutMs);
     34static PSHCLURITRANSFER sharedClipboardURICtxGetTransferInternal(PSHCLURICTX pURI, uint32_t uIdx);
    3535static int sharedClipboardConvertFileCreateFlags(bool fWritable, unsigned fShClFlags, RTFMODE fMode,
    36                                                  SHAREDCLIPBOARDOBJHANDLE handleInitial, uint64_t *pfOpen);
     36                                                 SHCLOBJHANDLE handleInitial, uint64_t *pfOpen);
    3737
    3838/** @todo Split this file up in different modules. */
     
    4343 * @returns Allocated URI root list on success, or NULL on failure.
    4444 */
    45 PVBOXCLIPBOARDROOTLIST SharedClipboardURIRootListAlloc(void)
    46 {
    47     PVBOXCLIPBOARDROOTLIST pRootList = (PVBOXCLIPBOARDROOTLIST)RTMemAllocZ(sizeof(VBOXCLIPBOARDROOTLIST));
     45PSHCLROOTLIST SharedClipboardURIRootListAlloc(void)
     46{
     47    PSHCLROOTLIST pRootList = (PSHCLROOTLIST)RTMemAllocZ(sizeof(SHCLROOTLIST));
    4848
    4949    return pRootList;
     
    5656 *                              invalid after returning from this function.
    5757 */
    58 void SharedClipboardURIRootListFree(PVBOXCLIPBOARDROOTLIST pRootList)
     58void SharedClipboardURIRootListFree(PSHCLROOTLIST pRootList)
    5959{
    6060    if (!pRootList)
     
    7474 * @param   pRootLstHdr         Root list header to initialize.
    7575 */
    76 int SharedClipboardURIRootListHdrInit(PVBOXCLIPBOARDROOTLISTHDR pRootLstHdr)
     76int SharedClipboardURIRootListHdrInit(PSHCLROOTLISTHDR pRootLstHdr)
    7777{
    7878    AssertPtrReturn(pRootLstHdr, VERR_INVALID_POINTER);
    7979
    80     RT_BZERO(pRootLstHdr, sizeof(VBOXCLIPBOARDROOTLISTHDR));
     80    RT_BZERO(pRootLstHdr, sizeof(SHCLROOTLISTHDR));
    8181
    8282    return VINF_SUCCESS;
     
    8888 * @param   pRootLstHdr         Root list header to destroy.
    8989 */
    90 void SharedClipboardURIRootListHdrDestroy(PVBOXCLIPBOARDROOTLISTHDR pRootLstHdr)
     90void SharedClipboardURIRootListHdrDestroy(PSHCLROOTLISTHDR pRootLstHdr)
    9191{
    9292    if (!pRootLstHdr)
     
    103103 * @param   pRootLstHdr         Root list header to duplicate.
    104104 */
    105 PVBOXCLIPBOARDROOTLISTHDR SharedClipboardURIRootListHdrDup(PVBOXCLIPBOARDROOTLISTHDR pRootLstHdr)
     105PSHCLROOTLISTHDR SharedClipboardURIRootListHdrDup(PSHCLROOTLISTHDR pRootLstHdr)
    106106{
    107107    AssertPtrReturn(pRootLstHdr, NULL);
     
    109109    int rc = VINF_SUCCESS;
    110110
    111     PVBOXCLIPBOARDROOTLISTHDR pRootsDup = (PVBOXCLIPBOARDROOTLISTHDR)RTMemAllocZ(sizeof(VBOXCLIPBOARDROOTLISTHDR));
     111    PSHCLROOTLISTHDR pRootsDup = (PSHCLROOTLISTHDR)RTMemAllocZ(sizeof(SHCLROOTLISTHDR));
    112112    if (pRootsDup)
    113113    {
     
    132132 * @param   pListEntry          Clipboard root list entry to copy.
    133133 */
    134 int SharedClipboardURIRootListEntryCopy(PVBOXCLIPBOARDROOTLISTENTRY pDst, PVBOXCLIPBOARDROOTLISTENTRY pSrc)
     134int SharedClipboardURIRootListEntryCopy(PSHCLROOTLISTENTRY pDst, PSHCLROOTLISTENTRY pSrc)
    135135{
    136136    return SharedClipboardURIListEntryCopy(pDst, pSrc);
     
    143143 * @param   pListEntry          Clipboard root list entry to duplicate.
    144144 */
    145 PVBOXCLIPBOARDROOTLISTENTRY SharedClipboardURIRootListEntryDup(PVBOXCLIPBOARDROOTLISTENTRY pRootListEntry)
     145PSHCLROOTLISTENTRY SharedClipboardURIRootListEntryDup(PSHCLROOTLISTENTRY pRootListEntry)
    146146{
    147147    return SharedClipboardURIListEntryDup(pRootListEntry);
     
    153153 * @param   pListEntry          Clipboard root list entry structure to destroy.
    154154 */
    155 void SharedClipboardURIRootListEntryDestroy(PVBOXCLIPBOARDROOTLISTENTRY pRootListEntry)
     155void SharedClipboardURIRootListEntryDestroy(PSHCLROOTLISTENTRY pRootListEntry)
    156156{
    157157    return SharedClipboardURIListEntryDestroy(pRootListEntry);
     
    163163 * @param   pInfo               List handle info structure to destroy.
    164164 */
    165 void SharedClipboardURIListHandleInfoDestroy(PSHAREDCLIPBOARDURILISTHANDLEINFO pInfo)
     165void SharedClipboardURIListHandleInfoDestroy(PSHCLURILISTHANDLEINFO pInfo)
    166166{
    167167    if (!pInfo)
     
    181181 * @param   ppListHdr           Where to store the allocated URI list header structure on success.
    182182 */
    183 int SharedClipboardURIListHdrAlloc(PVBOXCLIPBOARDLISTHDR *ppListHdr)
     183int SharedClipboardURIListHdrAlloc(PSHCLLISTHDR *ppListHdr)
    184184{
    185185    int rc;
    186186
    187     PVBOXCLIPBOARDLISTHDR pListHdr = (PVBOXCLIPBOARDLISTHDR)RTMemAllocZ(sizeof(VBOXCLIPBOARDLISTHDR));
     187    PSHCLLISTHDR pListHdr = (PSHCLLISTHDR)RTMemAllocZ(sizeof(SHCLLISTHDR));
    188188    if (pListHdr)
    189189    {
     
    203203 * @param   pListEntry          URI list header structure to free.
    204204 */
    205 void SharedClipboardURIListHdrFree(PVBOXCLIPBOARDLISTHDR pListHdr)
     205void SharedClipboardURIListHdrFree(PSHCLLISTHDR pListHdr)
    206206{
    207207    if (!pListHdr)
     
    222222 * @param   pListHdr            URI list header to duplicate.
    223223 */
    224 PVBOXCLIPBOARDLISTHDR SharedClipboardURIListHdrDup(PVBOXCLIPBOARDLISTHDR pListHdr)
     224PSHCLLISTHDR SharedClipboardURIListHdrDup(PSHCLLISTHDR pListHdr)
    225225{
    226226    AssertPtrReturn(pListHdr, NULL);
    227227
    228     PVBOXCLIPBOARDLISTHDR pListHdrDup = (PVBOXCLIPBOARDLISTHDR)RTMemAlloc(sizeof(VBOXCLIPBOARDLISTHDR));
     228    PSHCLLISTHDR pListHdrDup = (PSHCLLISTHDR)RTMemAlloc(sizeof(SHCLLISTHDR));
    229229    if (pListHdrDup)
    230230    {
     
    241241 * @param   pListHdr            Data header struct to initialize.
    242242 */
    243 int SharedClipboardURIListHdrInit(PVBOXCLIPBOARDLISTHDR pListHdr)
     243int SharedClipboardURIListHdrInit(PSHCLLISTHDR pListHdr)
    244244{
    245245    AssertPtrReturn(pListHdr, VERR_INVALID_POINTER);
     
    257257 * @param   pListHdr            Data header struct to destroy.
    258258 */
    259 void SharedClipboardURIListHdrDestroy(PVBOXCLIPBOARDLISTHDR pListHdr)
     259void SharedClipboardURIListHdrDestroy(PSHCLLISTHDR pListHdr)
    260260{
    261261    if (!pListHdr)
     
    266266
    267267/**
    268  * Resets a VBOXCLIPBOARDListHdr structture.
    269  *
    270  * @returns VBox status code.
    271  * @param   pListHdr            VBOXCLIPBOARDListHdr structture to reset.
    272  */
    273 void SharedClipboardURIListHdrReset(PVBOXCLIPBOARDLISTHDR pListHdr)
     268 * Resets a SHCLListHdr structture.
     269 *
     270 * @returns VBox status code.
     271 * @param   pListHdr            SHCLListHdr structture to reset.
     272 */
     273void SharedClipboardURIListHdrReset(PSHCLLISTHDR pListHdr)
    274274{
    275275    AssertPtrReturnVoid(pListHdr);
     
    277277    LogFlowFuncEnter();
    278278
    279     RT_BZERO(pListHdr, sizeof(VBOXCLIPBOARDLISTHDR));
     279    RT_BZERO(pListHdr, sizeof(SHCLLISTHDR));
    280280}
    281281
     
    286286 * @param   pListHdr            Clipboard data header to validate.
    287287 */
    288 bool SharedClipboardURIListHdrIsValid(PVBOXCLIPBOARDLISTHDR pListHdr)
     288bool SharedClipboardURIListHdrIsValid(PSHCLLISTHDR pListHdr)
    289289{
    290290    RT_NOREF(pListHdr);
     
    292292}
    293293
    294 int SharedClipboardURIListOpenParmsCopy(PVBOXCLIPBOARDLISTOPENPARMS pDst, PVBOXCLIPBOARDLISTOPENPARMS pSrc)
     294int SharedClipboardURIListOpenParmsCopy(PSHCLLISTOPENPARMS pDst, PSHCLLISTOPENPARMS pSrc)
    295295{
    296296    AssertPtrReturn(pDst, VERR_INVALID_POINTER);
     
    330330 * @param   pParms              URI list open parameters structure to duplicate.
    331331 */
    332 PVBOXCLIPBOARDLISTOPENPARMS SharedClipboardURIListOpenParmsDup(PVBOXCLIPBOARDLISTOPENPARMS pParms)
     332PSHCLLISTOPENPARMS SharedClipboardURIListOpenParmsDup(PSHCLLISTOPENPARMS pParms)
    333333{
    334334    AssertPtrReturn(pParms, NULL);
    335335
    336     PVBOXCLIPBOARDLISTOPENPARMS pParmsDup = (PVBOXCLIPBOARDLISTOPENPARMS)RTMemAllocZ(sizeof(VBOXCLIPBOARDLISTOPENPARMS));
     336    PSHCLLISTOPENPARMS pParmsDup = (PSHCLLISTOPENPARMS)RTMemAllocZ(sizeof(SHCLLISTOPENPARMS));
    337337    if (!pParmsDup)
    338338        return NULL;
     
    356356 * @param   pParms              URI list open parameters structure to initialize.
    357357 */
    358 int SharedClipboardURIListOpenParmsInit(PVBOXCLIPBOARDLISTOPENPARMS pParms)
     358int SharedClipboardURIListOpenParmsInit(PSHCLLISTOPENPARMS pParms)
    359359{
    360360    AssertPtrReturn(pParms, VERR_INVALID_POINTER);
    361361
    362     RT_BZERO(pParms, sizeof(VBOXCLIPBOARDLISTOPENPARMS));
     362    RT_BZERO(pParms, sizeof(SHCLLISTOPENPARMS));
    363363
    364364    pParms->cbFilter  = 64; /** @todo Make this dynamic. */
     
    377377 * @param   pParms              URI list open parameters structure to destroy.
    378378 */
    379 void SharedClipboardURIListOpenParmsDestroy(PVBOXCLIPBOARDLISTOPENPARMS pParms)
     379void SharedClipboardURIListOpenParmsDestroy(PSHCLLISTOPENPARMS pParms)
    380380{
    381381    if (!pParms)
     
    400400 * @param   ppDirData           Where to return the created clipboard list entry structure on success.
    401401 */
    402 int SharedClipboardURIListEntryAlloc(PVBOXCLIPBOARDLISTENTRY *ppListEntry)
    403 {
    404     PVBOXCLIPBOARDLISTENTRY pListEntry = (PVBOXCLIPBOARDLISTENTRY)RTMemAlloc(sizeof(VBOXCLIPBOARDLISTENTRY));
     402int SharedClipboardURIListEntryAlloc(PSHCLLISTENTRY *ppListEntry)
     403{
     404    PSHCLLISTENTRY pListEntry = (PSHCLLISTENTRY)RTMemAlloc(sizeof(SHCLLISTENTRY));
    405405    if (!pListEntry)
    406406        return VERR_NO_MEMORY;
     
    418418 * @param   pListEntry         Clipboard list entry structure to free.
    419419 */
    420 void SharedClipboardURIListEntryFree(PVBOXCLIPBOARDLISTENTRY pListEntry)
     420void SharedClipboardURIListEntryFree(PSHCLLISTENTRY pListEntry)
    421421{
    422422    if (!pListEntry)
     
    433433 * @param   pListEntry          Clipboard list entry to copy.
    434434 */
    435 int SharedClipboardURIListEntryCopy(PVBOXCLIPBOARDLISTENTRY pDst, PVBOXCLIPBOARDLISTENTRY pSrc)
     435int SharedClipboardURIListEntryCopy(PSHCLLISTENTRY pDst, PSHCLLISTENTRY pSrc)
    436436{
    437437    AssertPtrReturn(pDst, VERR_INVALID_POINTER);
     
    480480 * @param   pListEntry          Clipboard list entry to duplicate.
    481481 */
    482 PVBOXCLIPBOARDLISTENTRY SharedClipboardURIListEntryDup(PVBOXCLIPBOARDLISTENTRY pListEntry)
     482PSHCLLISTENTRY SharedClipboardURIListEntryDup(PSHCLLISTENTRY pListEntry)
    483483{
    484484    AssertPtrReturn(pListEntry, NULL);
     
    486486    int rc = VINF_SUCCESS;
    487487
    488     PVBOXCLIPBOARDLISTENTRY pListEntryDup = (PVBOXCLIPBOARDLISTENTRY)RTMemAllocZ(sizeof(VBOXCLIPBOARDLISTENTRY));
     488    PSHCLLISTENTRY pListEntryDup = (PSHCLLISTENTRY)RTMemAllocZ(sizeof(SHCLLISTENTRY));
    489489    if (pListEntryDup)
    490490        rc = SharedClipboardURIListEntryCopy(pListEntryDup, pListEntry);
     
    507507 * @param   pListEntry          Clipboard list entry structure to initialize.
    508508 */
    509 int SharedClipboardURIListEntryInit(PVBOXCLIPBOARDLISTENTRY pListEntry)
    510 {
    511     RT_BZERO(pListEntry, sizeof(VBOXCLIPBOARDLISTENTRY));
    512 
    513     pListEntry->pszName = RTStrAlloc(VBOXCLIPBOARDLISTENTRY_MAX_NAME);
     509int SharedClipboardURIListEntryInit(PSHCLLISTENTRY pListEntry)
     510{
     511    RT_BZERO(pListEntry, sizeof(SHCLLISTENTRY));
     512
     513    pListEntry->pszName = RTStrAlloc(SHCLLISTENTRY_MAX_NAME);
    514514    if (!pListEntry->pszName)
    515515        return VERR_NO_MEMORY;
    516516
    517     pListEntry->cbName = VBOXCLIPBOARDLISTENTRY_MAX_NAME;
     517    pListEntry->cbName = SHCLLISTENTRY_MAX_NAME;
    518518    pListEntry->pvInfo = NULL;
    519519    pListEntry->cbInfo = 0;
     
    528528 * @param   pListEntry          Clipboard list entry structure to destroy.
    529529 */
    530 void SharedClipboardURIListEntryDestroy(PVBOXCLIPBOARDLISTENTRY pListEntry)
     530void SharedClipboardURIListEntryDestroy(PSHCLLISTENTRY pListEntry)
    531531{
    532532    if (!pListEntry)
     
    555555 * @param   pListEntry          Clipboard data chunk to validate.
    556556 */
    557 bool SharedClipboardURIListEntryIsValid(PVBOXCLIPBOARDLISTENTRY pListEntry)
     557bool SharedClipboardURIListEntryIsValid(PSHCLLISTENTRY pListEntry)
    558558{
    559559    RT_NOREF(pListEntry);
     
    570570 * @param   pObjCtx             URI object context to initialize.
    571571 */
    572 int SharedClipboardURIObjCtxInit(PSHAREDCLIPBOARDCLIENTURIOBJCTX pObjCtx)
     572int SharedClipboardURIObjCtxInit(PSHCLCLIENTURIOBJCTX pObjCtx)
    573573{
    574574    AssertPtrReturn(pObjCtx, VERR_INVALID_POINTER);
     
    576576    LogFlowFuncEnter();
    577577
    578     pObjCtx->uHandle  = SHAREDCLIPBOARDOBJHANDLE_INVALID;
     578    pObjCtx->uHandle  = SHCLOBJHANDLE_INVALID;
    579579
    580580    return VINF_SUCCESS;
     
    586586 * @param   pObjCtx             URI object context to destroy.
    587587 */
    588 void SharedClipboardURIObjCtxDestroy(PSHAREDCLIPBOARDCLIENTURIOBJCTX pObjCtx)
     588void SharedClipboardURIObjCtxDestroy(PSHCLCLIENTURIOBJCTX pObjCtx)
    589589{
    590590    AssertPtrReturnVoid(pObjCtx);
     
    599599 * @param   pObjCtx             URI object context to check.
    600600 */
    601 bool SharedClipboardURIObjCtxIsValid(PSHAREDCLIPBOARDCLIENTURIOBJCTX pObjCtx)
     601bool SharedClipboardURIObjCtxIsValid(PSHCLCLIENTURIOBJCTX pObjCtx)
    602602{
    603603    return (   pObjCtx
    604             && pObjCtx->uHandle != SHAREDCLIPBOARDOBJHANDLE_INVALID);
     604            && pObjCtx->uHandle != SHCLOBJHANDLE_INVALID);
    605605}
    606606
     
    610610 * @param   pInfo               Object handle info structure to destroy.
    611611 */
    612 void SharedClipboardURIObjectHandleInfoDestroy(PSHAREDCLIPBOARDURIOBJHANDLEINFO pInfo)
     612void SharedClipboardURIObjectHandleInfoDestroy(PSHCLURIOBJHANDLEINFO pInfo)
    613613{
    614614    if (!pInfo)
     
    628628 * @param   pParms              URI object open parameters structure to initialize.
    629629 */
    630 int SharedClipboardURIObjectOpenParmsInit(PVBOXCLIPBOARDOBJOPENCREATEPARMS pParms)
     630int SharedClipboardURIObjectOpenParmsInit(PSHCLOBJOPENCREATEPARMS pParms)
    631631{
    632632    AssertPtrReturn(pParms, VERR_INVALID_POINTER);
     
    634634    int rc;
    635635
    636     RT_BZERO(pParms, sizeof(VBOXCLIPBOARDOBJOPENCREATEPARMS));
     636    RT_BZERO(pParms, sizeof(SHCLOBJOPENCREATEPARMS));
    637637
    638638    pParms->cbPath    = RTPATH_MAX; /** @todo Make this dynamic. */
     
    656656 * @param   pParmsSrc           Which source URI object open parameters to copy.
    657657 */
    658 int SharedClipboardURIObjectOpenParmsCopy(PVBOXCLIPBOARDOBJOPENCREATEPARMS pParmsDst, PVBOXCLIPBOARDOBJOPENCREATEPARMS pParmsSrc)
     658int SharedClipboardURIObjectOpenParmsCopy(PSHCLOBJOPENCREATEPARMS pParmsDst, PSHCLOBJOPENCREATEPARMS pParmsSrc)
    659659{
    660660    int rc;
     
    685685 * @param   pParms              URI object open parameters structure to destroy.
    686686 */
    687 void SharedClipboardURIObjectOpenParmsDestroy(PVBOXCLIPBOARDOBJOPENCREATEPARMS pParms)
     687void SharedClipboardURIObjectOpenParmsDestroy(PSHCLOBJOPENCREATEPARMS pParms)
    688688{
    689689    if (!pParms)
     
    704704 * @param   hObj                Object handle of the object to get handle info for.
    705705 */
    706 inline PSHAREDCLIPBOARDURIOBJHANDLEINFO sharedClipboardURIObjectGet(PSHAREDCLIPBOARDURITRANSFER pTransfer,
    707                                                                     SHAREDCLIPBOARDOBJHANDLE hObj)
    708 {
    709     PSHAREDCLIPBOARDURIOBJHANDLEINFO pIt;
    710     RTListForEach(&pTransfer->lstObj, pIt, SHAREDCLIPBOARDURIOBJHANDLEINFO, Node)
     706inline PSHCLURIOBJHANDLEINFO sharedClipboardURIObjectGet(PSHCLURITRANSFER pTransfer,
     707                                                                    SHCLOBJHANDLE hObj)
     708{
     709    PSHCLURIOBJHANDLEINFO pIt;
     710    RTListForEach(&pTransfer->lstObj, pIt, SHCLURIOBJHANDLEINFO, Node)
    711711    {
    712712        if (pIt->hObj == hObj)
     
    725725 * @param   phObj               Where to store the handle of URI object opened on success.
    726726 */
    727 int SharedClipboardURIObjectOpen(PSHAREDCLIPBOARDURITRANSFER pTransfer, PVBOXCLIPBOARDOBJOPENCREATEPARMS pOpenCreateParms,
    728                                  PSHAREDCLIPBOARDOBJHANDLE phObj)
     727int SharedClipboardURIObjectOpen(PSHCLURITRANSFER pTransfer, PSHCLOBJOPENCREATEPARMS pOpenCreateParms,
     728                                 PSHCLOBJHANDLE phObj)
    729729{
    730730    AssertPtrReturn(pTransfer,        VERR_INVALID_POINTER);
     
    736736    LogFlowFunc(("pszPath=%s, fCreate=0x%x\n", pOpenCreateParms->pszPath, pOpenCreateParms->fCreate));
    737737
    738     if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_LOCAL)
    739     {
    740         PSHAREDCLIPBOARDURIOBJHANDLEINFO pInfo
    741             = (PSHAREDCLIPBOARDURIOBJHANDLEINFO)RTMemAlloc(sizeof(SHAREDCLIPBOARDURIOBJHANDLEINFO));
     738    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
     739    {
     740        PSHCLURIOBJHANDLEINFO pInfo
     741            = (PSHCLURIOBJHANDLEINFO)RTMemAlloc(sizeof(SHCLURIOBJHANDLEINFO));
    742742        if (pInfo)
    743743        {
     
    747747            rc = sharedClipboardConvertFileCreateFlags(fWritable,
    748748                                                       pOpenCreateParms->fCreate, pOpenCreateParms->ObjInfo.Attr.fMode,
    749                                                        SHAREDCLIPBOARDOBJHANDLE_INVALID, &fOpen);
     749                                                       SHCLOBJHANDLE_INVALID, &fOpen);
    750750            if (RT_SUCCESS(rc))
    751751            {
     
    765765            {
    766766                pInfo->hObj    = pTransfer->uObjHandleNext++;
    767                 pInfo->enmType = SHAREDCLIPBOARDURIOBJTYPE_FILE;
     767                pInfo->enmType = SHCLURIOBJTYPE_FILE;
    768768
    769769                RTListAppend(&pTransfer->lstObj, &pInfo->Node);
     
    778778            rc = VERR_NO_MEMORY;
    779779    }
    780     else if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_REMOTE)
     780    else if (pTransfer->State.enmSource == SHCLSOURCE_REMOTE)
    781781    {
    782782        if (pTransfer->ProviderIface.pfnObjOpen)
     
    799799 * @param   hObj                Handle of URI object to close.
    800800 */
    801 int SharedClipboardURIObjectClose(PSHAREDCLIPBOARDURITRANSFER pTransfer, SHAREDCLIPBOARDOBJHANDLE hObj)
     801int SharedClipboardURIObjectClose(PSHCLURITRANSFER pTransfer, SHCLOBJHANDLE hObj)
    802802{
    803803    AssertPtrReturn(pTransfer, VERR_INVALID_POINTER);
     
    805805    int rc = VINF_SUCCESS;
    806806
    807     if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_LOCAL)
    808     {
    809         PSHAREDCLIPBOARDURIOBJHANDLEINFO pInfo = sharedClipboardURIObjectGet(pTransfer, hObj);
     807    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
     808    {
     809        PSHCLURIOBJHANDLEINFO pInfo = sharedClipboardURIObjectGet(pTransfer, hObj);
    810810        if (pInfo)
    811811        {
    812812            switch (pInfo->enmType)
    813813            {
    814                 case SHAREDCLIPBOARDURIOBJTYPE_DIRECTORY:
     814                case SHCLURIOBJTYPE_DIRECTORY:
    815815                {
    816816                    rc = RTDirClose(pInfo->u.Local.hDir);
     
    820820                }
    821821
    822                 case SHAREDCLIPBOARDURIOBJTYPE_FILE:
     822                case SHCLURIOBJTYPE_FILE:
    823823                {
    824824                    rc = RTFileClose(pInfo->u.Local.hFile);
     
    840840            rc = VERR_NOT_FOUND;
    841841    }
    842     else if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_REMOTE)
     842    else if (pTransfer->State.enmSource == SHCLSOURCE_REMOTE)
    843843    {
    844844        if (pTransfer->ProviderIface.pfnObjClose)
     
    864864 * @param   pcbRead             How much bytes were read on success. Optional.
    865865 */
    866 int SharedClipboardURIObjectRead(PSHAREDCLIPBOARDURITRANSFER pTransfer,
    867                                  SHAREDCLIPBOARDOBJHANDLE hObj, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead, uint32_t fFlags)
     866int SharedClipboardURIObjectRead(PSHCLURITRANSFER pTransfer,
     867                                 SHCLOBJHANDLE hObj, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead, uint32_t fFlags)
    868868{
    869869    AssertPtrReturn(pTransfer, VERR_INVALID_POINTER);
     
    875875    int rc = VINF_SUCCESS;
    876876
    877     if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_LOCAL)
    878     {
    879         PSHAREDCLIPBOARDURIOBJHANDLEINFO pInfo = sharedClipboardURIObjectGet(pTransfer, hObj);
     877    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
     878    {
     879        PSHCLURIOBJHANDLEINFO pInfo = sharedClipboardURIObjectGet(pTransfer, hObj);
    880880        if (pInfo)
    881881        {
    882882            switch (pInfo->enmType)
    883883            {
    884                 case SHAREDCLIPBOARDURIOBJTYPE_FILE:
     884                case SHCLURIOBJTYPE_FILE:
    885885                {
    886886                    size_t cbRead;
     
    902902            rc = VERR_NOT_FOUND;
    903903    }
    904     else if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_REMOTE)
     904    else if (pTransfer->State.enmSource == SHCLSOURCE_REMOTE)
    905905    {
    906906        if (pTransfer->ProviderIface.pfnObjRead)
     
    926926 * @param   pcbWritten          How much bytes were writtenon success. Optional.
    927927 */
    928 int SharedClipboardURIObjectWrite(PSHAREDCLIPBOARDURITRANSFER pTransfer,
    929                                   SHAREDCLIPBOARDOBJHANDLE hObj, void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten,
     928int SharedClipboardURIObjectWrite(PSHCLURITRANSFER pTransfer,
     929                                  SHCLOBJHANDLE hObj, void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten,
    930930                                  uint32_t fFlags)
    931931{
     
    937937    int rc = VINF_SUCCESS;
    938938
    939     if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_LOCAL)
    940     {
    941         PSHAREDCLIPBOARDURIOBJHANDLEINFO pInfo = sharedClipboardURIObjectGet(pTransfer, hObj);
     939    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
     940    {
     941        PSHCLURIOBJHANDLEINFO pInfo = sharedClipboardURIObjectGet(pTransfer, hObj);
    942942        if (pInfo)
    943943        {
    944944            switch (pInfo->enmType)
    945945            {
    946                 case SHAREDCLIPBOARDURIOBJTYPE_FILE:
     946                case SHCLURIOBJTYPE_FILE:
    947947                {
    948948                    rc = RTFileWrite(pInfo->u.Local.hFile, pvBuf, cbBuf, (size_t *)pcbWritten);
     
    958958            rc = VERR_NOT_FOUND;
    959959    }
    960     else if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_REMOTE)
     960    else if (pTransfer->State.enmSource == SHCLSOURCE_REMOTE)
    961961    {
    962962        if (pTransfer->ProviderIface.pfnObjWrite)
     
    978978 * @param   pDataChunk          URI object data chunk to duplicate.
    979979 */
    980 PVBOXCLIPBOARDOBJDATACHUNK SharedClipboardURIObjectDataChunkDup(PVBOXCLIPBOARDOBJDATACHUNK pDataChunk)
     980PSHCLOBJDATACHUNK SharedClipboardURIObjectDataChunkDup(PSHCLOBJDATACHUNK pDataChunk)
    981981{
    982982    if (!pDataChunk)
    983983        return NULL;
    984984
    985     PVBOXCLIPBOARDOBJDATACHUNK pDataChunkDup = (PVBOXCLIPBOARDOBJDATACHUNK)RTMemAllocZ(sizeof(VBOXCLIPBOARDOBJDATACHUNK));
     985    PSHCLOBJDATACHUNK pDataChunkDup = (PSHCLOBJDATACHUNK)RTMemAllocZ(sizeof(SHCLOBJDATACHUNK));
    986986    if (!pDataChunkDup)
    987987        return NULL;
     
    10041004 * @param   pDataChunk          URI object data chunk to destroy.
    10051005 */
    1006 void SharedClipboardURIObjectDataChunkDestroy(PVBOXCLIPBOARDOBJDATACHUNK pDataChunk)
     1006void SharedClipboardURIObjectDataChunkDestroy(PSHCLOBJDATACHUNK pDataChunk)
    10071007{
    10081008    if (!pDataChunk)
     
    10281028 *                              be invalid after calling this function.
    10291029 */
    1030 void SharedClipboardURIObjectDataChunkFree(PVBOXCLIPBOARDOBJDATACHUNK pDataChunk)
     1030void SharedClipboardURIObjectDataChunkFree(PSHCLOBJDATACHUNK pDataChunk)
    10311031{
    10321032    if (!pDataChunk)
     
    10481048 *                              Must be destroyed by SharedClipboardURITransferDestroy().
    10491049 */
    1050 int SharedClipboardURITransferCreate(SHAREDCLIPBOARDURITRANSFERDIR enmDir, SHAREDCLIPBOARDSOURCE enmSource,
    1051                                      PSHAREDCLIPBOARDURITRANSFER *ppTransfer)
     1050int SharedClipboardURITransferCreate(SHCLURITRANSFERDIR enmDir, SHCLSOURCE enmSource,
     1051                                     PSHCLURITRANSFER *ppTransfer)
    10521052{
    10531053    AssertPtrReturn(ppTransfer, VERR_INVALID_POINTER);
     
    10551055    LogFlowFuncEnter();
    10561056
    1057     PSHAREDCLIPBOARDURITRANSFER pTransfer = (PSHAREDCLIPBOARDURITRANSFER)RTMemAlloc(sizeof(SHAREDCLIPBOARDURITRANSFER));
     1057    PSHCLURITRANSFER pTransfer = (PSHCLURITRANSFER)RTMemAlloc(sizeof(SHCLURITRANSFER));
    10581058    if (!pTransfer)
    10591059        return VERR_NO_MEMORY;
     
    10621062
    10631063    pTransfer->State.uID       = 0;
    1064     pTransfer->State.enmStatus = SHAREDCLIPBOARDURITRANSFERSTATUS_NONE;
     1064    pTransfer->State.enmStatus = SHCLURITRANSFERSTATUS_NONE;
    10651065    pTransfer->State.enmDir    = enmDir;
    10661066    pTransfer->State.enmSource = enmSource;
     
    11151115 * @param   pURI                URI clipboard transfer to destroy.
    11161116 */
    1117 int SharedClipboardURITransferDestroy(PSHAREDCLIPBOARDURITRANSFER pTransfer)
     1117int SharedClipboardURITransferDestroy(PSHCLURITRANSFER pTransfer)
    11181118{
    11191119    if (!pTransfer)
     
    11301130    SharedClipboardEventSourceDestroy(&pTransfer->Events);
    11311131
    1132     PSHAREDCLIPBOARDURILISTHANDLEINFO pItList, pItListNext;
    1133     RTListForEachSafe(&pTransfer->lstList, pItList, pItListNext, SHAREDCLIPBOARDURILISTHANDLEINFO, Node)
     1132    PSHCLURILISTHANDLEINFO pItList, pItListNext;
     1133    RTListForEachSafe(&pTransfer->lstList, pItList, pItListNext, SHCLURILISTHANDLEINFO, Node)
    11341134    {
    11351135        SharedClipboardURIListHandleInfoDestroy(pItList);
     
    11401140    }
    11411141
    1142     PSHAREDCLIPBOARDURIOBJHANDLEINFO pItObj, pItObjNext;
    1143     RTListForEachSafe(&pTransfer->lstObj, pItObj, pItObjNext, SHAREDCLIPBOARDURIOBJHANDLEINFO, Node)
     1142    PSHCLURIOBJHANDLEINFO pItObj, pItObjNext;
     1143    RTListForEachSafe(&pTransfer->lstObj, pItObj, pItObjNext, SHCLURIOBJHANDLEINFO, Node)
    11441144    {
    11451145        SharedClipboardURIObjectHandleInfoDestroy(pItObj);
     
    11541154}
    11551155
    1156 int SharedClipboardURITransferOpen(PSHAREDCLIPBOARDURITRANSFER pTransfer)
     1156int SharedClipboardURITransferOpen(PSHCLURITRANSFER pTransfer)
    11571157{
    11581158    int rc = VINF_SUCCESS;
     
    11651165}
    11661166
    1167 int SharedClipboardURITransferClose(PSHAREDCLIPBOARDURITRANSFER pTransfer)
     1167int SharedClipboardURITransferClose(PSHCLURITRANSFER pTransfer)
    11681168{
    11691169    int rc = VINF_SUCCESS;
     
    11831183 * @param   hList               List handle of the list to get handle info for.
    11841184 */
    1185 inline PSHAREDCLIPBOARDURILISTHANDLEINFO sharedClipboardURITransferListGet(PSHAREDCLIPBOARDURITRANSFER pTransfer,
    1186                                                                            SHAREDCLIPBOARDLISTHANDLE hList)
    1187 {
    1188     PSHAREDCLIPBOARDURILISTHANDLEINFO pIt;
    1189     RTListForEach(&pTransfer->lstList, pIt, SHAREDCLIPBOARDURILISTHANDLEINFO, Node)
     1185inline PSHCLURILISTHANDLEINFO sharedClipboardURITransferListGet(PSHCLURITRANSFER pTransfer,
     1186                                                                           SHCLLISTHANDLE hList)
     1187{
     1188    PSHCLURILISTHANDLEINFO pIt;
     1189    RTListForEach(&pTransfer->lstList, pIt, SHCLURILISTHANDLEINFO, Node)
    11901190    {
    11911191        if (pIt->hList == hList)
     
    11991199 * Creates a new list handle (local only).
    12001200 *
    1201  * @returns New List handle on success, or SHAREDCLIPBOARDLISTHANDLE_INVALID on error.
     1201 * @returns New List handle on success, or SHCLLISTHANDLE_INVALID on error.
    12021202 * @param   pTransfer           URI clipboard transfer to create new list handle for.
    12031203 */
    1204 inline SHAREDCLIPBOARDLISTHANDLE sharedClipboardURITransferListHandleNew(PSHAREDCLIPBOARDURITRANSFER pTransfer)
     1204inline SHCLLISTHANDLE sharedClipboardURITransferListHandleNew(PSHCLURITRANSFER pTransfer)
    12051205{
    12061206    return pTransfer->uListHandleNext++; /** @todo Good enough for now. Improve this later. */
     
    12151215 * @param   phList              Where to store the List handle of opened list on success.
    12161216 */
    1217 int SharedClipboardURITransferListOpen(PSHAREDCLIPBOARDURITRANSFER pTransfer, PVBOXCLIPBOARDLISTOPENPARMS pOpenParms,
    1218                                        PSHAREDCLIPBOARDLISTHANDLE phList)
     1217int SharedClipboardURITransferListOpen(PSHCLURITRANSFER pTransfer, PSHCLLISTOPENPARMS pOpenParms,
     1218                                       PSHCLLISTHANDLE phList)
    12191219{
    12201220    AssertPtrReturn(pTransfer,  VERR_INVALID_POINTER);
     
    12241224    int rc;
    12251225
    1226     SHAREDCLIPBOARDLISTHANDLE hList = SHAREDCLIPBOARDLISTHANDLE_INVALID;
    1227 
    1228     if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_LOCAL)
    1229     {
    1230         PSHAREDCLIPBOARDURILISTHANDLEINFO pInfo
    1231             = (PSHAREDCLIPBOARDURILISTHANDLEINFO)RTMemAlloc(sizeof(SHAREDCLIPBOARDURILISTHANDLEINFO));
     1226    SHCLLISTHANDLE hList = SHCLLISTHANDLE_INVALID;
     1227
     1228    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
     1229    {
     1230        PSHCLURILISTHANDLEINFO pInfo
     1231            = (PSHCLURILISTHANDLEINFO)RTMemAlloc(sizeof(SHCLURILISTHANDLEINFO));
    12321232        if (pInfo)
    12331233        {
     
    12401240                switch (pInfo->enmType)
    12411241                {
    1242                     case SHAREDCLIPBOARDURIOBJTYPE_DIRECTORY:
     1242                    case SHCLURIOBJTYPE_DIRECTORY:
    12431243                    {
    12441244                        rc = RTDirOpen(&pInfo->u.Local.hDir, pOpenParms->pszPath);
     
    12461246                    }
    12471247
    1248                     case SHAREDCLIPBOARDURIOBJTYPE_FILE:
     1248                    case SHCLURIOBJTYPE_FILE:
    12491249                    {
    12501250                        rc = RTFileOpen(&pInfo->u.Local.hFile, pOpenParms->pszPath,
     
    12851285            rc = VERR_NO_MEMORY;
    12861286    }
    1287     else if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_REMOTE)
     1287    else if (pTransfer->State.enmSource == SHCLSOURCE_REMOTE)
    12881288    {
    12891289        if (pTransfer->ProviderIface.pfnListOpen)
     
    13111311 * @param   hList               Handle of list to close.
    13121312 */
    1313 int SharedClipboardURITransferListClose(PSHAREDCLIPBOARDURITRANSFER pTransfer, SHAREDCLIPBOARDLISTHANDLE hList)
     1313int SharedClipboardURITransferListClose(PSHCLURITRANSFER pTransfer, SHCLLISTHANDLE hList)
    13141314{
    13151315    AssertPtrReturn(pTransfer, VERR_INVALID_POINTER);
    13161316
    1317     if (hList == SHAREDCLIPBOARDLISTHANDLE_INVALID)
     1317    if (hList == SHCLLISTHANDLE_INVALID)
    13181318        return VINF_SUCCESS;
    13191319
    13201320    int rc = VINF_SUCCESS;
    13211321
    1322     if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_LOCAL)
    1323     {
    1324         PSHAREDCLIPBOARDURILISTHANDLEINFO pInfo = sharedClipboardURITransferListGet(pTransfer, hList);
     1322    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
     1323    {
     1324        PSHCLURILISTHANDLEINFO pInfo = sharedClipboardURITransferListGet(pTransfer, hList);
    13251325        if (pInfo)
    13261326        {
    13271327            switch (pInfo->enmType)
    13281328            {
    1329                 case SHAREDCLIPBOARDURIOBJTYPE_DIRECTORY:
     1329                case SHCLURIOBJTYPE_DIRECTORY:
    13301330                {
    13311331                    if (RTDirIsValid(pInfo->u.Local.hDir))
     
    13461346            rc = VERR_NOT_FOUND;
    13471347    }
    1348     else if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_REMOTE)
     1348    else if (pTransfer->State.enmSource == SHCLSOURCE_REMOTE)
    13491349    {
    13501350        if (pTransfer->ProviderIface.pfnListClose)
     
    13671367 * @param   pszPath             Path of file to add.
    13681368 */
    1369 static int sharedClipboardURITransferListHdrAddFile(PVBOXCLIPBOARDLISTHDR pHdr, const char *pszPath)
     1369static int sharedClipboardURITransferListHdrAddFile(PSHCLLISTHDR pHdr, const char *pszPath)
    13701370{
    13711371    uint64_t cbSize = 0;
     
    13911391 * @param   cchDstBase          Number of charaters of destination base path.
    13921392 */
    1393 static int sharedClipboardURITransferListHdrFromDir(PVBOXCLIPBOARDLISTHDR pHdr,
     1393static int sharedClipboardURITransferListHdrFromDir(PSHCLLISTHDR pHdr,
    13941394                                                    const char *pcszSrcPath, const char *pcszDstPath,
    13951395                                                    const char *pcszDstBase)
     
    15431543 * @param   pHdr                Where to store the returned list header information.
    15441544 */
    1545 int SharedClipboardURITransferListGetHeader(PSHAREDCLIPBOARDURITRANSFER pTransfer, SHAREDCLIPBOARDLISTHANDLE hList,
    1546                                             PVBOXCLIPBOARDLISTHDR pHdr)
     1545int SharedClipboardURITransferListGetHeader(PSHCLURITRANSFER pTransfer, SHCLLISTHANDLE hList,
     1546                                            PSHCLLISTHDR pHdr)
    15471547{
    15481548    AssertPtrReturn(pTransfer, VERR_INVALID_POINTER);
     
    15531553    LogFlowFunc(("hList=%RU64\n", hList));
    15541554
    1555     if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_LOCAL)
    1556     {
    1557         PSHAREDCLIPBOARDURILISTHANDLEINFO pInfo = sharedClipboardURITransferListGet(pTransfer, hList);
     1555    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
     1556    {
     1557        PSHCLURILISTHANDLEINFO pInfo = sharedClipboardURITransferListGet(pTransfer, hList);
    15581558        if (pInfo)
    15591559        {
     
    15631563                switch (pInfo->enmType)
    15641564                {
    1565                     case SHAREDCLIPBOARDURIOBJTYPE_DIRECTORY:
     1565                    case SHCLURIOBJTYPE_DIRECTORY:
    15661566                    {
    15671567                        char *pszPathRel = sharedClipboardPathTranslate(pInfo->pszPathLocalAbs);
     
    15771577                    }
    15781578
    1579                     case SHAREDCLIPBOARDURIOBJTYPE_FILE:
     1579                    case SHCLURIOBJTYPE_FILE:
    15801580                    {
    15811581                        pHdr->cTotalObjects = 1;
     
    16011601            rc = VERR_NOT_FOUND;
    16021602    }
    1603     else if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_REMOTE)
     1603    else if (pTransfer->State.enmSource == SHCLSOURCE_REMOTE)
    16041604    {
    16051605        if (pTransfer->ProviderIface.pfnListHdrRead)
     
    16271627 * @param   uIdx                Index of object to get.
    16281628 */
    1629 PSHAREDCLIPBOARDURITRANSFEROBJ SharedClipboardURITransferListGetObj(PSHAREDCLIPBOARDURITRANSFER pTransfer,
    1630                                                                     SHAREDCLIPBOARDLISTHANDLE hList, uint64_t uIdx)
     1629PSHCLURITRANSFEROBJ SharedClipboardURITransferListGetObj(PSHCLURITRANSFER pTransfer,
     1630                                                                    SHCLLISTHANDLE hList, uint64_t uIdx)
    16311631{
    16321632    AssertPtrReturn(pTransfer, NULL);
     
    16471647 * @param   pEntry              Where to store the read information.
    16481648 */
    1649 int SharedClipboardURITransferListRead(PSHAREDCLIPBOARDURITRANSFER pTransfer, SHAREDCLIPBOARDLISTHANDLE hList,
    1650                                        PVBOXCLIPBOARDLISTENTRY pEntry)
     1649int SharedClipboardURITransferListRead(PSHCLURITRANSFER pTransfer, SHCLLISTHANDLE hList,
     1650                                       PSHCLLISTENTRY pEntry)
    16511651{
    16521652    AssertPtrReturn(pTransfer, VERR_INVALID_POINTER);
     
    16571657    LogFlowFunc(("hList=%RU64\n", hList));
    16581658
    1659     if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_LOCAL)
    1660     {
    1661         PSHAREDCLIPBOARDURILISTHANDLEINFO pInfo = sharedClipboardURITransferListGet(pTransfer, hList);
     1659    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
     1660    {
     1661        PSHCLURILISTHANDLEINFO pInfo = sharedClipboardURITransferListGet(pTransfer, hList);
    16621662        if (pInfo)
    16631663        {
    16641664            switch (pInfo->enmType)
    16651665            {
    1666                 case SHAREDCLIPBOARDURIOBJTYPE_DIRECTORY:
     1666                case SHCLURIOBJTYPE_DIRECTORY:
    16671667                {
    16681668                    LogFlowFunc(("\tDirectory: %s\n", pInfo->pszPathLocalAbs));
     
    17111711                                && !fSkipEntry)
    17121712                            {
    1713                                 pEntry->pvInfo = (PSHAREDCLIPBOARDFSOBJINFO)RTMemAlloc(sizeof(SHAREDCLIPBOARDFSOBJINFO));
     1713                                pEntry->pvInfo = (PSHCLFSOBJINFO)RTMemAlloc(sizeof(SHCLFSOBJINFO));
    17141714                                if (pEntry->pvInfo)
    17151715                                {
     
    17171717                                    if (RT_SUCCESS(rc))
    17181718                                    {
    1719                                         SharedClipboardFsObjFromIPRT(PSHAREDCLIPBOARDFSOBJINFO(pEntry->pvInfo), &pDirEntry->Info);
    1720 
    1721                                         pEntry->cbInfo = sizeof(SHAREDCLIPBOARDFSOBJINFO);
    1722                                         pEntry->fInfo  = VBOX_SHAREDCLIPBOARD_INFO_FLAG_FSOBJINFO;
     1719                                        SharedClipboardFsObjFromIPRT(PSHCLFSOBJINFO(pEntry->pvInfo), &pDirEntry->Info);
     1720
     1721                                        pEntry->cbInfo = sizeof(SHCLFSOBJINFO);
     1722                                        pEntry->fInfo  = VBOX_SHCL_INFO_FLAG_FSOBJINFO;
    17231723                                    }
    17241724                                }
     
    17401740                }
    17411741
    1742                 case SHAREDCLIPBOARDURIOBJTYPE_FILE:
     1742                case SHCLURIOBJTYPE_FILE:
    17431743                {
    17441744                    LogFlowFunc(("\tSingle file: %s\n", pInfo->pszPathLocalAbs));
     
    17481748                    if (RT_SUCCESS(rc))
    17491749                    {
    1750                         pEntry->pvInfo = (PSHAREDCLIPBOARDFSOBJINFO)RTMemAlloc(sizeof(SHAREDCLIPBOARDFSOBJINFO));
     1750                        pEntry->pvInfo = (PSHCLFSOBJINFO)RTMemAlloc(sizeof(SHCLFSOBJINFO));
    17511751                        if (pEntry->pvInfo)
    17521752                        {
     
    17541754                            if (RT_SUCCESS(rc))
    17551755                            {
    1756                                 SharedClipboardFsObjFromIPRT(PSHAREDCLIPBOARDFSOBJINFO(pEntry->pvInfo), &objInfo);
    1757 
    1758                                 pEntry->cbInfo = sizeof(SHAREDCLIPBOARDFSOBJINFO);
    1759                                 pEntry->fInfo  = VBOX_SHAREDCLIPBOARD_INFO_FLAG_FSOBJINFO;
     1756                                SharedClipboardFsObjFromIPRT(PSHCLFSOBJINFO(pEntry->pvInfo), &objInfo);
     1757
     1758                                pEntry->cbInfo = sizeof(SHCLFSOBJINFO);
     1759                                pEntry->fInfo  = VBOX_SHCL_INFO_FLAG_FSOBJINFO;
    17601760                            }
    17611761                        }
     
    17751775            rc = VERR_NOT_FOUND;
    17761776    }
    1777     else if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_REMOTE)
     1777    else if (pTransfer->State.enmSource == SHCLSOURCE_REMOTE)
    17781778    {
    17791779        if (pTransfer->ProviderIface.pfnListEntryRead)
     
    17871787}
    17881788
    1789 int SharedClipboardURITransferListWrite(PSHAREDCLIPBOARDURITRANSFER pTransfer, SHAREDCLIPBOARDLISTHANDLE hList,
    1790                                         PVBOXCLIPBOARDLISTENTRY pEntry)
     1789int SharedClipboardURITransferListWrite(PSHCLURITRANSFER pTransfer, SHCLLISTHANDLE hList,
     1790                                        PSHCLLISTENTRY pEntry)
    17911791{
    17921792    RT_NOREF(pTransfer, hList, pEntry);
     
    18101810 * @param   hList               List handle to check.
    18111811 */
    1812 bool SharedClipboardURITransferListHandleIsValid(PSHAREDCLIPBOARDURITRANSFER pTransfer, SHAREDCLIPBOARDLISTHANDLE hList)
     1812bool SharedClipboardURITransferListHandleIsValid(PSHCLURITRANSFER pTransfer, SHCLLISTHANDLE hList)
    18131813{
    18141814    bool fIsValid = false;
    18151815
    1816     if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_LOCAL)
     1816    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
    18171817    {
    18181818        fIsValid = sharedClipboardURITransferListGet(pTransfer, hList) != NULL;
    18191819    }
    1820     else if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_REMOTE)
     1820    else if (pTransfer->State.enmSource == SHCLSOURCE_REMOTE)
    18211821    {
    18221822        AssertFailed(); /** @todo Implement. */
     
    18321832 * @param   pTransfer           URI clipboard transfer to prepare.
    18331833 */
    1834 int SharedClipboardURITransferPrepare(PSHAREDCLIPBOARDURITRANSFER pTransfer)
     1834int SharedClipboardURITransferPrepare(PSHCLURITRANSFER pTransfer)
    18351835{
    18361836    AssertPtrReturn(pTransfer, VERR_INVALID_POINTER);
     
    18401840    int rc = VINF_SUCCESS;
    18411841
    1842     AssertMsgReturn(pTransfer->State.enmStatus == SHAREDCLIPBOARDURITRANSFERSTATUS_NONE,
     1842    AssertMsgReturn(pTransfer->State.enmStatus == SHCLURITRANSFERSTATUS_NONE,
    18431843                    ("Transfer has wrong state (%RU32)\n", pTransfer->State.enmStatus), VERR_WRONG_ORDER);
    18441844
     
    18471847    if (pTransfer->Callbacks.pfnTransferPrepare)
    18481848    {
    1849         SHAREDCLIPBOARDURITRANSFERCALLBACKDATA callbackData = { pTransfer, pTransfer->Callbacks.pvUser };
     1849        SHCLURITRANSFERCALLBACKDATA callbackData = { pTransfer, pTransfer->Callbacks.pvUser };
    18501850        pTransfer->Callbacks.pfnTransferPrepare(&callbackData);
    18511851    }
     
    18531853    if (RT_SUCCESS(rc))
    18541854    {
    1855         pTransfer->State.enmStatus = SHAREDCLIPBOARDURITRANSFERSTATUS_READY;
     1855        pTransfer->State.enmStatus = SHCLURITRANSFERSTATUS_READY;
    18561856
    18571857        /** @todo Add checksum support. */
     
    18691869 * @param   pCreationCtx        Provider creation context to use for provider creation.
    18701870 */
    1871 int SharedClipboardURITransferSetInterface(PSHAREDCLIPBOARDURITRANSFER pTransfer,
    1872                                            PSHAREDCLIPBOARDPROVIDERCREATIONCTX pCreationCtx)
     1871int SharedClipboardURITransferSetInterface(PSHCLURITRANSFER pTransfer,
     1872                                           PSHCLPROVIDERCREATIONCTX pCreationCtx)
    18731873{
    18741874    AssertPtrReturn(pTransfer,    VERR_INVALID_POINTER);
     
    19061906 * @param   pTransfer           Transfer to clear URI root list for.
    19071907 */
    1908 static void sharedClipboardURIListTransferRootsClear(PSHAREDCLIPBOARDURITRANSFER pTransfer)
     1908static void sharedClipboardURIListTransferRootsClear(PSHCLURITRANSFER pTransfer)
    19091909{
    19101910    AssertPtrReturnVoid(pTransfer);
     
    19161916    }
    19171917
    1918     PSHAREDCLIPBOARDURILISTROOT pListRoot, pListRootNext;
    1919     RTListForEachSafe(&pTransfer->lstRoots, pListRoot, pListRootNext, SHAREDCLIPBOARDURILISTROOT, Node)
     1918    PSHCLURILISTROOT pListRoot, pListRootNext;
     1919    RTListForEachSafe(&pTransfer->lstRoots, pListRoot, pListRootNext, SHCLURILISTROOT, Node)
    19201920    {
    19211921        RTStrFree(pListRoot->pszPathAbs);
     
    19391939 * @param   cbRoots             Size (in bytes) of string list.
    19401940 */
    1941 int SharedClipboardURILTransferSetRoots(PSHAREDCLIPBOARDURITRANSFER pTransfer, const char *pszRoots, size_t cbRoots)
     1941int SharedClipboardURILTransferSetRoots(PSHCLURITRANSFER pTransfer, const char *pszRoots, size_t cbRoots)
    19421942{
    19431943    AssertPtrReturn(pTransfer,      VERR_INVALID_POINTER);
     
    19571957    for (size_t i = 0; i < lstRootEntries.size(); ++i)
    19581958    {
    1959         PSHAREDCLIPBOARDURILISTROOT pListRoot = (PSHAREDCLIPBOARDURILISTROOT)RTMemAlloc(sizeof(SHAREDCLIPBOARDURILISTROOT));
     1959        PSHCLURILISTROOT pListRoot = (PSHCLURILISTROOT)RTMemAlloc(sizeof(SHCLURILISTROOT));
    19601960        AssertPtrBreakStmt(pListRoot, rc = VERR_NO_MEMORY);
    19611961
     
    20072007 * @param   pTransfer           URI clipboard transfer to reset.
    20082008 */
    2009 void SharedClipboardURITransferReset(PSHAREDCLIPBOARDURITRANSFER pTransfer)
     2009void SharedClipboardURITransferReset(PSHCLURITRANSFER pTransfer)
    20102010{
    20112011    AssertPtrReturnVoid(pTransfer);
     
    20222022 * @param   pTransfer           URI clipboard transfer to return clipboard area for.
    20232023 */
    2024 SharedClipboardArea *SharedClipboardURITransferGetArea(PSHAREDCLIPBOARDURITRANSFER pTransfer)
     2024SharedClipboardArea *SharedClipboardURITransferGetArea(PSHCLURITRANSFER pTransfer)
    20252025{
    20262026    AssertPtrReturn(pTransfer, NULL);
     
    20352035 * @param   pTransfer           URI clipboard transfer to return root entry count for.
    20362036 */
    2037 uint32_t SharedClipboardURILTransferRootsCount(PSHAREDCLIPBOARDURITRANSFER pTransfer)
     2037uint32_t SharedClipboardURILTransferRootsCount(PSHCLURITRANSFER pTransfer)
    20382038{
    20392039    AssertPtrReturn(pTransfer, 0);
     
    20492049 * @param   uIdx                Index of root list entry to return.
    20502050 */
    2051 inline PSHAREDCLIPBOARDURILISTROOT sharedClipboardURILTransferRootsGet(PSHAREDCLIPBOARDURITRANSFER pTransfer, uint32_t uIdx)
     2051inline PSHCLURILISTROOT sharedClipboardURILTransferRootsGet(PSHCLURITRANSFER pTransfer, uint32_t uIdx)
    20522052{
    20532053    if (uIdx >= pTransfer->cRoots)
    20542054        return NULL;
    20552055
    2056     PSHAREDCLIPBOARDURILISTROOT pIt = RTListGetFirst(&pTransfer->lstRoots, SHAREDCLIPBOARDURILISTROOT, Node);
     2056    PSHCLURILISTROOT pIt = RTListGetFirst(&pTransfer->lstRoots, SHCLURILISTROOT, Node);
    20572057    while (uIdx--)
    2058         pIt = RTListGetNext(&pTransfer->lstRoots, pIt, SHAREDCLIPBOARDURILISTROOT, Node);
     2058        pIt = RTListGetNext(&pTransfer->lstRoots, pIt, SHCLURILISTROOT, Node);
    20592059
    20602060    return pIt;
     
    20692069 * @param   pEntry              Where to store the returned entry on success.
    20702070 */
    2071 int SharedClipboardURILTransferRootsEntry(PSHAREDCLIPBOARDURITRANSFER pTransfer,
    2072                                           uint64_t uIndex, PVBOXCLIPBOARDROOTLISTENTRY pEntry)
     2071int SharedClipboardURILTransferRootsEntry(PSHCLURITRANSFER pTransfer,
     2072                                          uint64_t uIndex, PSHCLROOTLISTENTRY pEntry)
    20732073{
    20742074    AssertPtrReturn(pTransfer, VERR_INVALID_POINTER);
     
    20802080    int rc;
    20812081
    2082     PSHAREDCLIPBOARDURILISTROOT pRoot = sharedClipboardURILTransferRootsGet(pTransfer, uIndex);
     2082    PSHCLURILISTROOT pRoot = sharedClipboardURILTransferRootsGet(pTransfer, uIndex);
    20832083    AssertPtrReturn(pRoot, VERR_INVALID_PARAMETER);
    20842084
     
    21012101            if (RT_SUCCESS(rc))
    21022102            {
    2103                 pEntry->cbInfo = sizeof(SHAREDCLIPBOARDFSOBJINFO);
    2104                 pEntry->pvInfo = (PSHAREDCLIPBOARDFSOBJINFO)RTMemAlloc(pEntry->cbInfo);
     2103                pEntry->cbInfo = sizeof(SHCLFSOBJINFO);
     2104                pEntry->pvInfo = (PSHCLFSOBJINFO)RTMemAlloc(pEntry->cbInfo);
    21052105                if (pEntry->pvInfo)
    21062106                {
     
    21092109                    if (RT_SUCCESS(rc))
    21102110                    {
    2111                         SharedClipboardFsObjFromIPRT(PSHAREDCLIPBOARDFSOBJINFO(pEntry->pvInfo), &fsObjInfo);
    2112 
    2113                         pEntry->fInfo  = VBOX_SHAREDCLIPBOARD_INFO_FLAG_FSOBJINFO;
     2111                        SharedClipboardFsObjFromIPRT(PSHCLFSOBJINFO(pEntry->pvInfo), &fsObjInfo);
     2112
     2113                        pEntry->fInfo  = VBOX_SHCL_INFO_FLAG_FSOBJINFO;
    21142114                    }
    21152115                }
     
    21332133 * @param   ppRootList          Where to store the root list on success.
    21342134 */
    2135 int SharedClipboardURILTransferRootsAsList(PSHAREDCLIPBOARDURITRANSFER pTransfer, PVBOXCLIPBOARDROOTLIST *ppRootList)
     2135int SharedClipboardURILTransferRootsAsList(PSHCLURITRANSFER pTransfer, PSHCLROOTLIST *ppRootList)
    21362136{
    21372137    AssertPtrReturn(pTransfer,  VERR_INVALID_POINTER);
     
    21422142    int rc = VINF_SUCCESS;
    21432143
    2144     if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_LOCAL)
    2145     {
    2146         PVBOXCLIPBOARDROOTLIST pRootList = SharedClipboardURIRootListAlloc();
     2144    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
     2145    {
     2146        PSHCLROOTLIST pRootList = SharedClipboardURIRootListAlloc();
    21472147        if (!pRootList)
    21482148            return VERR_NO_MEMORY;
     
    21542154        if (cRoots)
    21552155        {
    2156             PVBOXCLIPBOARDROOTLISTENTRY paRootListEntries
    2157                 = (PVBOXCLIPBOARDROOTLISTENTRY)RTMemAllocZ(cRoots * sizeof(VBOXCLIPBOARDROOTLISTENTRY));
     2156            PSHCLROOTLISTENTRY paRootListEntries
     2157                = (PSHCLROOTLISTENTRY)RTMemAllocZ(cRoots * sizeof(SHCLROOTLISTENTRY));
    21582158            if (paRootListEntries)
    21592159            {
     
    21822182        }
    21832183    }
    2184     else if (pTransfer->State.enmSource == SHAREDCLIPBOARDSOURCE_REMOTE)
     2184    else if (pTransfer->State.enmSource == SHCLSOURCE_REMOTE)
    21852185    {
    21862186        if (pTransfer->ProviderIface.pfnGetRoots)
     
    22002200 * @param   pTransfer           URI clipboard transfer to return source for.
    22012201 */
    2202 SHAREDCLIPBOARDSOURCE SharedClipboardURITransferGetSource(PSHAREDCLIPBOARDURITRANSFER pTransfer)
    2203 {
    2204     AssertPtrReturn(pTransfer, SHAREDCLIPBOARDSOURCE_INVALID);
     2202SHCLSOURCE SharedClipboardURITransferGetSource(PSHCLURITRANSFER pTransfer)
     2203{
     2204    AssertPtrReturn(pTransfer, SHCLSOURCE_INVALID);
    22052205
    22062206    return pTransfer->State.enmSource;
     
    22132213 * @param   pTransfer           URI clipboard transfer to return status for.
    22142214 */
    2215 SHAREDCLIPBOARDURITRANSFERSTATUS SharedClipboardURITransferGetStatus(PSHAREDCLIPBOARDURITRANSFER pTransfer)
    2216 {
    2217     AssertPtrReturn(pTransfer, SHAREDCLIPBOARDURITRANSFERSTATUS_NONE);
     2215SHCLURITRANSFERSTATUS SharedClipboardURITransferGetStatus(PSHCLURITRANSFER pTransfer)
     2216{
     2217    AssertPtrReturn(pTransfer, SHCLURITRANSFERSTATUS_NONE);
    22182218
    22192219    return pTransfer->State.enmStatus;
     
    22282228 * @param   pvUser              Pointer to user-provided data.
    22292229 */
    2230 int SharedClipboardURITransferRun(PSHAREDCLIPBOARDURITRANSFER pTransfer, PFNRTTHREAD pfnThreadFunc, void *pvUser)
     2230int SharedClipboardURITransferRun(PSHCLURITRANSFER pTransfer, PFNRTTHREAD pfnThreadFunc, void *pvUser)
    22312231{
    22322232    AssertPtrReturn(pTransfer, VERR_INVALID_POINTER);
    22332233
    2234     AssertMsgReturn(pTransfer->State.enmStatus == SHAREDCLIPBOARDURITRANSFERSTATUS_READY,
     2234    AssertMsgReturn(pTransfer->State.enmStatus == SHCLURITRANSFERSTATUS_READY,
    22352235                    ("Wrong status (currently is %RU32)\n", pTransfer->State.enmStatus), VERR_WRONG_ORDER);
    22362236
     
    22482248 * @param   pCallbacks          Pointer to callback table to set.
    22492249 */
    2250 void SharedClipboardURITransferSetCallbacks(PSHAREDCLIPBOARDURITRANSFER pTransfer,
    2251                                             PSHAREDCLIPBOARDURITRANSFERCALLBACKS pCallbacks)
     2250void SharedClipboardURITransferSetCallbacks(PSHCLURITRANSFER pTransfer,
     2251                                            PSHCLURITRANSFERCALLBACKS pCallbacks)
    22522252{
    22532253    AssertPtrReturnVoid(pTransfer);
     
    22812281 * @param   pvUser              Pointer to user-provided data.
    22822282 */
    2283 static int sharedClipboardURITransferThreadCreate(PSHAREDCLIPBOARDURITRANSFER pTransfer, PFNRTTHREAD pfnThreadFunc, void *pvUser)
     2283static int sharedClipboardURITransferThreadCreate(PSHCLURITRANSFER pTransfer, PFNRTTHREAD pfnThreadFunc, void *pvUser)
    22842284
    22852285{
     
    22972297        if (pTransfer->Thread.fStarted) /* Did the thread indicate that it started correctly? */
    22982298        {
    2299             pTransfer->State.enmStatus = SHAREDCLIPBOARDURITRANSFERSTATUS_RUNNING;
     2299            pTransfer->State.enmStatus = SHCLURITRANSFERSTATUS_RUNNING;
    23002300        }
    23012301        else
     
    23142314 * @param   uTimeoutMs          Timeout (in ms) to wait for thread creation.
    23152315 */
    2316 static int sharedClipboardURITransferThreadDestroy(PSHAREDCLIPBOARDURITRANSFER pTransfer, RTMSINTERVAL uTimeoutMs)
     2316static int sharedClipboardURITransferThreadDestroy(PSHCLURITRANSFER pTransfer, RTMSINTERVAL uTimeoutMs)
    23172317{
    23182318    AssertPtrReturn(pTransfer, VERR_INVALID_POINTER);
     
    23402340 * @param   pURI                URI clipboard context to initialize.
    23412341 */
    2342 int SharedClipboardURICtxInit(PSHAREDCLIPBOARDURICTX pURI)
     2342int SharedClipboardURICtxInit(PSHCLURICTX pURI)
    23432343{
    23442344    AssertPtrReturn(pURI, VERR_INVALID_POINTER);
     
    23682368 * @param   pURI                URI clipboard context to destroy.
    23692369 */
    2370 void SharedClipboardURICtxDestroy(PSHAREDCLIPBOARDURICTX pURI)
     2370void SharedClipboardURICtxDestroy(PSHCLURICTX pURI)
    23712371{
    23722372    AssertPtrReturnVoid(pURI);
     
    23762376    RTCritSectDelete(&pURI->CritSect);
    23772377
    2378     PSHAREDCLIPBOARDURITRANSFER pTransfer, pTransferNext;
    2379     RTListForEachSafe(&pURI->List, pTransfer, pTransferNext, SHAREDCLIPBOARDURITRANSFER, Node)
     2378    PSHCLURITRANSFER pTransfer, pTransferNext;
     2379    RTListForEachSafe(&pURI->List, pTransfer, pTransferNext, SHCLURITRANSFER, Node)
    23802380    {
    23812381        SharedClipboardURITransferDestroy(pTransfer);
     
    23962396 * @param   pURI                URI clipboard context to reset.
    23972397 */
    2398 void SharedClipboardURICtxReset(PSHAREDCLIPBOARDURICTX pURI)
     2398void SharedClipboardURICtxReset(PSHCLURICTX pURI)
    23992399{
    24002400    AssertPtrReturnVoid(pURI);
     
    24022402    LogFlowFuncEnter();
    24032403
    2404     PSHAREDCLIPBOARDURITRANSFER pTransfer;
    2405     RTListForEach(&pURI->List, pTransfer, SHAREDCLIPBOARDURITRANSFER, Node)
     2404    PSHCLURITRANSFER pTransfer;
     2405    RTListForEach(&pURI->List, pTransfer, SHCLURITRANSFER, Node)
    24062406        SharedClipboardURITransferReset(pTransfer);
    24072407}
     
    24142414 * @param   pTransfer           Pointer to URI clipboard transfer to add.
    24152415 */
    2416 int SharedClipboardURICtxTransferAdd(PSHAREDCLIPBOARDURICTX pURI, PSHAREDCLIPBOARDURITRANSFER pTransfer)
     2416int SharedClipboardURICtxTransferAdd(PSHCLURICTX pURI, PSHCLURITRANSFER pTransfer)
    24172417{
    24182418    AssertPtrReturn(pURI,      VERR_INVALID_POINTER);
     
    24392439 * @param   pTransfer           Pointer to URI clipboard transfer to remove.
    24402440 */
    2441 int SharedClipboardURICtxTransferRemove(PSHAREDCLIPBOARDURICTX pURI, PSHAREDCLIPBOARDURITRANSFER pTransfer)
     2441int SharedClipboardURICtxTransferRemove(PSHCLURICTX pURI, PSHCLURITRANSFER pTransfer)
    24422442{
    24432443    AssertPtrReturn(pURI,      VERR_INVALID_POINTER);
     
    24672467 * @param   uIdx                Index of the transfer to return.
    24682468 */
    2469 static PSHAREDCLIPBOARDURITRANSFER sharedClipboardURICtxGetTransferInternal(PSHAREDCLIPBOARDURICTX pURI, uint32_t uIdx)
     2469static PSHCLURITRANSFER sharedClipboardURICtxGetTransferInternal(PSHCLURICTX pURI, uint32_t uIdx)
    24702470{
    24712471    AssertReturn(uIdx == 0, NULL); /* Only one transfer allowed at the moment. */
    2472     return RTListGetFirst(&pURI->List, SHAREDCLIPBOARDURITRANSFER, Node);
     2472    return RTListGetFirst(&pURI->List, SHCLURITRANSFER, Node);
    24732473}
    24742474
     
    24802480 * @param   uIdx                Index of the transfer to return.
    24812481 */
    2482 PSHAREDCLIPBOARDURITRANSFER SharedClipboardURICtxGetTransfer(PSHAREDCLIPBOARDURICTX pURI, uint32_t uIdx)
     2482PSHCLURITRANSFER SharedClipboardURICtxGetTransfer(PSHCLURICTX pURI, uint32_t uIdx)
    24832483{
    24842484    return sharedClipboardURICtxGetTransferInternal(pURI, uIdx);
     
    24912491 * @param   pURI                URI clipboard context to return number for.
    24922492 */
    2493 uint32_t SharedClipboardURICtxGetRunningTransfers(PSHAREDCLIPBOARDURICTX pURI)
     2493uint32_t SharedClipboardURICtxGetRunningTransfers(PSHCLURICTX pURI)
    24942494{
    24952495    AssertPtrReturn(pURI, 0);
     
    25032503 * @param   pURI                URI clipboard context to return number for.
    25042504 */
    2505 uint32_t SharedClipboardURICtxGetTotalTransfers(PSHAREDCLIPBOARDURICTX pURI)
     2505uint32_t SharedClipboardURICtxGetTotalTransfers(PSHCLURICTX pURI)
    25062506{
    25072507    AssertPtrReturn(pURI, 0);
     
    25152515 * @param   pURI                URI clipboard context to cleanup transfers for.
    25162516 */
    2517 void SharedClipboardURICtxTransfersCleanup(PSHAREDCLIPBOARDURICTX pURI)
     2517void SharedClipboardURICtxTransfersCleanup(PSHCLURICTX pURI)
    25182518{
    25192519    AssertPtrReturnVoid(pURI);
     
    25222522
    25232523    /* Remove all transfers which are not in a running state (e.g. only announced). */
    2524     PSHAREDCLIPBOARDURITRANSFER pTransfer, pTransferNext;
    2525     RTListForEachSafe(&pURI->List, pTransfer, pTransferNext, SHAREDCLIPBOARDURITRANSFER, Node)
    2526     {
    2527         if (SharedClipboardURITransferGetStatus(pTransfer) != SHAREDCLIPBOARDURITRANSFERSTATUS_RUNNING)
     2524    PSHCLURITRANSFER pTransfer, pTransferNext;
     2525    RTListForEachSafe(&pURI->List, pTransfer, pTransferNext, SHCLURITRANSFER, Node)
     2526    {
     2527        if (SharedClipboardURITransferGetStatus(pTransfer) != SHCLURITRANSFERSTATUS_RUNNING)
    25282528        {
    25292529            SharedClipboardURITransferDestroy(pTransfer);
     
    25452545 * @param   pURI                URI clipboard context to determine value for.
    25462546 */
    2547 bool SharedClipboardURICtxTransfersMaximumReached(PSHAREDCLIPBOARDURICTX pURI)
     2547bool SharedClipboardURICtxTransfersMaximumReached(PSHCLURICTX pURI)
    25482548{
    25492549    AssertPtrReturn(pURI, true);
     
    25612561 * @param   pSrc                The IPRT structure to convert data from.
    25622562 */
    2563 void SharedClipboardFsObjFromIPRT(PSHAREDCLIPBOARDFSOBJINFO pDst, PCRTFSOBJINFO pSrc)
     2563void SharedClipboardFsObjFromIPRT(PSHCLFSOBJINFO pDst, PCRTFSOBJINFO pSrc)
    25642564{
    25652565    pDst->cbObject          = pSrc->cbObject;
     
    25772577        default:
    25782578        case RTFSOBJATTRADD_NOTHING:
    2579             pDst->Attr.enmAdditional        = SHAREDCLIPBOARDFSOBJATTRADD_NOTHING;
     2579            pDst->Attr.enmAdditional        = SHCLFSOBJATTRADD_NOTHING;
    25802580            break;
    25812581
    25822582        case RTFSOBJATTRADD_UNIX:
    2583             pDst->Attr.enmAdditional        = SHAREDCLIPBOARDFSOBJATTRADD_UNIX;
     2583            pDst->Attr.enmAdditional        = SHCLFSOBJATTRADD_UNIX;
    25842584            pDst->Attr.u.Unix.uid           = pSrc->Attr.u.Unix.uid;
    25852585            pDst->Attr.u.Unix.gid           = pSrc->Attr.u.Unix.gid;
     
    25932593
    25942594        case RTFSOBJATTRADD_EASIZE:
    2595             pDst->Attr.enmAdditional        = SHAREDCLIPBOARDFSOBJATTRADD_EASIZE;
     2595            pDst->Attr.enmAdditional        = SHCLFSOBJATTRADD_EASIZE;
    25962596            pDst->Attr.u.EASize.cb          = pSrc->Attr.u.EASize.cb;
    25972597            break;
     
    26122612 */
    26132613static int sharedClipboardConvertFileCreateFlags(bool fWritable, unsigned fShClFlags, RTFMODE fMode,
    2614                                                  SHAREDCLIPBOARDOBJHANDLE handleInitial, uint64_t *pfOpen)
     2614                                                 SHCLOBJHANDLE handleInitial, uint64_t *pfOpen)
    26152615{
    26162616    uint64_t fOpen = 0;
     
    26402640         * and it contained random bits from stack. Detect this using the handle field value
    26412641         * passed from the guest: old additions set it (incorrectly) to 0, new additions
    2642          * set it to SHAREDCLIPBOARDOBJHANDLE_INVALID(~0).
     2642         * set it to SHCLOBJHANDLE_INVALID(~0).
    26432643         */
    26442644        if (handleInitial == 0)
     
    26562656    }
    26572657
    2658     switch ((fShClFlags & SHAREDCLIPBOARD_OBJ_CF_ACCESS_MASK_RW))
     2658    switch ((fShClFlags & SHCL_OBJ_CF_ACCESS_MASK_RW))
    26592659    {
    26602660        default:
    2661         case SHAREDCLIPBOARD_OBJ_CF_ACCESS_NONE:
     2661        case SHCL_OBJ_CF_ACCESS_NONE:
    26622662        {
    26632663#ifdef RT_OS_WINDOWS
    2664             if ((fShClFlags & SHAREDCLIPBOARD_OBJ_CF_ACCESS_MASK_ATTR) != SHAREDCLIPBOARD_OBJ_CF_ACCESS_ATTR_NONE)
     2664            if ((fShClFlags & SHCL_OBJ_CF_ACCESS_MASK_ATTR) != SHCL_OBJ_CF_ACCESS_ATTR_NONE)
    26652665                fOpen |= RTFILE_O_ATTR_ONLY;
    26662666            else
    26672667#endif
    26682668                fOpen |= RTFILE_O_READ;
    2669             LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACCESS_NONE\n"));
     2669            LogFlowFunc(("SHCL_OBJ_CF_ACCESS_NONE\n"));
    26702670            break;
    26712671        }
    26722672
    2673         case SHAREDCLIPBOARD_OBJ_CF_ACCESS_READ:
     2673        case SHCL_OBJ_CF_ACCESS_READ:
    26742674        {
    26752675            fOpen |= RTFILE_O_READ;
    2676             LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACCESS_READ\n"));
     2676            LogFlowFunc(("SHCL_OBJ_CF_ACCESS_READ\n"));
    26772677            break;
    26782678        }
    26792679
    2680         case SHAREDCLIPBOARD_OBJ_CF_ACCESS_WRITE:
     2680        case SHCL_OBJ_CF_ACCESS_WRITE:
    26812681        {
    26822682            fOpen |= RTFILE_O_WRITE;
    2683             LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACCESS_WRITE\n"));
     2683            LogFlowFunc(("SHCL_OBJ_CF_ACCESS_WRITE\n"));
    26842684            break;
    26852685        }
    26862686
    2687         case SHAREDCLIPBOARD_OBJ_CF_ACCESS_READWRITE:
     2687        case SHCL_OBJ_CF_ACCESS_READWRITE:
    26882688        {
    26892689            fOpen |= RTFILE_O_READWRITE;
    2690             LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACCESS_READWRITE\n"));
     2690            LogFlowFunc(("SHCL_OBJ_CF_ACCESS_READWRITE\n"));
    26912691            break;
    26922692        }
    26932693    }
    26942694
    2695     if (fShClFlags & SHAREDCLIPBOARD_OBJ_CF_ACCESS_APPEND)
     2695    if (fShClFlags & SHCL_OBJ_CF_ACCESS_APPEND)
    26962696    {
    26972697        fOpen |= RTFILE_O_APPEND;
    26982698    }
    26992699
    2700     switch ((fShClFlags & SHAREDCLIPBOARD_OBJ_CF_ACCESS_MASK_ATTR))
     2700    switch ((fShClFlags & SHCL_OBJ_CF_ACCESS_MASK_ATTR))
    27012701    {
    27022702        default:
    2703         case SHAREDCLIPBOARD_OBJ_CF_ACCESS_ATTR_NONE:
     2703        case SHCL_OBJ_CF_ACCESS_ATTR_NONE:
    27042704        {
    27052705            fOpen |= RTFILE_O_ACCESS_ATTR_DEFAULT;
    2706             LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACCESS_ATTR_NONE\n"));
     2706            LogFlowFunc(("SHCL_OBJ_CF_ACCESS_ATTR_NONE\n"));
    27072707            break;
    27082708        }
    27092709
    2710         case SHAREDCLIPBOARD_OBJ_CF_ACCESS_ATTR_READ:
     2710        case SHCL_OBJ_CF_ACCESS_ATTR_READ:
    27112711        {
    27122712            fOpen |= RTFILE_O_ACCESS_ATTR_READ;
    2713             LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACCESS_ATTR_READ\n"));
     2713            LogFlowFunc(("SHCL_OBJ_CF_ACCESS_ATTR_READ\n"));
    27142714            break;
    27152715        }
    27162716
    2717         case SHAREDCLIPBOARD_OBJ_CF_ACCESS_ATTR_WRITE:
     2717        case SHCL_OBJ_CF_ACCESS_ATTR_WRITE:
    27182718        {
    27192719            fOpen |= RTFILE_O_ACCESS_ATTR_WRITE;
    2720             LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACCESS_ATTR_WRITE\n"));
     2720            LogFlowFunc(("SHCL_OBJ_CF_ACCESS_ATTR_WRITE\n"));
    27212721            break;
    27222722        }
    27232723
    2724         case SHAREDCLIPBOARD_OBJ_CF_ACCESS_ATTR_READWRITE:
     2724        case SHCL_OBJ_CF_ACCESS_ATTR_READWRITE:
    27252725        {
    27262726            fOpen |= RTFILE_O_ACCESS_ATTR_READWRITE;
    2727             LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACCESS_ATTR_READWRITE\n"));
     2727            LogFlowFunc(("SHCL_OBJ_CF_ACCESS_ATTR_READWRITE\n"));
    27282728            break;
    27292729        }
     
    27312731
    27322732    /* Sharing mask */
    2733     switch ((fShClFlags & SHAREDCLIPBOARD_OBJ_CF_ACCESS_MASK_DENY))
     2733    switch ((fShClFlags & SHCL_OBJ_CF_ACCESS_MASK_DENY))
    27342734    {
    27352735        default:
    2736         case SHAREDCLIPBOARD_OBJ_CF_ACCESS_DENYNONE:
     2736        case SHCL_OBJ_CF_ACCESS_DENYNONE:
    27372737            fOpen |= RTFILE_O_DENY_NONE;
    2738             LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACCESS_DENYNONE\n"));
     2738            LogFlowFunc(("SHCL_OBJ_CF_ACCESS_DENYNONE\n"));
    27392739            break;
    27402740
    2741         case SHAREDCLIPBOARD_OBJ_CF_ACCESS_DENYREAD:
     2741        case SHCL_OBJ_CF_ACCESS_DENYREAD:
    27422742            fOpen |= RTFILE_O_DENY_READ;
    2743             LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACCESS_DENYREAD\n"));
     2743            LogFlowFunc(("SHCL_OBJ_CF_ACCESS_DENYREAD\n"));
    27442744            break;
    27452745
    2746         case SHAREDCLIPBOARD_OBJ_CF_ACCESS_DENYWRITE:
     2746        case SHCL_OBJ_CF_ACCESS_DENYWRITE:
    27472747            fOpen |= RTFILE_O_DENY_WRITE;
    2748             LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACCESS_DENYWRITE\n"));
     2748            LogFlowFunc(("SHCL_OBJ_CF_ACCESS_DENYWRITE\n"));
    27492749            break;
    27502750
    2751         case SHAREDCLIPBOARD_OBJ_CF_ACCESS_DENYALL:
     2751        case SHCL_OBJ_CF_ACCESS_DENYALL:
    27522752            fOpen |= RTFILE_O_DENY_ALL;
    2753             LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACCESS_DENYALL\n"));
     2753            LogFlowFunc(("SHCL_OBJ_CF_ACCESS_DENYALL\n"));
    27542754            break;
    27552755    }
    27562756
    27572757    /* Open/Create action mask */
    2758     switch ((fShClFlags & SHAREDCLIPBOARD_OBJ_CF_ACT_MASK_IF_EXISTS))
    2759     {
    2760         case SHAREDCLIPBOARD_OBJ_CF_ACT_OPEN_IF_EXISTS:
    2761             if (SHAREDCLIPBOARD_OBJ_CF_ACT_CREATE_IF_NEW == (fShClFlags & SHAREDCLIPBOARD_OBJ_CF_ACT_MASK_IF_NEW))
     2758    switch ((fShClFlags & SHCL_OBJ_CF_ACT_MASK_IF_EXISTS))
     2759    {
     2760        case SHCL_OBJ_CF_ACT_OPEN_IF_EXISTS:
     2761            if (SHCL_OBJ_CF_ACT_CREATE_IF_NEW == (fShClFlags & SHCL_OBJ_CF_ACT_MASK_IF_NEW))
    27622762            {
    27632763                fOpen |= RTFILE_O_OPEN_CREATE;
    2764                 LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACT_OPEN_IF_EXISTS and SHAREDCLIPBOARD_OBJ_CF_ACT_CREATE_IF_NEW\n"));
     2764                LogFlowFunc(("SHCL_OBJ_CF_ACT_OPEN_IF_EXISTS and SHCL_OBJ_CF_ACT_CREATE_IF_NEW\n"));
    27652765            }
    2766             else if (SHAREDCLIPBOARD_OBJ_CF_ACT_FAIL_IF_NEW == (fShClFlags & SHAREDCLIPBOARD_OBJ_CF_ACT_MASK_IF_NEW))
     2766            else if (SHCL_OBJ_CF_ACT_FAIL_IF_NEW == (fShClFlags & SHCL_OBJ_CF_ACT_MASK_IF_NEW))
    27672767            {
    27682768                fOpen |= RTFILE_O_OPEN;
    2769                 LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACT_OPEN_IF_EXISTS and SHAREDCLIPBOARD_OBJ_CF_ACT_FAIL_IF_NEW\n"));
     2769                LogFlowFunc(("SHCL_OBJ_CF_ACT_OPEN_IF_EXISTS and SHCL_OBJ_CF_ACT_FAIL_IF_NEW\n"));
    27702770            }
    27712771            else
     
    27752775            }
    27762776            break;
    2777         case SHAREDCLIPBOARD_OBJ_CF_ACT_FAIL_IF_EXISTS:
    2778             if (SHAREDCLIPBOARD_OBJ_CF_ACT_CREATE_IF_NEW == (fShClFlags & SHAREDCLIPBOARD_OBJ_CF_ACT_MASK_IF_NEW))
     2777        case SHCL_OBJ_CF_ACT_FAIL_IF_EXISTS:
     2778            if (SHCL_OBJ_CF_ACT_CREATE_IF_NEW == (fShClFlags & SHCL_OBJ_CF_ACT_MASK_IF_NEW))
    27792779            {
    27802780                fOpen |= RTFILE_O_CREATE;
    2781                 LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACT_FAIL_IF_EXISTS and SHAREDCLIPBOARD_OBJ_CF_ACT_CREATE_IF_NEW\n"));
     2781                LogFlowFunc(("SHCL_OBJ_CF_ACT_FAIL_IF_EXISTS and SHCL_OBJ_CF_ACT_CREATE_IF_NEW\n"));
    27822782            }
    27832783            else
     
    27872787            }
    27882788            break;
    2789         case SHAREDCLIPBOARD_OBJ_CF_ACT_REPLACE_IF_EXISTS:
    2790             if (SHAREDCLIPBOARD_OBJ_CF_ACT_CREATE_IF_NEW == (fShClFlags & SHAREDCLIPBOARD_OBJ_CF_ACT_MASK_IF_NEW))
     2789        case SHCL_OBJ_CF_ACT_REPLACE_IF_EXISTS:
     2790            if (SHCL_OBJ_CF_ACT_CREATE_IF_NEW == (fShClFlags & SHCL_OBJ_CF_ACT_MASK_IF_NEW))
    27912791            {
    27922792                fOpen |= RTFILE_O_CREATE_REPLACE;
    2793                 LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACT_REPLACE_IF_EXISTS and SHAREDCLIPBOARD_OBJ_CF_ACT_CREATE_IF_NEW\n"));
     2793                LogFlowFunc(("SHCL_OBJ_CF_ACT_REPLACE_IF_EXISTS and SHCL_OBJ_CF_ACT_CREATE_IF_NEW\n"));
    27942794            }
    2795             else if (SHAREDCLIPBOARD_OBJ_CF_ACT_FAIL_IF_NEW == (fShClFlags & SHAREDCLIPBOARD_OBJ_CF_ACT_MASK_IF_NEW))
     2795            else if (SHCL_OBJ_CF_ACT_FAIL_IF_NEW == (fShClFlags & SHCL_OBJ_CF_ACT_MASK_IF_NEW))
    27962796            {
    27972797                fOpen |= RTFILE_O_OPEN | RTFILE_O_TRUNCATE;
    2798                 LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACT_REPLACE_IF_EXISTS and SHAREDCLIPBOARD_OBJ_CF_ACT_FAIL_IF_NEW\n"));
     2798                LogFlowFunc(("SHCL_OBJ_CF_ACT_REPLACE_IF_EXISTS and SHCL_OBJ_CF_ACT_FAIL_IF_NEW\n"));
    27992799            }
    28002800            else
     
    28042804            }
    28052805            break;
    2806         case SHAREDCLIPBOARD_OBJ_CF_ACT_OVERWRITE_IF_EXISTS:
    2807             if (SHAREDCLIPBOARD_OBJ_CF_ACT_CREATE_IF_NEW == (fShClFlags & SHAREDCLIPBOARD_OBJ_CF_ACT_MASK_IF_NEW))
     2806        case SHCL_OBJ_CF_ACT_OVERWRITE_IF_EXISTS:
     2807            if (SHCL_OBJ_CF_ACT_CREATE_IF_NEW == (fShClFlags & SHCL_OBJ_CF_ACT_MASK_IF_NEW))
    28082808            {
    28092809                fOpen |= RTFILE_O_CREATE_REPLACE;
    2810                 LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACT_OVERWRITE_IF_EXISTS and SHAREDCLIPBOARD_OBJ_CF_ACT_CREATE_IF_NEW\n"));
     2810                LogFlowFunc(("SHCL_OBJ_CF_ACT_OVERWRITE_IF_EXISTS and SHCL_OBJ_CF_ACT_CREATE_IF_NEW\n"));
    28112811            }
    2812             else if (SHAREDCLIPBOARD_OBJ_CF_ACT_FAIL_IF_NEW == (fShClFlags & SHAREDCLIPBOARD_OBJ_CF_ACT_MASK_IF_NEW))
     2812            else if (SHCL_OBJ_CF_ACT_FAIL_IF_NEW == (fShClFlags & SHCL_OBJ_CF_ACT_MASK_IF_NEW))
    28132813            {
    28142814                fOpen |= RTFILE_O_OPEN | RTFILE_O_TRUNCATE;
    2815                 LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACT_OVERWRITE_IF_EXISTS and SHAREDCLIPBOARD_OBJ_CF_ACT_FAIL_IF_NEW\n"));
     2815                LogFlowFunc(("SHCL_OBJ_CF_ACT_OVERWRITE_IF_EXISTS and SHCL_OBJ_CF_ACT_FAIL_IF_NEW\n"));
    28162816            }
    28172817            else
     
    28242824        {
    28252825            rc = VERR_INVALID_PARAMETER;
    2826             LogFlowFunc(("SHAREDCLIPBOARD_OBJ_CF_ACT_MASK_IF_EXISTS - invalid parameter\n"));
     2826            LogFlowFunc(("SHCL_OBJ_CF_ACT_MASK_IF_EXISTS - invalid parameter\n"));
    28272827            break;
    28282828        }
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-win.cpp

    r80444 r80662  
    154154 *                              Will be set to NULL if the new API is not available.
    155155 */
    156 int VBoxClipboardWinCheckAndInitNewAPI(PVBOXCLIPBOARDWINAPINEW pAPI)
     156int VBoxClipboardWinCheckAndInitNewAPI(PSHCLWINAPINEW pAPI)
    157157{
    158158    RTLDRMOD hUser32 = NIL_RTLDRMOD;
     
    175175    else
    176176    {
    177         RT_BZERO(pAPI, sizeof(VBOXCLIPBOARDWINAPINEW));
     177        RT_BZERO(pAPI, sizeof(SHCLWINAPINEW));
    178178        LogFunc(("New Clipboard API not available; rc=%Rrc\n", rc));
    179179    }
     
    188188 * @param   pAPI                Structure used for checking if the new clipboard API is available or not.
    189189 */
    190 bool VBoxClipboardWinIsNewAPI(PVBOXCLIPBOARDWINAPINEW pAPI)
     190bool VBoxClipboardWinIsNewAPI(PSHCLWINAPINEW pAPI)
    191191{
    192192    if (!pAPI)
     
    201201 * @param   pCtx                Windows clipboard context to use to add ourselves.
    202202 */
    203 int VBoxClipboardWinChainAdd(PVBOXCLIPBOARDWINCTX pCtx)
    204 {
    205     const PVBOXCLIPBOARDWINAPINEW pAPI = &pCtx->newAPI;
     203int VBoxClipboardWinChainAdd(PSHCLWINCTX pCtx)
     204{
     205    const PSHCLWINAPINEW pAPI = &pCtx->newAPI;
    206206
    207207    BOOL fRc;
     
    234234 * @param   pCtx                Windows clipboard context to use to remove ourselves.
    235235 */
    236 int VBoxClipboardWinChainRemove(PVBOXCLIPBOARDWINCTX pCtx)
     236int VBoxClipboardWinChainRemove(PSHCLWINCTX pCtx)
    237237{
    238238    if (!pCtx->hWnd)
    239239        return VINF_SUCCESS;
    240240
    241     const PVBOXCLIPBOARDWINAPINEW pAPI = &pCtx->newAPI;
     241    const PSHCLWINAPINEW pAPI = &pCtx->newAPI;
    242242
    243243    BOOL fRc;
     
    283283
    284284    /** @todo r=andy Why not using SetWindowLongPtr for keeping the context? */
    285     PVBOXCLIPBOARDWINCTX pCtx = (PVBOXCLIPBOARDWINCTX)dwData;
     285    PSHCLWINCTX pCtx = (PSHCLWINCTX)dwData;
    286286    AssertPtrReturnVoid(pCtx);
    287287
     
    298298 * @param   lParam              LPARAM to pass.
    299299 */
    300 LRESULT VBoxClipboardWinChainPassToNext(PVBOXCLIPBOARDWINCTX pWinCtx,
     300LRESULT VBoxClipboardWinChainPassToNext(PSHCLWINCTX pWinCtx,
    301301                                        UINT msg, WPARAM wParam, LPARAM lParam)
    302302{
     
    327327 * @param   uFormat             Windows clipboard format to convert.
    328328 */
    329 VBOXCLIPBOARDFORMAT VBoxClipboardWinClipboardFormatToVBox(UINT uFormat)
     329SHCLFORMAT VBoxClipboardWinClipboardFormatToVBox(UINT uFormat)
    330330{
    331331    /* Insert the requested clipboard format data into the clipboard. */
    332     VBOXCLIPBOARDFORMAT vboxFormat = VBOX_SHARED_CLIPBOARD_FMT_NONE;
     332    SHCLFORMAT vboxFormat = VBOX_SHARED_CLIPBOARD_FMT_NONE;
    333333
    334334    switch (uFormat)
     
    386386 * @param   pFormats            Where to store the retrieved formats.
    387387 */
    388 int VBoxClipboardWinGetFormats(PVBOXCLIPBOARDWINCTX pCtx, PSHAREDCLIPBOARDFORMATDATA pFormats)
     388int VBoxClipboardWinGetFormats(PSHCLWINCTX pCtx, PSHCLFORMATDATA pFormats)
    389389{
    390390    AssertPtrReturn(pCtx,     VERR_INVALID_POINTER);
    391391    AssertPtrReturn(pFormats, VERR_INVALID_POINTER);
    392392
    393     VBOXCLIPBOARDFORMATS fFormats = VBOX_SHARED_CLIPBOARD_FMT_NONE;
     393    SHCLFORMATS fFormats = VBOX_SHARED_CLIPBOARD_FMT_NONE;
    394394
    395395    /* Query list of available formats and report to host. */
     
    649649 * @param   lParam              lParam to pass on.
    650650 */
    651 LRESULT VBoxClipboardWinHandleWMChangeCBChain(PVBOXCLIPBOARDWINCTX pWinCtx,
     651LRESULT VBoxClipboardWinHandleWMChangeCBChain(PSHCLWINCTX pWinCtx,
    652652                                              HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
    653653{
     
    697697 * @param   pWinCtx             Windows context to use.
    698698 */
    699 int VBoxClipboardWinHandleWMDestroy(PVBOXCLIPBOARDWINCTX pWinCtx)
     699int VBoxClipboardWinHandleWMDestroy(PSHCLWINCTX pWinCtx)
    700700{
    701701    LogFlowFuncEnter();
     
    723723 * @param   hWnd                Window handle to use.
    724724 */
    725 int VBoxClipboardWinHandleWMRenderAllFormats(PVBOXCLIPBOARDWINCTX pWinCtx, HWND hWnd)
     725int VBoxClipboardWinHandleWMRenderAllFormats(PSHCLWINCTX pWinCtx, HWND hWnd)
    726726{
    727727    RT_NOREF(pWinCtx);
     
    750750 * @param   pWinCtx             Windows context to use.
    751751 */
    752 int VBoxClipboardWinHandleWMTimer(PVBOXCLIPBOARDWINCTX pWinCtx)
     752int VBoxClipboardWinHandleWMTimer(PSHCLWINCTX pWinCtx)
    753753{
    754754    int rc = VINF_SUCCESS;
     
    790790 * @param   fFormats            Clipboard format(s) to announce.
    791791 */
    792 int VBoxClipboardWinAnnounceFormats(PVBOXCLIPBOARDWINCTX pWinCtx, VBOXCLIPBOARDFORMATS fFormats)
     792int VBoxClipboardWinAnnounceFormats(PSHCLWINCTX pWinCtx, SHCLFORMATS fFormats)
    793793{
    794794    LogFunc(("fFormats=0x%x\n", fFormats));
     
    846846 * @param   pTransfer           URI transfer to use.
    847847 */
    848 int VBoxClipboardWinURITransferCreate(PVBOXCLIPBOARDWINCTX pWinCtx, PSHAREDCLIPBOARDURITRANSFER pTransfer)
     848int VBoxClipboardWinURITransferCreate(PSHCLWINCTX pWinCtx, PSHCLURITRANSFER pTransfer)
    849849{
    850850    AssertPtrReturn(pTransfer, VERR_INVALID_POINTER);
     
    912912 * @param   pTransfer           URI transfer to create implementation-specific data for.
    913913 */
    914 void VBoxClipboardWinURITransferDestroy(PVBOXCLIPBOARDWINCTX pWinCtx, PSHAREDCLIPBOARDURITRANSFER pTransfer)
     914void VBoxClipboardWinURITransferDestroy(PSHCLWINCTX pWinCtx, PSHCLURITRANSFER pTransfer)
    915915{
    916916    RT_NOREF(pWinCtx);
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp

    r80623 r80662  
    206206{
    207207    /** Opaque data structure describing the front-end. */
    208     VBOXCLIPBOARDCONTEXT *pFrontend;
     208    SHCLCONTEXT *pFrontend;
    209209    /** Is an X server actually available? */
    210210    bool fHaveX11;
     
    926926 * @note  X11 backend code
    927927 */
    928 CLIPBACKEND *ClipConstructX11(VBOXCLIPBOARDCONTEXT *pFrontend, bool fHeadless)
     928CLIPBACKEND *ClipConstructX11(SHCLCONTEXT *pFrontend, bool fHeadless)
    929929{
    930930    CLIPBACKEND *pCtx = (CLIPBACKEND *)RTMemAllocZ(sizeof(CLIPBACKEND));
     
    21202120
    21212121/* Return the data in the simulated VBox clipboard. */
    2122 int ClipRequestDataForX11(VBOXCLIPBOARDCONTEXT *pCtx, uint32_t u32Format, void **ppv, uint32_t *pcb)
     2122int ClipRequestDataForX11(SHCLCONTEXT *pCtx, uint32_t u32Format, void **ppv, uint32_t *pcb)
    21232123{
    21242124    RT_NOREF2(pCtx, u32Format);
     
    22412241static uint32_t g_fX11Formats = 0;
    22422242
    2243 void ClipReportX11Formats(VBOXCLIPBOARDCONTEXT *pCtx, uint32_t u32Formats)
     2243void ClipReportX11Formats(SHCLCONTEXT *pCtx, uint32_t u32Formats)
    22442244{
    22452245    RT_NOREF1(pCtx);
     
    23892389static char g_completedBuf[MAX_BUF_SIZE];
    23902390
    2391 void ClipRequestFromX11CompleteCallback(VBOXCLIPBOARDCONTEXT *pCtx, int rc, CLIPREADCBREQ *pReq, void *pv, uint32_t cb)
     2391void ClipRequestFromX11CompleteCallback(SHCLCONTEXT *pCtx, int rc, CLIPREADCBREQ *pReq, void *pv, uint32_t cb)
    23922392{
    23932393    RT_NOREF1(pCtx);
     
    28852885# include <iprt/test.h>
    28862886
    2887 int ClipRequestDataForX11(VBOXCLIPBOARDCONTEXT *pCtx, uint32_t u32Format, void **ppv, uint32_t *pcb)
     2887int ClipRequestDataForX11(SHCLCONTEXT *pCtx, uint32_t u32Format, void **ppv, uint32_t *pcb)
    28882888{
    28892889    RT_NOREF4(pCtx, u32Format, ppv, pcb);
     
    28912891}
    28922892
    2893 void ClipReportX11Formats(VBOXCLIPBOARDCONTEXT *pCtx, uint32_t u32Formats)
     2893void ClipReportX11Formats(SHCLCONTEXT *pCtx, uint32_t u32Formats)
    28942894{
    28952895    RT_NOREF2(pCtx, u32Formats);
    28962896}
    28972897
    2898 void ClipRequestFromX11CompleteCallback(VBOXCLIPBOARDCONTEXT *pCtx, int rc, CLIPREADCBREQ *pReq, void *pv, uint32_t cb)
     2898void ClipRequestFromX11CompleteCallback(SHCLCONTEXT *pCtx, int rc, CLIPREADCBREQ *pReq, void *pv, uint32_t cb)
    28992899{
    29002900    RT_NOREF5(pCtx, rc, pReq, pv, cb);
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