VirtualBox

Ignore:
Timestamp:
Oct 12, 2015 3:13:47 PM (9 years ago)
Author:
vboxsync
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/freebsd/vboxvfs/vboxvfs_vfsops.c

    r51963 r58195  
    139139    memcpy (pShFlShareName->String.utf8, pszShare, cbShare + 1);
    140140
    141     rc = vboxCallMapFolder (&g_vboxSFClient, pShFlShareName, &pShFlGlobalInfo->map);
     141    rc = VbglR0SfMapFolder (&g_vboxSFClient, pShFlShareName, &pShFlGlobalInfo->map);
    142142    RTMemFree(pShFlShareName);
    143143
     
    145145    {
    146146        RTMemFree(pShFlGlobalInfo);
    147         printf("vboxCallMapFolder failed rc=%d\n", rc);
     147        printf("VbglR0SfMapFolder failed rc=%d\n", rc);
    148148        return EPROTO;
    149149    }
     
    170170    int flags = 0;
    171171
    172     rc = vboxCallUnmapFolder(&g_vboxSFClient, &pShFlGlobalInfo->map);
     172    rc = VbglR0SfUnmapFolder(&g_vboxSFClient, &pShFlGlobalInfo->map);
    173173    if (RT_FAILURE(rc))
    174174        printf("Failed to unmap shared folder\n");
     
    218218
    219219    /* Initialize the R0 guest library. */
    220     rc = vboxInit();
     220    rc = VbglR0SfInit();
    221221    if (RT_FAILURE(rc))
    222222        return ENXIO;
    223223
    224224    /* Connect to the host service. */
    225     rc = vboxConnect(&g_vboxSFClient);
     225    rc = VbglR0SfConnect(&g_vboxSFClient);
    226226    if (RT_FAILURE(rc))
    227227    {
    228228        printf("Failed to get connection to host! rc=%d\n", rc);
    229         vboxUninit();
     229        VbglR0SfTerm();
    230230        return ENXIO;
    231231    }
    232232
    233     rc = vboxCallSetUtf8 (&g_vboxSFClient);
     233    rc = VbglR0SfSetUtf8(&g_vboxSFClient);
    234234    if (RT_FAILURE (rc))
    235235    {
    236         printf("vboxCallSetUtf8 failed, rc=%d\n", rc);
    237         vboxDisconnect(&g_vboxSFClient);
    238         vboxUninit();
     236        printf("VbglR0SfSetUtf8 failed, rc=%d\n", rc);
     237        VbglR0SfDisconnect(&g_vboxSFClient);
     238        VbglR0SfTerm();
    239239        return EPROTO;
    240240    }
     
    247247int vboxvfs_uninit(struct vfsconf *vfsp)
    248248{
    249     vboxDisconnect(&g_vboxSFClient);
    250     vboxUninit();
     249    VbglR0SfDisconnect(&g_vboxSFClient);
     250    VbglR0SfTerm();
    251251
    252252    return 0;
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