- Timestamp:
- Jan 10, 2025 1:45:03 PM (3 weeks ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuestLib.h
r106061 r107653 1160 1160 * @{ 1161 1161 */ 1162 VBGLR3DECL(int) VbglR3GuestCtrlDirCbOpen(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint32_t uFileHandle);1163 VBGLR3DECL(int) VbglR3GuestCtrlDirCbClose(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc);1164 VBGLR3DECL(int) VbglR3GuestCtrlDirCbReadEx(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, PGSTCTLDIRENTRYEX pEntry, uint32_t cbSize, const char *pszUser, const char *pszGroups);1165 VBGLR3DECL(int) VbglR3GuestCtrlDirCbRead(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, PGSTCTLDIRENTRYEX pEntry, uint32_t cbSize);1166 VBGLR3DECL(int) VbglR3GuestCtrlDirCbRewind(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc);1167 VBGLR3DECL(int) VbglR3GuestCtrlDirCbList(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint32_t cEntries, void *pvBuf, uint32_t cbBuf);1162 VBGLR3DECL(int) VbglR3GuestCtrlDirCbOpen(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t uFileHandle); 1163 VBGLR3DECL(int) VbglR3GuestCtrlDirCbClose(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc); 1164 VBGLR3DECL(int) VbglR3GuestCtrlDirCbReadEx(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLDIRENTRYEX pEntry, uint32_t cbSize, const char *pszUser, const char *pszGroups); 1165 VBGLR3DECL(int) VbglR3GuestCtrlDirCbRead(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLDIRENTRYEX pEntry, uint32_t cbSize); 1166 VBGLR3DECL(int) VbglR3GuestCtrlDirCbRewind(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc); 1167 VBGLR3DECL(int) VbglR3GuestCtrlDirCbList(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t cEntries, void *pvBuf, uint32_t cbBuf); 1168 1168 /** @} */ 1169 1169 # endif /* VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS */ 1170 1170 1171 VBGLR3DECL(int) VbglR3GuestCtrlFileCbOpen(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint32_t uFileHandle);1172 VBGLR3DECL(int) VbglR3GuestCtrlFileCbClose(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc);1173 VBGLR3DECL(int) VbglR3GuestCtrlFileCbError(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc);1174 VBGLR3DECL(int) VbglR3GuestCtrlFileCbRead(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, void *pvData, uint32_t cbData);1175 VBGLR3DECL(int) VbglR3GuestCtrlFileCbReadOffset(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, void *pvData, uint32_t cbData, int64_t offNew);1176 VBGLR3DECL(int) VbglR3GuestCtrlFileCbWrite(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint32_t cbWritten);1177 VBGLR3DECL(int) VbglR3GuestCtrlFileCbWriteOffset(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint32_t cbWritten, int64_t offNew);1178 1179 VBGLR3DECL(int) VbglR3GuestCtrlFileCbSeek(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint64_t offCurrent);1180 VBGLR3DECL(int) VbglR3GuestCtrlFileCbTell(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint64_t offCurrent);1181 VBGLR3DECL(int) VbglR3GuestCtrlFileCbSetSize(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint64_t cbNew);1171 VBGLR3DECL(int) VbglR3GuestCtrlFileCbOpen(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t uFileHandle); 1172 VBGLR3DECL(int) VbglR3GuestCtrlFileCbClose(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc); 1173 VBGLR3DECL(int) VbglR3GuestCtrlFileCbError(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc); 1174 VBGLR3DECL(int) VbglR3GuestCtrlFileCbRead(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, void *pvData, uint32_t cbData); 1175 VBGLR3DECL(int) VbglR3GuestCtrlFileCbReadOffset(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, void *pvData, uint32_t cbData, int64_t offNew); 1176 VBGLR3DECL(int) VbglR3GuestCtrlFileCbWrite(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t cbWritten); 1177 VBGLR3DECL(int) VbglR3GuestCtrlFileCbWriteOffset(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t cbWritten, int64_t offNew); 1178 1179 VBGLR3DECL(int) VbglR3GuestCtrlFileCbSeek(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint64_t offCurrent); 1180 VBGLR3DECL(int) VbglR3GuestCtrlFileCbTell(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint64_t offCurrent); 1181 VBGLR3DECL(int) VbglR3GuestCtrlFileCbSetSize(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint64_t cbNew); 1182 1182 1183 1183 # ifdef VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS … … 1185 1185 * @{ 1186 1186 */ 1187 VBGLR3DECL(int) VbglR3GuestCtrlFsCbCreateTemp(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, const char *pszPath);1188 VBGLR3DECL(int) VbglR3GuestCtrlFsCbQueryInfo(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, PGSTCTLFSINFO pFsInfo, uint32_t cbFsInfo);1187 VBGLR3DECL(int) VbglR3GuestCtrlFsCbCreateTemp(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, const char *pszPath); 1188 VBGLR3DECL(int) VbglR3GuestCtrlFsCbQueryInfo(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLFSINFO pFsInfo, uint32_t cbFsInfo); 1189 1189 /** @} */ 1190 1190 … … 1192 1192 * @{ 1193 1193 */ 1194 VBGLR3DECL(int) VbglR3GuestCtrlFsObjCbQueryInfoEx(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, PGSTCTLFSOBJINFO pObjInfo, const char *pszUser, const char *pszGroups);1195 VBGLR3DECL(int) VbglR3GuestCtrlFsObjCbQueryInfo(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, PGSTCTLFSOBJINFO pObjInfo);1194 VBGLR3DECL(int) VbglR3GuestCtrlFsObjCbQueryInfoEx(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLFSOBJINFO pObjInfo, const char *pszUser, const char *pszGroups); 1195 VBGLR3DECL(int) VbglR3GuestCtrlFsObjCbQueryInfo(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLFSOBJINFO pObjInfo); 1196 1196 /** @} */ 1197 1197 # endif /* VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS */ -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp
r106061 r107653 2419 2419 * @returns VBox status code. 2420 2420 * @param pCtx Guest control command context to use. 2421 * @param uRcGuest rc of operation (note: IPRT-style signed int).2421 * @param rc Guest rc of operation (note: IPRT-style signed int). 2422 2422 * @param uDirHandle Directory handle of opened directory. 2423 2423 */ 2424 VBGLR3DECL(int) VbglR3GuestCtrlDirCbOpen(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint32_t uDirHandle)2424 VBGLR3DECL(int) VbglR3GuestCtrlDirCbOpen(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t uDirHandle) 2425 2425 { 2426 2426 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 2430 2430 VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID); 2431 2431 VbglHGCMParmUInt32Set(&Msg.reply_hdr.type, GUEST_DIR_NOTIFYTYPE_OPEN); 2432 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, uRc);2432 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, (uint32_t)rc); 2433 2433 2434 2434 VbglHGCMParmUInt32Set(&Msg.u.open.handle, uDirHandle); … … 2443 2443 * @returns VBox status code. 2444 2444 * @param pCtx Guest control command context to use. 2445 * @param uRcGuest rc of operation (note: IPRT-style signed int).2446 */ 2447 VBGLR3DECL(int) VbglR3GuestCtrlDirCbClose(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc)2445 * @param rc Guest rc of operation (note: IPRT-style signed int). 2446 */ 2447 VBGLR3DECL(int) VbglR3GuestCtrlDirCbClose(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc) 2448 2448 { 2449 2449 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 2453 2453 VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID); 2454 2454 VbglHGCMParmUInt32Set(&Msg.reply_hdr.type, GUEST_DIR_NOTIFYTYPE_CLOSE); 2455 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, uRc);2455 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, (uint32_t)rc); 2456 2456 2457 2457 return VbglR3HGCMCall(&Msg.reply_hdr.hdr, RT_UOFFSET_AFTER(HGCMReplyDirNotify, reply_hdr)); … … 2464 2464 * @returns VBox status code. 2465 2465 * @param pCtx Guest control command context to use. 2466 * @param uRcGuest rc of operation (note: IPRT-style signed int).2466 * @param rc Guest rc of operation (note: IPRT-style signed int). 2467 2467 * @param pEntry Directory entry to send. 2468 2468 * @param cbSize Size (in bytes) of the OFFSET(GSTCTLDIRENTRYEX, szName[pEntry->cbName + 1]). … … 2473 2473 * whereas the first group always is the primary group. 2474 2474 */ 2475 VBGLR3DECL(int) VbglR3GuestCtrlDirCbReadEx(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, PGSTCTLDIRENTRYEX pEntry, uint32_t cbSize,2475 VBGLR3DECL(int) VbglR3GuestCtrlDirCbReadEx(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLDIRENTRYEX pEntry, uint32_t cbSize, 2476 2476 const char *pszUser, const char *pszGroups) 2477 2477 { … … 2482 2482 VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID); 2483 2483 VbglHGCMParmUInt32Set(&Msg.reply_hdr.type, GUEST_DIR_NOTIFYTYPE_READ); 2484 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, uRc);2484 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, (uint32_t)rc); 2485 2485 2486 2486 VbglHGCMParmPtrSet (&Msg.u.read.entry, pEntry, cbSize); … … 2497 2497 * @returns VBox status code. 2498 2498 * @param pCtx Guest control command context to use. 2499 * @param uRcGuest rc of operation (note: IPRT-style signed int).2499 * @param rc Guest rc of operation (note: IPRT-style signed int). 2500 2500 * @param pEntry Directory entry to send. 2501 2501 * @param cbSize Size (in bytes) of the OFFSET(GSTCTLDIRENTRYEX, szName[pEntry->cbName + 1]). 2502 2502 * See RTDirReadEx() for more information. 2503 2503 */ 2504 VBGLR3DECL(int) VbglR3GuestCtrlDirCbRead(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, PGSTCTLDIRENTRYEX pEntry, uint32_t cbSize)2504 VBGLR3DECL(int) VbglR3GuestCtrlDirCbRead(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLDIRENTRYEX pEntry, uint32_t cbSize) 2505 2505 { 2506 2506 char szIgnored[1] = { 0 }; 2507 return VbglR3GuestCtrlDirCbReadEx(pCtx, uRc, pEntry, cbSize, szIgnored /* pszUser */, szIgnored /* pszGroups */);2507 return VbglR3GuestCtrlDirCbReadEx(pCtx, rc, pEntry, cbSize, szIgnored /* pszUser */, szIgnored /* pszGroups */); 2508 2508 } 2509 2509 … … 2514 2514 * @returns VBox status code. 2515 2515 * @param pCtx Guest control command context to use. 2516 * @param uRcGuest rc of operation (note: IPRT-style signed int).2517 */ 2518 VBGLR3DECL(int) VbglR3GuestCtrlDirCbRewind(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc)2516 * @param rc Guest rc of operation (note: IPRT-style signed int). 2517 */ 2518 VBGLR3DECL(int) VbglR3GuestCtrlDirCbRewind(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc) 2519 2519 { 2520 2520 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 2524 2524 VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID); 2525 2525 VbglHGCMParmUInt32Set(&Msg.reply_hdr.type, GUEST_DIR_NOTIFYTYPE_REWIND); 2526 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, uRc);2526 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, (uint32_t)rc); 2527 2527 2528 2528 return VbglR3HGCMCall(&Msg.reply_hdr.hdr, RT_UOFFSET_AFTER(HGCMReplyDirNotify, u)); … … 2535 2535 * @returns VBox status code. 2536 2536 * @param pCtx Guest control command context to use. 2537 * @param uRcGuest rc of operation (note: IPRT-style signed int).2538 * @ þaram cEntries Number of directory entries to send.2537 * @param rc Guest rc of operation (note: IPRT-style signed int). 2538 * @param cEntries Number of directory entries to send. 2539 2539 * @param pvBuf Buffer of directory entries to send. 2540 2540 * @param cbBuf Size (in bytes) of \a pvBuf. 2541 2541 */ 2542 VBGLR3DECL(int) VbglR3GuestCtrlDirCbList(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc,2542 VBGLR3DECL(int) VbglR3GuestCtrlDirCbList(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, 2543 2543 uint32_t cEntries, void *pvBuf, uint32_t cbBuf) 2544 2544 { … … 2549 2549 VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID); 2550 2550 VbglHGCMParmUInt32Set(&Msg.reply_hdr.type, GUEST_DIR_NOTIFYTYPE_LIST); 2551 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, uRc);2551 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, (uint32_t)rc); 2552 2552 2553 2553 VbglHGCMParmUInt32Set(&Msg.u.list.num_entries, cEntries); … … 2568 2568 * @returns VBox status code. 2569 2569 * @param pCtx Guest control command context to use. 2570 * @param uRcGuest rc of operation (note: IPRT-style signed int).2570 * @param rc Guest rc of operation (note: IPRT-style signed int). 2571 2571 * @param uFileHandle File handle of opened file on success. 2572 2572 */ 2573 2573 VBGLR3DECL(int) VbglR3GuestCtrlFileCbOpen(PVBGLR3GUESTCTRLCMDCTX pCtx, 2574 uint32_t uRc, uint32_t uFileHandle)2574 int rc, uint32_t uFileHandle) 2575 2575 { 2576 2576 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 2580 2580 VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID); 2581 2581 VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_OPEN); 2582 VbglHGCMParmUInt32Set(&Msg.rc, uRc);2582 VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc); 2583 2583 VbglHGCMParmUInt32Set(&Msg.u.open.handle, uFileHandle); 2584 2584 … … 2592 2592 * @returns VBox status code. 2593 2593 * @param pCtx Guest control command context to use. 2594 * @param uRc Guest rc of operation (note: IPRT-style signed int). 2595 */ 2596 VBGLR3DECL(int) VbglR3GuestCtrlFileCbClose(PVBGLR3GUESTCTRLCMDCTX pCtx, 2597 uint32_t uRc) 2594 * @param rc Guest rc of operation (note: IPRT-style signed int). 2595 */ 2596 VBGLR3DECL(int) VbglR3GuestCtrlFileCbClose(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc) 2598 2597 { 2599 2598 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 2603 2602 VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID); 2604 2603 VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_CLOSE); 2605 VbglHGCMParmUInt32Set(&Msg.rc, uRc);2604 VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc); 2606 2605 2607 2606 return VbglR3HGCMCall(&Msg.hdr, RT_UOFFSETOF(HGCMReplyFileNotify, u)); … … 2614 2613 * @returns VBox status code. 2615 2614 * @param pCtx Guest control command context to use. 2616 * @param uRcGuest rc of operation (note: IPRT-style signed int).2617 */ 2618 VBGLR3DECL(int) VbglR3GuestCtrlFileCbError(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc)2615 * @param rc Guest rc of operation (note: IPRT-style signed int). 2616 */ 2617 VBGLR3DECL(int) VbglR3GuestCtrlFileCbError(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc) 2619 2618 { 2620 2619 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 2624 2623 VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID); 2625 2624 VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_ERROR); 2626 VbglHGCMParmUInt32Set(&Msg.rc, uRc);2625 VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc); 2627 2626 2628 2627 return VbglR3HGCMCall(&Msg.hdr, RT_UOFFSETOF(HGCMReplyFileNotify, u)); … … 2635 2634 * @returns VBox status code. 2636 2635 * @param pCtx Guest control command context to use. 2637 * @param uRcGuest rc of operation (note: IPRT-style signed int).2636 * @param rc Guest rc of operation (note: IPRT-style signed int). 2638 2637 * @param pvData Pointer to read file data from guest on success. 2639 2638 * @param cbData Size (in bytes) of read file data from guest on success. 2640 2639 */ 2641 2640 VBGLR3DECL(int) VbglR3GuestCtrlFileCbRead(PVBGLR3GUESTCTRLCMDCTX pCtx, 2642 uint32_t uRc,2641 int rc, 2643 2642 void *pvData, uint32_t cbData) 2644 2643 { … … 2649 2648 VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID); 2650 2649 VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_READ); 2651 VbglHGCMParmUInt32Set(&Msg.rc, uRc);2650 VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc); 2652 2651 VbglHGCMParmPtrSet(&Msg.u.read.data, pvData, cbData); 2653 2652 … … 2661 2660 * @returns VBox status code. 2662 2661 * @param pCtx Guest control command context to use. 2663 * @param uRcGuest rc of operation (note: IPRT-style signed int).2662 * @param rc Guest rc of operation (note: IPRT-style signed int). 2664 2663 * @param pvData Pointer to read file data from guest on success. 2665 2664 * @param cbData Size (in bytes) of read file data from guest on success. 2666 2665 * @param offNew New offset (in bytes) the guest file pointer points at on success. 2667 2666 */ 2668 VBGLR3DECL(int) VbglR3GuestCtrlFileCbReadOffset(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc,2667 VBGLR3DECL(int) VbglR3GuestCtrlFileCbReadOffset(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, 2669 2668 void *pvData, uint32_t cbData, int64_t offNew) 2670 2669 { … … 2675 2674 VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID); 2676 2675 VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_READ_OFFSET); 2677 VbglHGCMParmUInt32Set(&Msg.rc, uRc);2676 VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc); 2678 2677 VbglHGCMParmPtrSet(&Msg.u.ReadOffset.pvData, pvData, cbData); 2679 2678 VbglHGCMParmUInt64Set(&Msg.u.ReadOffset.off64New, (uint64_t)offNew); … … 2688 2687 * @returns VBox status code. 2689 2688 * @param pCtx Guest control command context to use. 2690 * @param uRcGuest rc of operation (note: IPRT-style signed int).2689 * @param rc Guest rc of operation (note: IPRT-style signed int). 2691 2690 * @param cbWritten Size (in bytes) of file data successfully written to guest file. Can be partial. 2692 2691 */ 2693 VBGLR3DECL(int) VbglR3GuestCtrlFileCbWrite(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint32_t cbWritten)2692 VBGLR3DECL(int) VbglR3GuestCtrlFileCbWrite(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t cbWritten) 2694 2693 { 2695 2694 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 2699 2698 VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID); 2700 2699 VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_WRITE); 2701 VbglHGCMParmUInt32Set(&Msg.rc, uRc);2700 VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc); 2702 2701 VbglHGCMParmUInt32Set(&Msg.u.write.written, cbWritten); 2703 2702 … … 2711 2710 * @returns VBox status code. 2712 2711 * @param pCtx Guest control command context to use. 2713 * @param uRcGuest rc of operation (note: IPRT-style signed int).2712 * @param rc Guest rc of operation (note: IPRT-style signed int). 2714 2713 * @param cbWritten Size (in bytes) of file data successfully written to guest file. Can be partial. 2715 2714 * @param offNew New offset (in bytes) the guest file pointer points at on success. 2716 2715 */ 2717 VBGLR3DECL(int) VbglR3GuestCtrlFileCbWriteOffset(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint32_t cbWritten, int64_t offNew)2716 VBGLR3DECL(int) VbglR3GuestCtrlFileCbWriteOffset(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t cbWritten, int64_t offNew) 2718 2717 { 2719 2718 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 2723 2722 VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID); 2724 2723 VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_WRITE_OFFSET); 2725 VbglHGCMParmUInt32Set(&Msg.rc, uRc);2724 VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc); 2726 2725 VbglHGCMParmUInt32Set(&Msg.u.WriteOffset.cb32Written, cbWritten); 2727 2726 VbglHGCMParmUInt64Set(&Msg.u.WriteOffset.off64New, (uint64_t)offNew); … … 2736 2735 * @returns VBox status code. 2737 2736 * @param pCtx Guest control command context to use. 2738 * @param uRcGuest rc of operation (note: IPRT-style signed int).2737 * @param rc Guest rc of operation (note: IPRT-style signed int). 2739 2738 * @param offCurrent New offset (in bytes) the guest file pointer points at on success. 2740 2739 */ 2741 VBGLR3DECL(int) VbglR3GuestCtrlFileCbSeek(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint64_t offCurrent)2740 VBGLR3DECL(int) VbglR3GuestCtrlFileCbSeek(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint64_t offCurrent) 2742 2741 { 2743 2742 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 2747 2746 VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID); 2748 2747 VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_SEEK); 2749 VbglHGCMParmUInt32Set(&Msg.rc, uRc);2748 VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc); 2750 2749 VbglHGCMParmUInt64Set(&Msg.u.seek.offset, offCurrent); 2751 2750 … … 2759 2758 * @returns VBox status code. 2760 2759 * @param pCtx Guest control command context to use. 2761 * @param uRcGuest rc of operation (note: IPRT-style signed int).2760 * @param rc Guest rc of operation (note: IPRT-style signed int). 2762 2761 * @param offCurrent Current offset (in bytes) the guest file pointer points at on success. 2763 2762 */ 2764 VBGLR3DECL(int) VbglR3GuestCtrlFileCbTell(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint64_t offCurrent)2763 VBGLR3DECL(int) VbglR3GuestCtrlFileCbTell(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint64_t offCurrent) 2765 2764 { 2766 2765 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 2770 2769 VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID); 2771 2770 VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_TELL); 2772 VbglHGCMParmUInt32Set(&Msg.rc, uRc);2771 VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc); 2773 2772 VbglHGCMParmUInt64Set(&Msg.u.tell.offset, offCurrent); 2774 2773 … … 2782 2781 * @returns VBox status code. 2783 2782 * @param pCtx Guest control command context to use. 2784 * @param uRcGuest rc of operation (note: IPRT-style signed int).2783 * @param rc Guest rc of operation (note: IPRT-style signed int). 2785 2784 * @param cbNew New file size (in bytes) of the guest file on success. 2786 2785 */ 2787 VBGLR3DECL(int) VbglR3GuestCtrlFileCbSetSize(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint64_t cbNew)2786 VBGLR3DECL(int) VbglR3GuestCtrlFileCbSetSize(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint64_t cbNew) 2788 2787 { 2789 2788 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 2793 2792 VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID); 2794 2793 VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_SET_SIZE); 2795 VbglHGCMParmUInt32Set(&Msg.rc, uRc);2794 VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc); 2796 2795 VbglHGCMParmUInt64Set(&Msg.u.SetSize.cb64Size, cbNew); 2797 2796 … … 2810 2809 * @returns VBox status code. 2811 2810 * @param pCtx Guest control command context to use. 2812 * @param uRcGuest rc of operation (note: IPRT-style signed int).2811 * @param rc Guest rc of operation (note: IPRT-style signed int). 2813 2812 * @param pFsObjInfo Guest file system object information to send. 2814 2813 * @param pszUser Associated user ID (owner, uid) as a string. … … 2817 2816 * whereas the first group always is the primary group. 2818 2817 */ 2819 VBGLR3DECL(int) VbglR3GuestCtrlFsObjCbQueryInfoEx(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, PGSTCTLFSOBJINFO pFsObjInfo,2818 VBGLR3DECL(int) VbglR3GuestCtrlFsObjCbQueryInfoEx(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLFSOBJINFO pFsObjInfo, 2820 2819 const char *pszUser, const char *pszGroups) 2821 2820 { … … 2829 2828 VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID); 2830 2829 VbglHGCMParmUInt32Set(&Msg.reply_hdr.type, GUEST_FS_NOTIFYTYPE_QUERY_OBJ_INFO); 2831 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, uRc);2830 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, (uint32_t)rc); 2832 2831 2833 2832 VbglHGCMParmPtrSet (&Msg.u.queryobjinfo.obj_info, pFsObjInfo, sizeof(GSTCTLFSOBJINFO)); … … 2844 2843 * @returns VBox status code. 2845 2844 * @param pCtx Guest control command context to use. 2846 * @param uRcGuest rc of operation (note: IPRT-style signed int).2845 * @param rc Guest rc of operation (note: IPRT-style signed int). 2847 2846 * @param pFsObjInfo Guest file system object information to send. 2848 2847 */ 2849 VBGLR3DECL(int) VbglR3GuestCtrlFsObjCbQueryInfo(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, PGSTCTLFSOBJINFO pFsObjInfo)2848 VBGLR3DECL(int) VbglR3GuestCtrlFsObjCbQueryInfo(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLFSOBJINFO pFsObjInfo) 2850 2849 { 2851 2850 char szIgnored[1] = { 0 }; 2852 return VbglR3GuestCtrlFsObjCbQueryInfoEx(pCtx, uRc, pFsObjInfo, szIgnored /* pszUser */, szIgnored /* pszGroups */);2851 return VbglR3GuestCtrlFsObjCbQueryInfoEx(pCtx, rc, pFsObjInfo, szIgnored /* pszUser */, szIgnored /* pszGroups */); 2853 2852 } 2854 2853 … … 2859 2858 * @returns VBox status code. 2860 2859 * @param pCtx Guest control command context to use. 2861 * @param uRcGuest rc of operation (note: IPRT-style signed int).2862 * @param pszPath Path of created temporary file / directory, if \a uRc marks a success.2860 * @param rc Guest rc of operation (note: IPRT-style signed int). 2861 * @param pszPath Path of created temporary file / directory, if \a rc marks a success. 2863 2862 * Specify an empty path on failure -- NULL is not allowed! 2864 2863 */ 2865 VBGLR3DECL(int) VbglR3GuestCtrlFsCbCreateTemp(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, const char *pszPath)2864 VBGLR3DECL(int) VbglR3GuestCtrlFsCbCreateTemp(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, const char *pszPath) 2866 2865 { 2867 2866 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 2872 2871 VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID); 2873 2872 VbglHGCMParmUInt32Set(&Msg.reply_hdr.type, GUEST_FS_NOTIFYTYPE_CREATE_TEMP); 2874 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, uRc);2873 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, (uint32_t)rc); 2875 2874 2876 2875 VbglHGCMParmPtrSetString(&Msg.u.createtemp.path, pszPath); … … 2884 2883 * @returns VBox status code. 2885 2884 * @param pCtx Guest control command context to use. 2886 * @param uRcGuest rc of operation (note: IPRT-style signed int).2885 * @param rc Guest rc of operation (note: IPRT-style signed int). 2887 2886 * @param pFsInfo File system information to return. 2888 2887 * @param cbFsInfo Size (in bytes) of \a pFsInfo. 2889 2888 */ 2890 VBGLR3DECL(int) VbglR3GuestCtrlFsCbQueryInfo(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, PGSTCTLFSINFO pFsInfo, uint32_t cbFsInfo)2889 VBGLR3DECL(int) VbglR3GuestCtrlFsCbQueryInfo(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLFSINFO pFsInfo, uint32_t cbFsInfo) 2891 2890 { 2892 2891 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 2898 2897 VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID); 2899 2898 VbglHGCMParmUInt32Set(&Msg.reply_hdr.type, GUEST_FS_NOTIFYTYPE_QUERY_INFO); 2900 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, uRc);2899 VbglHGCMParmUInt32Set(&Msg.reply_hdr.rc, (uint32_t)rc); 2901 2900 2902 2901 VbglHGCMParmPtrSet(&Msg.u.queryinfo.fs_info, pFsInfo, cbFsInfo);
Note:
See TracChangeset
for help on using the changeset viewer.