Changeset 58195 in vbox for trunk/src/VBox/Additions/freebsd/vboxvfs/vboxvfs_vfsops.c
- Timestamp:
- Oct 12, 2015 3:13:47 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/freebsd/vboxvfs/vboxvfs_vfsops.c
r51963 r58195 139 139 memcpy (pShFlShareName->String.utf8, pszShare, cbShare + 1); 140 140 141 rc = vboxCallMapFolder (&g_vboxSFClient, pShFlShareName, &pShFlGlobalInfo->map);141 rc = VbglR0SfMapFolder (&g_vboxSFClient, pShFlShareName, &pShFlGlobalInfo->map); 142 142 RTMemFree(pShFlShareName); 143 143 … … 145 145 { 146 146 RTMemFree(pShFlGlobalInfo); 147 printf(" vboxCallMapFolder failed rc=%d\n", rc);147 printf("VbglR0SfMapFolder failed rc=%d\n", rc); 148 148 return EPROTO; 149 149 } … … 170 170 int flags = 0; 171 171 172 rc = vboxCallUnmapFolder(&g_vboxSFClient, &pShFlGlobalInfo->map);172 rc = VbglR0SfUnmapFolder(&g_vboxSFClient, &pShFlGlobalInfo->map); 173 173 if (RT_FAILURE(rc)) 174 174 printf("Failed to unmap shared folder\n"); … … 218 218 219 219 /* Initialize the R0 guest library. */ 220 rc = vboxInit();220 rc = VbglR0SfInit(); 221 221 if (RT_FAILURE(rc)) 222 222 return ENXIO; 223 223 224 224 /* Connect to the host service. */ 225 rc = vboxConnect(&g_vboxSFClient);225 rc = VbglR0SfConnect(&g_vboxSFClient); 226 226 if (RT_FAILURE(rc)) 227 227 { 228 228 printf("Failed to get connection to host! rc=%d\n", rc); 229 vboxUninit();229 VbglR0SfTerm(); 230 230 return ENXIO; 231 231 } 232 232 233 rc = vboxCallSetUtf8(&g_vboxSFClient);233 rc = VbglR0SfSetUtf8(&g_vboxSFClient); 234 234 if (RT_FAILURE (rc)) 235 235 { 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(); 239 239 return EPROTO; 240 240 } … … 247 247 int vboxvfs_uninit(struct vfsconf *vfsp) 248 248 { 249 vboxDisconnect(&g_vboxSFClient);250 vboxUninit();249 VbglR0SfDisconnect(&g_vboxSFClient); 250 VbglR0SfTerm(); 251 251 252 252 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.