Changeset 79287 in vbox for trunk/include
- Timestamp:
- Jun 22, 2019 12:05:44 AM (6 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/GuestControlSvc.h
r79286 r79287 195 195 HOST_MSG_FILE_TELL, 196 196 /** 197 * Changes the file size. 198 */ 199 HOST_MSG_FILE_SET_SIZE, 200 /** 197 201 * Removes a directory on the guest. 198 202 */ … … 242 246 RT_CASE_RET_STR(HOST_MSG_FILE_SEEK); 243 247 RT_CASE_RET_STR(HOST_MSG_FILE_TELL); 248 RT_CASE_RET_STR(HOST_MSG_FILE_SET_SIZE); 244 249 RT_CASE_RET_STR(HOST_MSG_DIR_REMOVE); 245 250 RT_CASE_RET_STR(HOST_MSG_PATH_RENAME); … … 632 637 GUEST_FILE_NOTIFYTYPE_WRITE = 40, 633 638 GUEST_FILE_NOTIFYTYPE_SEEK = 50, 634 GUEST_FILE_NOTIFYTYPE_TELL = 60 639 GUEST_FILE_NOTIFYTYPE_TELL = 60, 640 GUEST_FILE_NOTIFYTYPE_SET_SIZE 635 641 }; 636 642 … … 1101 1107 } HGCMMsgFileTell; 1102 1108 1109 /** 1110 * Changes the file size. 1111 */ 1112 typedef struct HGCMMsgFileSetSize 1113 { 1114 VBGLIOCHGCMCALL Hdr; 1115 /** Context ID. */ 1116 HGCMFunctionParameter id32Context; 1117 /** File handle to seek. */ 1118 HGCMFunctionParameter id32Handle; 1119 /** The new file size. */ 1120 HGCMFunctionParameter cb64NewSize; 1121 } HGCMMsgFileSetSize; 1122 1123 1103 1124 /****************************************************************************** 1104 1125 * HGCM replies from the guest. These are handled in Main's low-level HGCM * … … 1141 1162 HGCMFunctionParameter offset; 1142 1163 } tell; 1164 struct 1165 { 1166 HGCMFunctionParameter cb64Size; 1167 } SetSize; 1143 1168 } u; 1144 1169 } HGCMReplyFileNotify; … … 1355 1380 uint64_t uOffActual; 1356 1381 } tell; 1382 struct 1383 { 1384 /** The new file siz.e */ 1385 uint64_t cbSize; 1386 } SetSize; 1357 1387 } u; 1358 1388 } CALLBACKDATA_FILE_NOTIFY, *PCALLBACKDATA_FILE_NOTIFY; -
trunk/include/VBox/VBoxGuestLib.h
r79036 r79287 876 876 uint32_t *puSeekMethod, uint64_t *poffSeek); 877 877 VBGLR3DECL(int) VbglR3GuestCtrlFileGetTell(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t *puHandle); 878 VBGLR3DECL(int) VbglR3GuestCtrlFileGetSetSize(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t *puHandle, uint64_t *pcbNew); 879 878 880 /* Guest -> Host. */ 879 881 VBGLR3DECL(int) VbglR3GuestCtrlFileCbOpen(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint32_t uFileHandle); … … 881 883 VBGLR3DECL(int) VbglR3GuestCtrlFileCbError(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc); 882 884 VBGLR3DECL(int) VbglR3GuestCtrlFileCbRead(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, void *pvData, uint32_t cbData); 883 VBGLR3DECL(int) VbglR3GuestCtrlFileCbWrite(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint32_t uWritten); 884 VBGLR3DECL(int) VbglR3GuestCtrlFileCbSeek(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint64_t uOffActual); 885 VBGLR3DECL(int) VbglR3GuestCtrlFileCbTell(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint64_t uOffActual); 885 VBGLR3DECL(int) VbglR3GuestCtrlFileCbWrite(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint32_t cbWritten); 886 VBGLR3DECL(int) VbglR3GuestCtrlFileCbSeek(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint64_t offCurrent); 887 VBGLR3DECL(int) VbglR3GuestCtrlFileCbTell(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint64_t offCurrent); 888 VBGLR3DECL(int) VbglR3GuestCtrlFileCbSetSize(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint64_t cbNew); 886 889 VBGLR3DECL(int) VbglR3GuestCtrlProcCbStatus(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uPID, uint32_t uStatus, uint32_t fFlags, 887 890 void *pvData, uint32_t cbData);
Note:
See TracChangeset
for help on using the changeset viewer.