VirtualBox

Changeset 107653 in vbox for trunk


Ignore:
Timestamp:
Jan 10, 2025 1:45:03 PM (3 weeks ago)
Author:
vboxsync
Message:

src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp + VBoxGuestLib.h: Fixed warnings found by Parfait (change of signedness on implicit conversion). jiraref:VBP-1424

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxGuestLib.h

    r106061 r107653  
    11601160 * @{
    11611161 */
    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);
     1162VBGLR3DECL(int) VbglR3GuestCtrlDirCbOpen(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t uFileHandle);
     1163VBGLR3DECL(int) VbglR3GuestCtrlDirCbClose(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc);
     1164VBGLR3DECL(int) VbglR3GuestCtrlDirCbReadEx(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLDIRENTRYEX pEntry, uint32_t cbSize, const char *pszUser, const char *pszGroups);
     1165VBGLR3DECL(int) VbglR3GuestCtrlDirCbRead(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLDIRENTRYEX pEntry, uint32_t cbSize);
     1166VBGLR3DECL(int) VbglR3GuestCtrlDirCbRewind(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc);
     1167VBGLR3DECL(int) VbglR3GuestCtrlDirCbList(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t cEntries, void *pvBuf, uint32_t cbBuf);
    11681168/** @} */
    11691169#  endif /* VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS */
    11701170
    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);
     1171VBGLR3DECL(int) VbglR3GuestCtrlFileCbOpen(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t uFileHandle);
     1172VBGLR3DECL(int) VbglR3GuestCtrlFileCbClose(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc);
     1173VBGLR3DECL(int) VbglR3GuestCtrlFileCbError(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc);
     1174VBGLR3DECL(int) VbglR3GuestCtrlFileCbRead(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, void *pvData, uint32_t cbData);
     1175VBGLR3DECL(int) VbglR3GuestCtrlFileCbReadOffset(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, void *pvData, uint32_t cbData, int64_t offNew);
     1176VBGLR3DECL(int) VbglR3GuestCtrlFileCbWrite(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t cbWritten);
     1177VBGLR3DECL(int) VbglR3GuestCtrlFileCbWriteOffset(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t cbWritten, int64_t offNew);
     1178
     1179VBGLR3DECL(int) VbglR3GuestCtrlFileCbSeek(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint64_t offCurrent);
     1180VBGLR3DECL(int) VbglR3GuestCtrlFileCbTell(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint64_t offCurrent);
     1181VBGLR3DECL(int) VbglR3GuestCtrlFileCbSetSize(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint64_t cbNew);
    11821182
    11831183#  ifdef VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS
     
    11851185 * @{
    11861186 */
    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);
     1187VBGLR3DECL(int) VbglR3GuestCtrlFsCbCreateTemp(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, const char *pszPath);
     1188VBGLR3DECL(int) VbglR3GuestCtrlFsCbQueryInfo(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLFSINFO pFsInfo, uint32_t cbFsInfo);
    11891189/** @} */
    11901190
     
    11921192 * @{
    11931193 */
    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);
     1194VBGLR3DECL(int) VbglR3GuestCtrlFsObjCbQueryInfoEx(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLFSOBJINFO pObjInfo, const char *pszUser, const char *pszGroups);
     1195VBGLR3DECL(int) VbglR3GuestCtrlFsObjCbQueryInfo(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLFSOBJINFO pObjInfo);
    11961196/** @} */
    11971197#  endif /* VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS */
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp

    r106061 r107653  
    24192419 * @returns VBox status code.
    24202420 * @param   pCtx                Guest control command context to use.
    2421  * @param   uRc                 Guest rc of operation (note: IPRT-style signed int).
     2421 * @param   rc                  Guest rc of operation (note: IPRT-style signed int).
    24222422 * @param   uDirHandle          Directory handle of opened directory.
    24232423 */
    2424 VBGLR3DECL(int) VbglR3GuestCtrlDirCbOpen(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint32_t uDirHandle)
     2424VBGLR3DECL(int) VbglR3GuestCtrlDirCbOpen(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t uDirHandle)
    24252425{
    24262426    AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
     
    24302430    VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID);
    24312431    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);
    24332433
    24342434    VbglHGCMParmUInt32Set(&Msg.u.open.handle, uDirHandle);
     
    24432443 * @returns VBox status code.
    24442444 * @param   pCtx                Guest control command context to use.
    2445  * @param   uRc                 Guest 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 */
     2447VBGLR3DECL(int) VbglR3GuestCtrlDirCbClose(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc)
    24482448{
    24492449    AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
     
    24532453    VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID);
    24542454    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);
    24562456
    24572457    return VbglR3HGCMCall(&Msg.reply_hdr.hdr, RT_UOFFSET_AFTER(HGCMReplyDirNotify, reply_hdr));
     
    24642464 * @returns VBox status code.
    24652465 * @param   pCtx                Guest control command context to use.
    2466  * @param   uRc                 Guest rc of operation (note: IPRT-style signed int).
     2466 * @param   rc                  Guest rc of operation (note: IPRT-style signed int).
    24672467 * @param   pEntry              Directory entry to send.
    24682468 * @param   cbSize              Size (in bytes) of the OFFSET(GSTCTLDIRENTRYEX, szName[pEntry->cbName + 1]).
     
    24732473 *                              whereas the first group always is the primary group.
    24742474 */
    2475 VBGLR3DECL(int) VbglR3GuestCtrlDirCbReadEx(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, PGSTCTLDIRENTRYEX pEntry, uint32_t cbSize,
     2475VBGLR3DECL(int) VbglR3GuestCtrlDirCbReadEx(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLDIRENTRYEX pEntry, uint32_t cbSize,
    24762476                                           const char *pszUser, const char *pszGroups)
    24772477{
     
    24822482    VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID);
    24832483    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);
    24852485
    24862486    VbglHGCMParmPtrSet      (&Msg.u.read.entry,   pEntry, cbSize);
     
    24972497 * @returns VBox status code.
    24982498 * @param   pCtx                Guest control command context to use.
    2499  * @param   uRc                 Guest rc of operation (note: IPRT-style signed int).
     2499 * @param   rc                  Guest rc of operation (note: IPRT-style signed int).
    25002500 * @param   pEntry              Directory entry to send.
    25012501 * @param   cbSize              Size (in bytes) of the OFFSET(GSTCTLDIRENTRYEX, szName[pEntry->cbName + 1]).
    25022502 *                              See RTDirReadEx() for more information.
    25032503 */
    2504 VBGLR3DECL(int) VbglR3GuestCtrlDirCbRead(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, PGSTCTLDIRENTRYEX pEntry, uint32_t cbSize)
     2504VBGLR3DECL(int) VbglR3GuestCtrlDirCbRead(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLDIRENTRYEX pEntry, uint32_t cbSize)
    25052505{
    25062506    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 */);
    25082508}
    25092509
     
    25142514 * @returns VBox status code.
    25152515 * @param   pCtx                Guest control command context to use.
    2516  * @param   uRc                 Guest 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 */
     2518VBGLR3DECL(int) VbglR3GuestCtrlDirCbRewind(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc)
    25192519{
    25202520    AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
     
    25242524    VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID);
    25252525    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);
    25272527
    25282528    return VbglR3HGCMCall(&Msg.reply_hdr.hdr, RT_UOFFSET_AFTER(HGCMReplyDirNotify, u));
     
    25352535 * @returns VBox status code.
    25362536 * @param   pCtx                Guest control command context to use.
    2537  * @param   uRc                 Guest 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.
    25392539 * @param   pvBuf               Buffer of directory entries to send.
    25402540 * @param   cbBuf               Size (in bytes) of \a pvBuf.
    25412541 */
    2542 VBGLR3DECL(int) VbglR3GuestCtrlDirCbList(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc,
     2542VBGLR3DECL(int) VbglR3GuestCtrlDirCbList(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc,
    25432543                                         uint32_t cEntries, void *pvBuf, uint32_t cbBuf)
    25442544{
     
    25492549    VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID);
    25502550    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);
    25522552
    25532553    VbglHGCMParmUInt32Set(&Msg.u.list.num_entries, cEntries);
     
    25682568 * @returns VBox status code.
    25692569 * @param   pCtx                Guest control command context to use.
    2570  * @param   uRc                 Guest rc of operation (note: IPRT-style signed int).
     2570 * @param   rc                  Guest rc of operation (note: IPRT-style signed int).
    25712571 * @param   uFileHandle         File handle of opened file on success.
    25722572 */
    25732573VBGLR3DECL(int) VbglR3GuestCtrlFileCbOpen(PVBGLR3GUESTCTRLCMDCTX pCtx,
    2574                                           uint32_t uRc, uint32_t uFileHandle)
     2574                                          int rc, uint32_t uFileHandle)
    25752575{
    25762576    AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
     
    25802580    VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID);
    25812581    VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_OPEN);
    2582     VbglHGCMParmUInt32Set(&Msg.rc, uRc);
     2582    VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc);
    25832583    VbglHGCMParmUInt32Set(&Msg.u.open.handle, uFileHandle);
    25842584
     
    25922592 * @returns VBox status code.
    25932593 * @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 */
     2596VBGLR3DECL(int) VbglR3GuestCtrlFileCbClose(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc)
    25982597{
    25992598    AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
     
    26032602    VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID);
    26042603    VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_CLOSE);
    2605     VbglHGCMParmUInt32Set(&Msg.rc, uRc);
     2604    VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc);
    26062605
    26072606    return VbglR3HGCMCall(&Msg.hdr, RT_UOFFSETOF(HGCMReplyFileNotify, u));
     
    26142613 * @returns VBox status code.
    26152614 * @param   pCtx                Guest control command context to use.
    2616  * @param   uRc                 Guest 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 */
     2617VBGLR3DECL(int) VbglR3GuestCtrlFileCbError(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc)
    26192618{
    26202619    AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
     
    26242623    VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID);
    26252624    VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_ERROR);
    2626     VbglHGCMParmUInt32Set(&Msg.rc, uRc);
     2625    VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc);
    26272626
    26282627    return VbglR3HGCMCall(&Msg.hdr, RT_UOFFSETOF(HGCMReplyFileNotify, u));
     
    26352634 * @returns VBox status code.
    26362635 * @param   pCtx                Guest control command context to use.
    2637  * @param   uRc                 Guest rc of operation (note: IPRT-style signed int).
     2636 * @param   rc                  Guest rc of operation (note: IPRT-style signed int).
    26382637 * @param   pvData              Pointer to read file data from guest on success.
    26392638 * @param   cbData              Size (in bytes) of read file data from guest on success.
    26402639 */
    26412640VBGLR3DECL(int) VbglR3GuestCtrlFileCbRead(PVBGLR3GUESTCTRLCMDCTX pCtx,
    2642                                           uint32_t uRc,
     2641                                          int rc,
    26432642                                          void *pvData, uint32_t cbData)
    26442643{
     
    26492648    VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID);
    26502649    VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_READ);
    2651     VbglHGCMParmUInt32Set(&Msg.rc, uRc);
     2650    VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc);
    26522651    VbglHGCMParmPtrSet(&Msg.u.read.data, pvData, cbData);
    26532652
     
    26612660 * @returns VBox status code.
    26622661 * @param   pCtx                Guest control command context to use.
    2663  * @param   uRc                 Guest rc of operation (note: IPRT-style signed int).
     2662 * @param   rc                  Guest rc of operation (note: IPRT-style signed int).
    26642663 * @param   pvData              Pointer to read file data from guest on success.
    26652664 * @param   cbData              Size (in bytes) of read file data from guest on success.
    26662665 * @param   offNew              New offset (in bytes) the guest file pointer points at on success.
    26672666 */
    2668 VBGLR3DECL(int) VbglR3GuestCtrlFileCbReadOffset(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc,
     2667VBGLR3DECL(int) VbglR3GuestCtrlFileCbReadOffset(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc,
    26692668                                                void *pvData, uint32_t cbData, int64_t offNew)
    26702669{
     
    26752674    VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID);
    26762675    VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_READ_OFFSET);
    2677     VbglHGCMParmUInt32Set(&Msg.rc, uRc);
     2676    VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc);
    26782677    VbglHGCMParmPtrSet(&Msg.u.ReadOffset.pvData, pvData, cbData);
    26792678    VbglHGCMParmUInt64Set(&Msg.u.ReadOffset.off64New, (uint64_t)offNew);
     
    26882687 * @returns VBox status code.
    26892688 * @param   pCtx                Guest control command context to use.
    2690  * @param   uRc                 Guest rc of operation (note: IPRT-style signed int).
     2689 * @param   rc                  Guest rc of operation (note: IPRT-style signed int).
    26912690 * @param   cbWritten           Size (in bytes) of file data successfully written to guest file. Can be partial.
    26922691 */
    2693 VBGLR3DECL(int) VbglR3GuestCtrlFileCbWrite(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint32_t cbWritten)
     2692VBGLR3DECL(int) VbglR3GuestCtrlFileCbWrite(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t cbWritten)
    26942693{
    26952694    AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
     
    26992698    VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID);
    27002699    VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_WRITE);
    2701     VbglHGCMParmUInt32Set(&Msg.rc, uRc);
     2700    VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc);
    27022701    VbglHGCMParmUInt32Set(&Msg.u.write.written, cbWritten);
    27032702
     
    27112710 * @returns VBox status code.
    27122711 * @param   pCtx                Guest control command context to use.
    2713  * @param   uRc                 Guest rc of operation (note: IPRT-style signed int).
     2712 * @param   rc                  Guest rc of operation (note: IPRT-style signed int).
    27142713 * @param   cbWritten           Size (in bytes) of file data successfully written to guest file. Can be partial.
    27152714 * @param   offNew              New offset (in bytes) the guest file pointer points at on success.
    27162715 */
    2717 VBGLR3DECL(int) VbglR3GuestCtrlFileCbWriteOffset(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint32_t cbWritten, int64_t offNew)
     2716VBGLR3DECL(int) VbglR3GuestCtrlFileCbWriteOffset(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint32_t cbWritten, int64_t offNew)
    27182717{
    27192718    AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
     
    27232722    VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID);
    27242723    VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_WRITE_OFFSET);
    2725     VbglHGCMParmUInt32Set(&Msg.rc, uRc);
     2724    VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc);
    27262725    VbglHGCMParmUInt32Set(&Msg.u.WriteOffset.cb32Written, cbWritten);
    27272726    VbglHGCMParmUInt64Set(&Msg.u.WriteOffset.off64New, (uint64_t)offNew);
     
    27362735 * @returns VBox status code.
    27372736 * @param   pCtx                Guest control command context to use.
    2738  * @param   uRc                 Guest rc of operation (note: IPRT-style signed int).
     2737 * @param   rc                  Guest rc of operation (note: IPRT-style signed int).
    27392738 * @param   offCurrent          New offset (in bytes) the guest file pointer points at on success.
    27402739 */
    2741 VBGLR3DECL(int) VbglR3GuestCtrlFileCbSeek(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint64_t offCurrent)
     2740VBGLR3DECL(int) VbglR3GuestCtrlFileCbSeek(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint64_t offCurrent)
    27422741{
    27432742    AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
     
    27472746    VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID);
    27482747    VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_SEEK);
    2749     VbglHGCMParmUInt32Set(&Msg.rc, uRc);
     2748    VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc);
    27502749    VbglHGCMParmUInt64Set(&Msg.u.seek.offset, offCurrent);
    27512750
     
    27592758 * @returns VBox status code.
    27602759 * @param   pCtx                Guest control command context to use.
    2761  * @param   uRc                 Guest rc of operation (note: IPRT-style signed int).
     2760 * @param   rc                  Guest rc of operation (note: IPRT-style signed int).
    27622761 * @param   offCurrent          Current offset (in bytes) the guest file pointer points at on success.
    27632762 */
    2764 VBGLR3DECL(int) VbglR3GuestCtrlFileCbTell(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint64_t offCurrent)
     2763VBGLR3DECL(int) VbglR3GuestCtrlFileCbTell(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint64_t offCurrent)
    27652764{
    27662765    AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
     
    27702769    VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID);
    27712770    VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_TELL);
    2772     VbglHGCMParmUInt32Set(&Msg.rc, uRc);
     2771    VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc);
    27732772    VbglHGCMParmUInt64Set(&Msg.u.tell.offset, offCurrent);
    27742773
     
    27822781 * @returns VBox status code.
    27832782 * @param   pCtx                Guest control command context to use.
    2784  * @param   uRc                 Guest rc of operation (note: IPRT-style signed int).
     2783 * @param   rc                  Guest rc of operation (note: IPRT-style signed int).
    27852784 * @param   cbNew               New file size (in bytes) of the guest file on success.
    27862785 */
    2787 VBGLR3DECL(int) VbglR3GuestCtrlFileCbSetSize(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, uint64_t cbNew)
     2786VBGLR3DECL(int) VbglR3GuestCtrlFileCbSetSize(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, uint64_t cbNew)
    27882787{
    27892788    AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
     
    27932792    VbglHGCMParmUInt32Set(&Msg.context, pCtx->uContextID);
    27942793    VbglHGCMParmUInt32Set(&Msg.type, GUEST_FILE_NOTIFYTYPE_SET_SIZE);
    2795     VbglHGCMParmUInt32Set(&Msg.rc, uRc);
     2794    VbglHGCMParmUInt32Set(&Msg.rc, (uint32_t)rc);
    27962795    VbglHGCMParmUInt64Set(&Msg.u.SetSize.cb64Size, cbNew);
    27972796
     
    28102809 * @returns VBox status code.
    28112810 * @param   pCtx                Guest control command context to use.
    2812  * @param   uRc                 Guest rc of operation (note: IPRT-style signed int).
     2811 * @param   rc                  Guest rc of operation (note: IPRT-style signed int).
    28132812 * @param   pFsObjInfo          Guest file system object information to send.
    28142813 * @param   pszUser             Associated user ID (owner, uid) as a string.
     
    28172816 *                              whereas the first group always is the primary group.
    28182817 */
    2819 VBGLR3DECL(int) VbglR3GuestCtrlFsObjCbQueryInfoEx(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, PGSTCTLFSOBJINFO pFsObjInfo,
     2818VBGLR3DECL(int) VbglR3GuestCtrlFsObjCbQueryInfoEx(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLFSOBJINFO pFsObjInfo,
    28202819                                                  const char *pszUser, const char *pszGroups)
    28212820{
     
    28292828    VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID);
    28302829    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);
    28322831
    28332832    VbglHGCMParmPtrSet      (&Msg.u.queryobjinfo.obj_info, pFsObjInfo, sizeof(GSTCTLFSOBJINFO));
     
    28442843 * @returns VBox status code.
    28452844 * @param   pCtx                Guest control command context to use.
    2846  * @param   uRc                 Guest rc of operation (note: IPRT-style signed int).
     2845 * @param   rc                  Guest rc of operation (note: IPRT-style signed int).
    28472846 * @param   pFsObjInfo          Guest file system object information to send.
    28482847 */
    2849 VBGLR3DECL(int) VbglR3GuestCtrlFsObjCbQueryInfo(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, PGSTCTLFSOBJINFO pFsObjInfo)
     2848VBGLR3DECL(int) VbglR3GuestCtrlFsObjCbQueryInfo(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLFSOBJINFO pFsObjInfo)
    28502849{
    28512850    char szIgnored[1] = { 0 };
    2852     return VbglR3GuestCtrlFsObjCbQueryInfoEx(pCtx, uRc, pFsObjInfo, szIgnored /* pszUser */, szIgnored /* pszGroups */);
     2851    return VbglR3GuestCtrlFsObjCbQueryInfoEx(pCtx, rc, pFsObjInfo, szIgnored /* pszUser */, szIgnored /* pszGroups */);
    28532852}
    28542853
     
    28592858 * @returns VBox status code.
    28602859 * @param   pCtx                Guest control command context to use.
    2861  * @param   uRc                 Guest 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.
    28632862 *                              Specify an empty path on failure -- NULL is not allowed!
    28642863 */
    2865 VBGLR3DECL(int) VbglR3GuestCtrlFsCbCreateTemp(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, const char *pszPath)
     2864VBGLR3DECL(int) VbglR3GuestCtrlFsCbCreateTemp(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, const char *pszPath)
    28662865{
    28672866    AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
     
    28722871    VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID);
    28732872    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);
    28752874
    28762875    VbglHGCMParmPtrSetString(&Msg.u.createtemp.path, pszPath);
     
    28842883 * @returns VBox status code.
    28852884 * @param   pCtx                Guest control command context to use.
    2886  * @param   uRc                 Guest rc of operation (note: IPRT-style signed int).
     2885 * @param   rc                  Guest rc of operation (note: IPRT-style signed int).
    28872886 * @param   pFsInfo             File system information to return.
    28882887 * @param   cbFsInfo            Size (in bytes) of \a pFsInfo.
    28892888 */
    2890 VBGLR3DECL(int) VbglR3GuestCtrlFsCbQueryInfo(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t uRc, PGSTCTLFSINFO pFsInfo, uint32_t cbFsInfo)
     2889VBGLR3DECL(int) VbglR3GuestCtrlFsCbQueryInfo(PVBGLR3GUESTCTRLCMDCTX pCtx, int rc, PGSTCTLFSINFO pFsInfo, uint32_t cbFsInfo)
    28912890{
    28922891    AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
     
    28982897    VbglHGCMParmUInt32Set(&Msg.reply_hdr.context, pCtx->uContextID);
    28992898    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);
    29012900
    29022901    VbglHGCMParmPtrSet(&Msg.u.queryinfo.fs_info, pFsInfo, cbFsInfo);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette