Changeset 81369 in vbox for trunk/src/VBox/HostServices/SharedFolders
- Timestamp:
- Oct 18, 2019 9:13:03 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 134082
- Location:
- trunk/src/VBox/HostServices/SharedFolders
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r78947 r81369 326 326 * @param fMode file attributes 327 327 * @param handleInitial initial handle 328 * @ retval pfOpeniprt create flags328 * @param pfOpen Where to return iprt create flags 329 329 */ 330 330 static int vbsfConvertFileOpenFlags(bool fWritable, unsigned fShflFlags, RTFMODE fMode, SHFLHANDLE handleInitial, uint64_t *pfOpen) … … 556 556 * 557 557 * @returns IPRT status code 558 * @param pClient Data structure describing the client accessing the shared folder 559 * @param root The index of the shared folder in the table of mappings. 560 * @param pszPath Path to the file or folder on the host. 561 * @param pParms @a CreateFlags Creation or open parameters, see include/VBox/shflsvc.h 562 * @param pParms @a Info When a new file is created this specifies the initial parameters. 563 * When a file is created or overwritten, it also specifies the 564 * initial size. 565 * @retval pParms @a Resulte Shared folder status code, see include/VBox/shflsvc.h 566 * @retval pParms @a Handle On success the (shared folder) handle of the file opened or 567 * created 568 * @retval pParms @a Info On success the parameters of the file opened or created 558 * @param pClient Data structure describing the client accessing the shared folder 559 * @param root The index of the shared folder in the table of mappings. 560 * @param pszPath Path to the file or folder on the host. 561 * @param pParms Input: 562 * - @a CreateFlags: Creation or open parameters, see include/VBox/shflsvc.h 563 * - @a Info: When a new file is created this specifies the initial parameters. 564 * When a file is created or overwritten, it also specifies the 565 * initial size. 566 * Output: 567 * - @a Result: Shared folder status code, see include/VBox/shflsvc.h 568 * - @a Handle: On success the (shared folder) handle of the file opened or 569 * created 570 * - @a Info: On success the parameters of the file opened or created 569 571 */ 570 572 static int vbsfOpenFile(SHFLCLIENTDATA *pClient, SHFLROOT root, char *pszPath, SHFLCREATEPARMS *pParms) … … 764 766 * 765 767 * @returns IPRT status code 766 * @param pClient Data structure describing the client accessing the shared folder 767 * @param root The index of the shared folder in the table of mappings. 768 * @param pszPath Path to the file or folder on the host. 769 * @param pParms @a CreateFlags Creation or open parameters, see include/VBox/shflsvc.h 770 * @retval pParms @a Result Shared folder status code, see include/VBox/shflsvc.h 771 * @retval pParms @a Handle On success the (shared folder) handle of the folder opened or 772 * created 773 * @retval pParms @a Info On success the parameters of the folder opened or created 768 * @param pClient Data structure describing the client accessing the shared 769 * folder 770 * @param root The index of the shared folder in the table of mappings. 771 * @param pszPath Path to the file or folder on the host. 772 * @param pParms Input: @a CreateFlags Creation or open parameters, see 773 * include/VBox/shflsvc.h 774 * Output: 775 * - @a Result: Shared folder status code, see include/VBox/shflsvc.h 776 * - @a Handle: On success the (shared folder) handle of the folder opened or 777 * created 778 * - @a Info: On success the parameters of the folder opened or created 774 779 * 775 780 * @note folders are created with fMode = 0777 … … 949 954 * @param pClient client data 950 955 * @param pszPath The path of the file to be looked up 951 * @retval pParms->Result Status of the operation (success or error) 952 * @retval pParms->Info On success, information returned about the file 956 * @param pParms Output: 957 * - @a Result: Status of the operation (success or error) 958 * - @a Info: On success, information returned about the 959 * file 953 960 */ 954 961 static int vbsfLookupFile(SHFLCLIENTDATA *pClient, char *pszPath, SHFLCREATEPARMS *pParms) … … 1012 1019 * 1013 1020 * @returns IPRT status code, but see note below 1014 * @param pClient Data structure describing the client accessing the shared 1015 * folder 1016 * @param root The index of the shared folder in the table of mappings. 1017 * The host path of the shared folder is found using this. 1018 * @param pPath The path of the file or folder relative to the host path 1019 * indexed by root. 1020 * @param cbPath Presumably the length of the path in pPath. Actually 1021 * ignored, as pPath contains a length parameter. 1022 * @param pParms @a Info If a new file is created or an old one overwritten, set 1023 * these attributes 1024 * @retval pParms @a Result Shared folder result code, see include/VBox/shflsvc.h 1025 * @retval pParms @a Handle Shared folder handle to the newly opened file 1026 * @retval pParms @a Info Attributes of the file or folder opened 1021 * @param pClient Data structure describing the client accessing the 1022 * shared folder 1023 * @param root The index of the shared folder in the table of mappings. 1024 * The host path of the shared folder is found using this. 1025 * @param pPath The path of the file or folder relative to the host path 1026 * indexed by root. 1027 * @param cbPath Presumably the length of the path in pPath. Actually 1028 * ignored, as pPath contains a length parameter. 1029 * @param pParms Input: If a new file is created or an old one 1030 * overwritten, set the @a Info attribute. 1031 * 1032 * Output: 1033 * - @a Result Shared folder result code, see include/VBox/shflsvc.h 1034 * - @a Handle Shared folder handle to the newly opened file 1035 * - @a Info Attributes of the file or folder opened 1027 1036 * 1028 1037 * @note This function returns success if a "non-exceptional" error occurred, -
trunk/src/VBox/HostServices/SharedFolders/vbsf.h
r78467 r81369 25 25 #include <VBox/shflsvc.h> 26 26 27 int vbsfCreate 27 int vbsfCreate(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLSTRING *pPath, uint32_t cbPath, SHFLCREATEPARMS *pParms); 28 28 29 int vbsfClose 29 int vbsfClose(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLHANDLE Handle); 30 30 31 31 int vbsfRead(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLHANDLE Handle, uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer); -
trunk/src/VBox/HostServices/SharedFolders/vbsfpathabs.cpp
r78114 r81369 98 98 #if defined(RT_OS_WINDOWS) 99 99 /** @todo This code is not needed in 6.0 and later as IPRT translates paths 100 * to \\.\format if they're too long. */100 * to //./ (inverted slashes for doxygen) format if they're too long. */ 101 101 const char *pszPathStart = pszRoot? pszRoot: pszPath; 102 102
Note:
See TracChangeset
for help on using the changeset viewer.