Changeset 58196 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Oct 12, 2015 3:18:51 PM (9 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuestLib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR0LibSharedFolders.c
r58195 r58196 70 70 } 71 71 72 DECLVBGL(int) VbglR0SfConnect(PVB SFCLIENT pClient)72 DECLVBGL(int) VbglR0SfConnect(PVBGLSFCLIENT pClient) 73 73 { 74 74 int rc; … … 94 94 } 95 95 96 DECLVBGL(void) VbglR0SfDisconnect(PVB SFCLIENT pClient)96 DECLVBGL(void) VbglR0SfDisconnect(PVBGLSFCLIENT pClient) 97 97 { 98 98 int rc; … … 113 113 } 114 114 115 DECLVBGL(int) VbglR0SfQueryMappings(PVB SFCLIENT pClient, SHFLMAPPING paMappings[], uint32_t *pcMappings)115 DECLVBGL(int) VbglR0SfQueryMappings(PVBGLSFCLIENT pClient, SHFLMAPPING paMappings[], uint32_t *pcMappings) 116 116 { 117 117 int rc; … … 141 141 } 142 142 143 DECLVBGL(int) VbglR0SfQueryMapName(PVB SFCLIENT pClient, SHFLROOT root, SHFLSTRING *pString, uint32_t size)143 DECLVBGL(int) VbglR0SfQueryMapName(PVBGLSFCLIENT pClient, SHFLROOT root, SHFLSTRING *pString, uint32_t size) 144 144 { 145 145 int rc; … … 163 163 } 164 164 165 DECLVBGL(int) VbglR0SfMapFolder(PVB SFCLIENT pClient, PSHFLSTRING szFolderName, PVBSFMAP pMap)165 DECLVBGL(int) VbglR0SfMapFolder(PVBGLSFCLIENT pClient, PSHFLSTRING szFolderName, PVBGLSFMAP pMap) 166 166 { 167 167 int rc; … … 221 221 } 222 222 223 DECLVBGL(int) VbglR0SfUnmapFolder(PVB SFCLIENT pClient, PVBSFMAP pMap)223 DECLVBGL(int) VbglR0SfUnmapFolder(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap) 224 224 { 225 225 int rc; … … 238 238 } 239 239 240 DECLVBGL(int) VbglR0SfCreate(PVB SFCLIENT pClient, PVBSFMAP pMap, PSHFLSTRING pParsedPath, PSHFLCREATEPARMS pCreateParms)240 DECLVBGL(int) VbglR0SfCreate(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, PSHFLSTRING pParsedPath, PSHFLCREATEPARMS pCreateParms) 241 241 { 242 242 /** @todo copy buffers to physical or mapped memory. */ … … 264 264 } 265 265 266 DECLVBGL(int) VbglR0SfClose(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE Handle)266 DECLVBGL(int) VbglR0SfClose(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE Handle) 267 267 { 268 268 int rc; … … 284 284 } 285 285 286 DECLVBGL(int) VbglR0SfRemove(PVB SFCLIENT pClient, PVBSFMAP pMap, PSHFLSTRING pParsedPath, uint32_t flags)286 DECLVBGL(int) VbglR0SfRemove(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, PSHFLSTRING pParsedPath, uint32_t flags) 287 287 { 288 288 int rc = VINF_SUCCESS; … … 309 309 } 310 310 311 DECLVBGL(int) VbglR0SfRename(PVB SFCLIENT pClient, PVBSFMAP pMap, PSHFLSTRING pSrcPath, PSHFLSTRING pDestPath, uint32_t flags)311 DECLVBGL(int) VbglR0SfRename(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, PSHFLSTRING pSrcPath, PSHFLSTRING pDestPath, uint32_t flags) 312 312 { 313 313 int rc; … … 337 337 } 338 338 339 DECLVBGL(int) VbglR0SfRead(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile,339 DECLVBGL(int) VbglR0SfRead(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile, 340 340 uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer, bool fLocked) 341 341 { … … 368 368 } 369 369 370 DECLVBGL(int) VbglR0SfReadPageList(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint32_t *pcbBuffer,370 DECLVBGL(int) VbglR0SfReadPageList(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint32_t *pcbBuffer, 371 371 uint16_t offFirstPage, uint16_t cPages, RTGCPHYS64 *paPages) 372 372 { … … 414 414 } 415 415 416 DECLVBGL(int) VbglR0SfWrite(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile,416 DECLVBGL(int) VbglR0SfWrite(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile, 417 417 uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer, bool fLocked) 418 418 { … … 445 445 } 446 446 447 DECLVBGL(int) VbglR0SfWritePhysCont(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, uint64_t offset,447 DECLVBGL(int) VbglR0SfWritePhysCont(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, 448 448 uint32_t *pcbBuffer, RTCCPHYS PhysBuffer) 449 449 { … … 494 494 } 495 495 496 DECLVBGL(int) VbglR0SfWritePageList(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint32_t *pcbBuffer,496 DECLVBGL(int) VbglR0SfWritePageList(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint32_t *pcbBuffer, 497 497 uint16_t offFirstPage, uint16_t cPages, RTGCPHYS64 *paPages) 498 498 { … … 540 540 } 541 541 542 DECLVBGL(int) VbglR0SfFlush(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile)542 DECLVBGL(int) VbglR0SfFlush(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile) 543 543 { 544 544 int rc; … … 561 561 562 562 DECLVBGL(int) VbglR0SfDirInfo( 563 PVB SFCLIENT pClient,564 PVB SFMAP pMap,563 PVBGLSFCLIENT pClient, 564 PVBGLSFMAP pMap, 565 565 SHFLHANDLE hFile, 566 566 PSHFLSTRING ParsedPath, … … 607 607 } 608 608 609 DECLVBGL(int) VbglR0SfFsInfo(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile,609 DECLVBGL(int) VbglR0SfFsInfo(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile, 610 610 uint32_t flags, uint32_t *pcbBuffer, PSHFLDIRINFO pBuffer) 611 611 { … … 638 638 } 639 639 640 DECLVBGL(int) VbglR0SfLock(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile,640 DECLVBGL(int) VbglR0SfLock(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile, 641 641 uint64_t offset, uint64_t cbSize, uint32_t fLock) 642 642 { … … 666 666 } 667 667 668 DECLVBGL(int) VbglR0SfSetUtf8(PVB SFCLIENT pClient)668 DECLVBGL(int) VbglR0SfSetUtf8(PVBGLSFCLIENT pClient) 669 669 { 670 670 int rc; … … 679 679 } 680 680 681 DECLVBGL(int) VbglR0SfReadLink(PVB SFCLIENT pClient, PVBSFMAP pMap, PSHFLSTRING pParsedPath, uint32_t cbBuffer, uint8_t *pBuffer)681 DECLVBGL(int) VbglR0SfReadLink(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, PSHFLSTRING pParsedPath, uint32_t cbBuffer, uint8_t *pBuffer) 682 682 { 683 683 int rc; … … 704 704 } 705 705 706 DECLVBGL(int) VbglR0SfSymlink(PVB SFCLIENT pClient, PVBSFMAP pMap, PSHFLSTRING pNewPath, PSHFLSTRING pOldPath,706 DECLVBGL(int) VbglR0SfSymlink(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, PSHFLSTRING pNewPath, PSHFLSTRING pOldPath, 707 707 PSHFLFSOBJINFO pBuffer) 708 708 { … … 734 734 } 735 735 736 DECLVBGL(int) VbglR0SfSetSymlinks(PVB SFCLIENT pClient)736 DECLVBGL(int) VbglR0SfSetSymlinks(PVBGLSFCLIENT pClient) 737 737 { 738 738 int rc; -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR0LibSharedFolders.h
r58195 r58196 63 63 64 64 #include <iprt/assert.h> 65 #define ASSERTVBSF AssertRelease66 65 67 66 #include <VBox/shflsvc.h> 68 67 69 typedef struct _VBSFCLIENT68 typedef struct VBGLSFCLIENT 70 69 { 71 70 uint32_t ulClientID; 72 71 VBGLHGCMHANDLE handle; 73 } VB SFCLIENT;74 typedef VB SFCLIENT *PVBSFCLIENT;72 } VBGLSFCLIENT; 73 typedef VBGLSFCLIENT *PVBGLSFCLIENT; 75 74 76 typedef struct _VBSFMAP75 typedef struct VBGLSFMAP 77 76 { 78 77 SHFLROOT root; 79 } VB SFMAP, *PVBSFMAP;78 } VBGLSFMAP, *PVBGLSFMAP; 80 79 81 80 … … 131 130 DECLVBGL(int) VbglR0SfInit(void); 132 131 DECLVBGL(void) VbglR0SfTerm(void); 133 DECLVBGL(int) VbglR0SfConnect(PVB SFCLIENT pClient);134 DECLVBGL(void) VbglR0SfDisconnect(PVB SFCLIENT pClient);132 DECLVBGL(int) VbglR0SfConnect(PVBGLSFCLIENT pClient); 133 DECLVBGL(void) VbglR0SfDisconnect(PVBGLSFCLIENT pClient); 135 134 136 DECLVBGL(int) VbglR0SfQueryMappings(PVB SFCLIENT pClient, SHFLMAPPING paMappings[], uint32_t *pcMappings);135 DECLVBGL(int) VbglR0SfQueryMappings(PVBGLSFCLIENT pClient, SHFLMAPPING paMappings[], uint32_t *pcMappings); 137 136 138 DECLVBGL(int) VbglR0SfQueryMapName(PVB SFCLIENT pClient, SHFLROOT root, SHFLSTRING *pString, uint32_t size);137 DECLVBGL(int) VbglR0SfQueryMapName(PVBGLSFCLIENT pClient, SHFLROOT root, SHFLSTRING *pString, uint32_t size); 139 138 140 139 /** … … 161 160 * as additional information. 162 161 */ 163 DECLVBGL(int) VbglR0SfCreate(PVB SFCLIENT pClient, PVBSFMAP pMap, PSHFLSTRING pParsedPath, PSHFLCREATEPARMS pCreateParms);162 DECLVBGL(int) VbglR0SfCreate(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, PSHFLSTRING pParsedPath, PSHFLCREATEPARMS pCreateParms); 164 163 165 DECLVBGL(int) VbglR0SfClose(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE Handle);166 DECLVBGL(int) VbglR0SfRemove(PVB SFCLIENT pClient, PVBSFMAP pMap, PSHFLSTRING pParsedPath, uint32_t flags);167 DECLVBGL(int) VbglR0SfRename(PVB SFCLIENT pClient, PVBSFMAP pMap, PSHFLSTRING pSrcPath, PSHFLSTRING pDestPath, uint32_t flags);168 DECLVBGL(int) VbglR0SfFlush(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile);164 DECLVBGL(int) VbglR0SfClose(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE Handle); 165 DECLVBGL(int) VbglR0SfRemove(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, PSHFLSTRING pParsedPath, uint32_t flags); 166 DECLVBGL(int) VbglR0SfRename(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, PSHFLSTRING pSrcPath, PSHFLSTRING pDestPath, uint32_t flags); 167 DECLVBGL(int) VbglR0SfFlush(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile); 169 168 170 DECLVBGL(int) VbglR0SfRead(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer, bool fLocked);171 DECLVBGL(int) VbglR0SfReadPageList(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint32_t *pcbBuffer,169 DECLVBGL(int) VbglR0SfRead(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer, bool fLocked); 170 DECLVBGL(int) VbglR0SfReadPageList(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint32_t *pcbBuffer, 172 171 uint16_t offFirstPage, uint16_t cPages, RTGCPHYS64 *paPages); 173 DECLVBGL(int) VbglR0SfWrite(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, uint64_t offset,172 DECLVBGL(int) VbglR0SfWrite(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, 174 173 uint32_t *pcbBuffer, uint8_t *pBuffer, bool fLocked); 175 DECLVBGL(int) VbglR0SfWritePhysCont(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, uint64_t offset,174 DECLVBGL(int) VbglR0SfWritePhysCont(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, 176 175 uint32_t *pcbBuffer, RTCCPHYS PhysBuffer); 177 DECLVBGL(int) VbglR0SfWritePageList(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint32_t *pcbBuffer,176 DECLVBGL(int) VbglR0SfWritePageList(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint32_t *pcbBuffer, 178 177 uint16_t offFirstPage, uint16_t cPages, RTGCPHYS64 *paPages); 179 178 180 DECLVBGL(int) VbglR0SfLock(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint64_t cbSize, uint32_t fLock);179 DECLVBGL(int) VbglR0SfLock(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint64_t cbSize, uint32_t fLock); 181 180 182 DECLVBGL(int) VbglR0SfDirInfo(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile,PSHFLSTRING ParsedPath, uint32_t flags,181 DECLVBGL(int) VbglR0SfDirInfo(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile,PSHFLSTRING ParsedPath, uint32_t flags, 183 182 uint32_t index, uint32_t *pcbBuffer, PSHFLDIRINFO pBuffer, uint32_t *pcFiles); 184 DECLVBGL(int) VbglR0SfFsInfo(PVB SFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, uint32_t flags, uint32_t *pcbBuffer, PSHFLDIRINFO pBuffer);183 DECLVBGL(int) VbglR0SfFsInfo(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, SHFLHANDLE hFile, uint32_t flags, uint32_t *pcbBuffer, PSHFLDIRINFO pBuffer); 185 184 186 DECLVBGL(int) VbglR0SfMapFolder(PVB SFCLIENT pClient, PSHFLSTRING szFolderName, PVBSFMAP pMap);187 DECLVBGL(int) VbglR0SfUnmapFolder(PVB SFCLIENT pClient, PVBSFMAP pMap);188 DECLVBGL(int) VbglR0SfSetUtf8(PVB SFCLIENT pClient);185 DECLVBGL(int) VbglR0SfMapFolder(PVBGLSFCLIENT pClient, PSHFLSTRING szFolderName, PVBGLSFMAP pMap); 186 DECLVBGL(int) VbglR0SfUnmapFolder(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap); 187 DECLVBGL(int) VbglR0SfSetUtf8(PVBGLSFCLIENT pClient); 189 188 190 DECLVBGL(int) VbglR0SfReadLink(PVB SFCLIENT pClient, PVBSFMAP pMap, PSHFLSTRING ParsedPath, uint32_t pcbBuffer, uint8_t *pBuffer);191 DECLVBGL(int) VbglR0SfSymlink(PVB SFCLIENT pClient, PVBSFMAP pMap, PSHFLSTRING pNewPath, PSHFLSTRING pOldPath, PSHFLFSOBJINFO pBuffer);192 DECLVBGL(int) VbglR0SfSetSymlinks(PVB SFCLIENT pClient);189 DECLVBGL(int) VbglR0SfReadLink(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, PSHFLSTRING ParsedPath, uint32_t pcbBuffer, uint8_t *pBuffer); 190 DECLVBGL(int) VbglR0SfSymlink(PVBGLSFCLIENT pClient, PVBGLSFMAP pMap, PSHFLSTRING pNewPath, PSHFLSTRING pOldPath, PSHFLFSOBJINFO pBuffer); 191 DECLVBGL(int) VbglR0SfSetSymlinks(PVBGLSFCLIENT pClient); 193 192 194 193 #endif /* !___VBoxGuestLib_VBoxGuestR0LibSharedFolders_h */
Note:
See TracChangeset
for help on using the changeset viewer.