VirtualBox

Ignore:
Timestamp:
Feb 10, 2023 3:10:50 PM (2 years ago)
Author:
vboxsync
Message:

Guest Control: Initial commit (work in progress, disabled by default). bugref:9783

IGuestDirectory:

Added new attributes id + status + an own event source. Also added for rewind support via rewind().

New event types for guest directory [un]registration, state changes and entry reads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestControl/VBoxGuestControlSvc.cpp

    r98103 r98526  
    7373#include <VBox/HostServices/GuestControlSvc.h>
    7474#include <VBox/GuestHost/GuestControl.h> /** @todo r=bird: Why two headers??? */
     75
     76#include "VBoxGuestControlSvc-internal.h"
    7577
    7678#include <VBox/err.h>
     
    16261628                        break;
    16271629                    case HOST_MSG_FILE_READ:
     1630                        RT_FALL_THROUGH();
    16281631                    case HOST_MSG_FILE_READ_AT:
    16291632                        HGCMSvcSetU32(&aReplyParams[1], GUEST_FILE_NOTIFYTYPE_READ);  /* type */
     
    16331636                        break;
    16341637                    case HOST_MSG_FILE_WRITE:
     1638                        RT_FALL_THROUGH();
    16351639                    case HOST_MSG_FILE_WRITE_AT:
    16361640                        HGCMSvcSetU32(&aReplyParams[1], GUEST_FILE_NOTIFYTYPE_WRITE); /* type */
     
    16571661                        hostCallback(GUEST_MSG_FILE_NOTIFY, 4, aReplyParams);
    16581662                        break;
    1659 
    1660                     case HOST_MSG_EXEC_GET_OUTPUT: /** @todo This can't be right/work. */
    1661                     case HOST_MSG_EXEC_TERMINATE:  /** @todo This can't be right/work. */
    1662                     case HOST_MSG_EXEC_WAIT_FOR:   /** @todo This can't be right/work. */
     1663#ifdef VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS
     1664                    case HOST_MSG_FS_QUERY_INFO:
     1665                        RT_FALL_THROUGH();
     1666                    case HOST_MSG_FS_CREATE_TEMP:
     1667                        RT_FALL_THROUGH();
     1668                    case HOST_MSG_FILE_REMOVE:
     1669                        RT_FALL_THROUGH();
     1670                    case HOST_MSG_DIR_OPEN:
     1671                        RT_FALL_THROUGH();
     1672                    case HOST_MSG_DIR_CLOSE:
     1673                        RT_FALL_THROUGH();
     1674                    case HOST_MSG_DIR_READ:
     1675                        RT_FALL_THROUGH();
     1676                    case HOST_MSG_DIR_REWIND:
     1677                        RT_FALL_THROUGH();
     1678                    case HOST_MSG_DIR_CREATE:
     1679                        RT_FALL_THROUGH();
     1680#endif /* VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS */
     1681                    case HOST_MSG_EXEC_GET_OUTPUT: /** @todo BUGBUG This can't be right/work. */
     1682                    case HOST_MSG_EXEC_TERMINATE:  /** @todo BUGBUG This can't be right/work. */
     1683                    case HOST_MSG_EXEC_WAIT_FOR:   /** @todo BUGBUG This can't be right/work. */
     1684                        break;
     1685                    case HOST_MSG_DIR_REMOVE:
     1686                        RT_FALL_THROUGH();
     1687                    case HOST_MSG_PATH_RENAME:
     1688                        RT_FALL_THROUGH();
    16631689                    case HOST_MSG_PATH_USER_DOCUMENTS:
     1690                        RT_FALL_THROUGH();
    16641691                    case HOST_MSG_PATH_USER_HOME:
    1665                     case HOST_MSG_PATH_RENAME:
    1666                     case HOST_MSG_DIR_REMOVE:
     1692                        RT_FALL_THROUGH();
    16671693                    default:
    16681694                        HGCMSvcSetU32(&aReplyParams[1], pFirstMsg->mType);
     
    26102636    return rc;
    26112637}
    2612 
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