VirtualBox

Ignore:
Timestamp:
May 12, 2010 9:50:16 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61556
Message:

Guest Control/VBoxService: Added support for cancel pending (blocking) calls; added support for properly stopping + shutting down main thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HostServices/GuestControlSvc.h

    r28887 r29438  
    136136     * or starting a program.
    137137     */
    138     HOST_EXEC_CMD = 1,
     138    HOST_EXEC_CMD = 100,
    139139    /**
    140140     * Sends input data for stdin to a running process executed by HOST_EXEC_CMD.
    141141     */
    142     HOST_EXEC_SET_INPUT = 2,
     142    HOST_EXEC_SET_INPUT = 101,
    143143    /**
    144144     * Gets the current status of a running process, e.g.
    145145     * new data on stdout/stderr, process terminated etc.
    146146     */
    147     HOST_EXEC_GET_OUTPUT = 3
     147    HOST_EXEC_GET_OUTPUT = 102
    148148};
    149149
     
    155155{
    156156    /**
     157     * Guest waits for a new message the host wants to process on the guest side.
     158     * This is a blocking call and can be deferred.
     159     */
     160    GUEST_GET_HOST_MSG = 1,
     161    /**
     162     * Guest asks the host to cancel all pending waits the guest waits on.
     163     * This becomes necessary when the guest wants to quit but still waits for
     164     * commands from the host.
     165     */
     166    GUEST_CANCEL_PENDING_WAITS = 2,
     167    /**
    157168     * TODO
    158169     */
    159     GUEST_GET_HOST_MSG = 1,
     170    GUEST_EXEC_SEND_OUTPUT = 100,
    160171    /**
    161172     * TODO
    162173     */
    163     GUEST_EXEC_SEND_OUTPUT = 2,
    164     /**
    165      * TODO
    166      */
    167     GUEST_EXEC_SEND_STATUS = 3
     174    GUEST_EXEC_SEND_STATUS = 101
    168175};
    169176
     
    175182{
    176183    /**
     184     * Hosts wants the guest to stop waiting for new messages.
     185     */
     186    GETHOSTMSG_EXEC_HOST_CANCEL_WAIT = 0,
     187    /**
    177188     * The host wants to execute something in the guest. This can be a command line
    178189     * or starting a program.
    179190     */
    180     GETHOSTMSG_EXEC_START_PROCESS = 1,
     191    GETHOSTMSG_EXEC_START_PROCESS = 100,
    181192    /**
    182193     * Sends input data for stdin to a running process executed by HOST_EXEC_CMD.
    183194     */
    184     GETHOSTMSG_EXEC_SEND_INPUT = 2,
     195    GETHOSTMSG_EXEC_SEND_INPUT = 101,
    185196    /**
    186197     * Host requests the so far collected stdout/stderr output
    187198     * from a running process executed by HOST_EXEC_CMD.
    188199     */
    189     GETHOSTMSG_EXEC_GET_OUTPUT = 3
     200    GETHOSTMSG_EXEC_GET_OUTPUT = 102
    190201};
    191202
     
    200211    /**
    201212     * The returned command the host wants to
    202      * execute on the guest.
     213     * run on the guest.
    203214     */
    204215    HGCMFunctionParameter msg;       /* OUT uint32_t */
    205 
     216    /** Number of parameters the message needs. */
    206217    HGCMFunctionParameter num_parms; /* OUT uint32_t */
    207218
    208219} VBoxGuestCtrlHGCMMsgType;
     220
     221typedef struct _VBoxGuestCtrlHGCMMsgCancelPendingWaits
     222{
     223    VBoxGuestHGCMCallInfo hdr;
     224} VBoxGuestCtrlHGCMMsgCancelPendingWaits;
    209225
    210226typedef struct _VBoxGuestCtrlHGCMMsgExecCmd
Note: See TracChangeset for help on using the changeset viewer.

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