VirtualBox

Changeset 99295 in vbox for trunk/src


Ignore:
Timestamp:
Apr 5, 2023 10:08:15 AM (22 months ago)
Author:
vboxsync
Message:

Guest Additions/Main: Return and document a dedicated error if I[Guest]Directory::list() is not supported by the installed Guest Additions. bugref:9783

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r99262 r99295  
    1648616486          No more directory entries to read.
    1648716487        </result>
     16488        <result name="VBOX_E_NOT_SUPPORTED">
     16489          Method not supported by installed Guest Additions.
     16490        </result>
    1648816491      </desc>
    1648916492      <param name="maxEntries" type="unsigned long" dir="in">
  • trunk/src/VBox/Main/src-client/GuestDirectoryImpl.cpp

    r99085 r99295  
    10081008 * @retval VERR_GSTCTL_GUEST_ERROR / VERR_NO_MORE_FILES if no more entries are available after this iteration.
    10091009 *         \a vecObjData will contain the rest of the entries then (if any).
     1010 * @retval VERR_NOT_SUPPORTED if the installed Guest Additions do not support this method.
    10101011 * @param  cMaxEntries          How many directory entries to read at max.
    10111012 * @param  fFlags               Flags of type GSTCTL_DIRLIST_F_XXX.
     
    11101111 * @retval VERR_GSTCTL_GUEST_ERROR / VERR_NO_MORE_FILES if no more entries are available after this iteration.
    11111112 *         \a vecObjData will contain the rest of the entries then (if any).
     1113 * @retval VERR_NOT_SUPPORTED if the installed Guest Additions do not support this method.
    11121114 * @param  cMaxEntries          How many directory entries to read at max.
    11131115 * @param  fFlags               Flags of type GSTCTL_DIRLIST_F_XXX.
     
    11551157 * @retval VERR_GSTCTL_GUEST_ERROR / VERR_NO_MORE_FILES if no more entries are available after this iteration.
    11561158 *         \a vecObjData will contain the rest of the entries then (if any).
     1159 * @retval VERR_NOT_SUPPORTED if the installed Guest Additions do not support this method.
    11571160 * @param  cMaxEntries          How many directory entries to read at max.
    11581161 * @param  vecObjInfo           Where to store the read directory entries on success.
     
    14751478                break;
    14761479            }
     1480
     1481            case VERR_NOT_SUPPORTED: /* Returned from i_list(). */
     1482                hrc = VBOX_E_NOT_SUPPORTED;
     1483                break;
    14771484
    14781485            default:
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