VirtualBox

Ignore:
Timestamp:
Oct 12, 2015 3:13:47 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103309
Message:

VBoxGuestR0LibSharedFolders: Prefixed functions ('vbox' wasn't a very good one). Hope I found all places these functions are called...

Location:
trunk/src/VBox/Additions/darwin/vboxfs
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/darwin/vboxfs/VBoxVFS-VFSOps.cpp

    r57063 r58195  
    286286    if (pMount)
    287287    {
    288         rc = vboxCallMapFolder(&g_vboxSFClient, pMount->pShareName, &pMount->pMap);
     288        rc = VbglR0SfMapFolder(&g_vboxSFClient, pMount->pShareName, &pMount->pMap);
    289289        if (RT_SUCCESS(rc))
    290290        {
     
    302302            return 0;
    303303        }
    304         else
    305             PDEBUG("Unable to map shared folder");
    306 
     304
     305        PDEBUG("Unable to map shared folder");
    307306        vboxvfs_destroy_internal_data(&pMount);
    308307    }
     
    354353                vfs_setfsprivate(mp, NULL);
    355354
    356                 rc = vboxCallUnmapFolder(&g_vboxSFClient, &pMount->pMap);
     355                rc = VbglR0SfUnmapFolder(&g_vboxSFClient, &pMount->pMap);
    357356                if (RT_SUCCESS(rc))
    358357                {
     
    361360                    return 0;
    362361                }
    363                 else
    364                 {
    365                      PDEBUG("Unable to unmount shared folder");
    366                      rc = EPROTO;
    367                 }
     362
     363                PDEBUG("Unable to unmount shared folder");
     364                rc = EPROTO;
    368365            }
    369366            else
     
    518515    AssertReturn(pMount->pShareName, EINVAL);
    519516
    520     rc = vboxCallFSInfo(&g_vboxSFClient, &pMount->pMap, 0, SHFL_INFO_GET | SHFL_INFO_VOLUME,
    521                             &cbBuffer, (PSHFLDIRINFO)&SHFLVolumeInfo);
     517    rc = VbglR0SfFsInfo(&g_vboxSFClient, &pMount->pMap, 0, SHFL_INFO_GET | SHFL_INFO_VOLUME,
     518                        &cbBuffer, (PSHFLDIRINFO)&SHFLVolumeInfo);
    522519    AssertReturn(rc == 0, EPROTO);
    523520
  • trunk/src/VBox/Additions/darwin/vboxfs/VBoxVFS-VNODEOps.cpp

    r57063 r58195  
    556556    PDEBUG("Exploring VBoxVFS directory (%s), handle (0x%.8X), offset (0x%X), count (%d)", (char *)pVnodeData->pPath->String.utf8, (int)pVnodeData->pHandle, index, uio_iovcnt(uio));
    557557
    558     /* Currently, there is a problem when vboxCallDirInfo() is not able to
     558    /* Currently, there is a problem when VbglR0SfDirInfo() is not able to
    559559     * continue retrieve directory content if the same VBoxVFS handle is used.
    560560     * This macro forces to use a new handle in readdir() callback. If enabled,
     
    575575
    576576#if 0
    577     rc = vboxCallDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, 0, 0, index, &cbInfo, (PSHFLDIRINFO)Info, &cFiles);
     577    rc = VbglR0SfDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, 0, 0, index, &cbInfo, (PSHFLDIRINFO)Info, &cFiles);
    578578#else
    579579    SHFLSTRING *pMask = vboxvfs_construct_shflstring("*", strlen("*"));
     
    582582        for (uint32_t cSkip = 0; (cSkip < index + 1) && (rc == VINF_SUCCESS); cSkip++)
    583583        {
    584             //rc = vboxCallDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, 0 /* pMask */, 0 /* SHFL_LIST_RETURN_ONE */, 0, &cbInfo, (PSHFLDIRINFO)Info, &cFiles);
     584            //rc = VbglR0SfDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, 0 /* pMask */, 0 /* SHFL_LIST_RETURN_ONE */, 0, &cbInfo, (PSHFLDIRINFO)Info, &cFiles);
    585585
    586586            uint32_t cbReturned = cbInfo;
    587             //rc = vboxCallDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, pMask, SHFL_LIST_RETURN_ONE, 0, &cbReturned, (PSHFLDIRINFO)Info, &cFiles);
    588             rc = vboxCallDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, 0, SHFL_LIST_RETURN_ONE, 0, &cbReturned, (PSHFLDIRINFO)Info, &cFiles);
     587            //rc = VbglR0SfDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, pMask, SHFL_LIST_RETURN_ONE, 0, &cbReturned, (PSHFLDIRINFO)Info, &cFiles);
     588            rc = VbglR0SfDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, 0, SHFL_LIST_RETURN_ONE, 0,
     589                                 &cbReturned, (PSHFLDIRINFO)Info, &cFiles);
    589590
    590591        }
     
    624625        default:
    625626        {
    626             PDEBUG("vboxCallDirInfo() for item #%d has failed: %d", (int)index, (int)rc);
     627            PDEBUG("VbglR0SfDirInfo() for item #%d has failed: %d", (int)index, (int)rc);
    627628            rc = EINVAL;
    628629            break;
  • trunk/src/VBox/Additions/darwin/vboxfs/VBoxVFS-utils.cpp

    r57063 r58195  
    400400    parms.CreateFlags   = fFlags;
    401401
    402     rc = vboxCallCreate(&g_vboxSFClient, &pMount->pMap, pPath, &parms);
     402    rc = VbglR0SfCreate(&g_vboxSFClient, &pMount->pMap, pPath, &parms);
    403403    if (RT_SUCCESS(rc))
    404404    {
     
    425425{
    426426    AssertReturn(pMount, EINVAL);
    427     return vboxCallClose(&g_vboxSFClient, &pMount->pMap, pHandle);
     427    return VbglR0SfClose(&g_vboxSFClient, &pMount->pMap, pHandle);
    428428}
    429429
     
    455455    parms.CreateFlags = SHFL_CF_LOOKUP | SHFL_CF_ACT_FAIL_IF_NEW;
    456456
    457     rc = vboxCallCreate(&g_vboxSFClient, &pMount->pMap, pSHFLDPath, &parms);
     457    rc = VbglR0SfCreate(&g_vboxSFClient, &pMount->pMap, pSHFLDPath, &parms);
    458458    if (rc == 0)
    459     {
    460459        *Info = parms.Info;
    461     }
    462460
    463461    return rc;
  • trunk/src/VBox/Additions/darwin/vboxfs/VBoxVFS.cpp

    r57358 r58195  
    105105    /* Initialize the R0 guest library. */
    106106#if 0
    107     rc = vboxInit();
     107    rc = VbglR0SfInit();
    108108    if (RT_FAILURE(rc))
    109109        return KERN_FAILURE;
     
    125125
    126126#if 0
    127     vboxUninit();
     127   VbglR0SfTerminate();
    128128#endif
    129129
    130     PINFO("VirtualBox " VBOX_VERSION_STRING " shared folders "
    131           "driver is unloaded");
     130    PINFO("VirtualBox " VBOX_VERSION_STRING " shared folders driver is unloaded");
    132131
    133132    return KERN_SUCCESS;
     
    220219    if (coreService)
    221220    {
    222         rc = vboxInit();
     221        rc = VbglR0SfInit();
    223222        if (RT_SUCCESS(rc))
    224223        {
    225224            /* Connect to the host service. */
    226             rc = vboxConnect(&g_vboxSFClient);
     225            rc = VbglR0SfConnect(&g_vboxSFClient);
    227226            if (RT_SUCCESS(rc))
    228227            {
    229228                PINFO("VBox client connected");
    230                 rc = vboxCallSetUtf8(&g_vboxSFClient);
     229                rc = VbglR0SfSetUtf8(&g_vboxSFClient);
    231230                if (RT_SUCCESS(rc))
    232231                {
     
    242241                else
    243242                {
    244                     PERROR("vboxCallSetUtf8 failed: rc=%d", rc);
     243                    PERROR("VbglR0SfSetUtf8 failed: rc=%d", rc);
    245244                }
    246                 vboxDisconnect(&g_vboxSFClient);
     245                VbglR0SfDisconnect(&g_vboxSFClient);
    247246            }
    248247            else
     
    250249                PERROR("Failed to get connection to host: rc=%d", rc);
    251250            }
    252             vboxUninit();
     251            VbglR0SfUninit();
    253252        }
    254253        else
     
    286285    }
    287286
    288     vboxDisconnect(&g_vboxSFClient);
     287    VbglR0SfDisconnect(&g_vboxSFClient);
    289288    PINFO("VBox client disconnected");
    290289
    291     vboxUninit();
     290    VbglR0SfTerminate();
    292291    PINFO("Low level uninit done");
    293292
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette