Changeset 28557 in vbox for trunk/include
- Timestamp:
- Apr 21, 2010 11:18:32 AM (15 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/GuestControlSvc.h
r28434 r28557 98 98 /** Size of optional data buffer (not used atm). */ 99 99 uint32_t cbData; 100 101 100 } HOSTEXECCALLBACKDATA, *PHOSTEXECCALLBACKDATA; 102 101 102 typedef struct _VBoxGuestCtrlExecOutCallbackData 103 { 104 /** Callback data header. */ 105 HOSTCCALLBACKHEADER hdr; 106 /** The process ID (PID). */ 107 uint32_t u32PID; 108 /* The handle ID (stdout/stderr). */ 109 uint32_t u32HandleId; 110 /** Optional flags (not used atm). */ 111 uint32_t u32Flags; 112 /** Optional data buffer. */ 113 void *pvData; 114 /** Size of optional data buffer. */ 115 uint32_t cbData; 116 } HOSTEXECOUTCALLBACKDATA, *PHOSTEXECOUTCALLBACKDATA; 117 103 118 enum 104 119 { 105 /** Magic number for sanity checking the HOSTEXECCALLBACKDATA structure */ 106 HOSTEXECCALLBACKDATAMAGIC = 0x26011982 120 /** Magic number for sanity checking the HOSTEXECCALLBACKDATA structure. */ 121 HOSTEXECCALLBACKDATAMAGIC = 0x26011982, 122 /** Magic number for sanity checking the HOSTEXECOUTCALLBACKDATA structure. */ 123 HOSTEXECOUTCALLBACKDATAMAGIC = 0x11061949 107 124 }; 108 125 … … 120 137 * Sends input data for stdin to a running process executed by HOST_EXEC_CMD. 121 138 */ 122 HOST_EXEC_SE ND_STDIN= 2,139 HOST_EXEC_SET_INPUT = 2, 123 140 /** 124 141 * Gets the current status of a running process, e.g. 125 142 * new data on stdout/stderr, process terminated etc. 126 143 */ 127 HOST_EXEC_GET_ STATUS= 3144 HOST_EXEC_GET_OUTPUT = 3 128 145 }; 129 146 … … 141 158 * TODO 142 159 */ 143 GUEST_EXEC_SEND_ STDOUT = 3,160 GUEST_EXEC_SEND_OUTPUT = 2, 144 161 /** 145 162 * TODO 146 163 */ 147 GUEST_EXEC_SEND_STDERR = 4, 148 /** 149 * TODO 150 */ 151 GUEST_EXEC_SEND_STATUS = 5 164 GUEST_EXEC_SEND_STATUS = 3 152 165 }; 153 166 … … 162 175 * or starting a program. 163 176 */ 164 GETHOSTMSG_EXEC_ CMD= 1,177 GETHOSTMSG_EXEC_START_PROCESS = 1, 165 178 /** 166 179 * Sends input data for stdin to a running process executed by HOST_EXEC_CMD. 167 180 */ 168 GETHOSTMSG_EXEC_STDIN = 2 181 GETHOSTMSG_EXEC_SEND_INPUT = 2, 182 /** 183 * Host requests the so far collected stdout/stderr output 184 * from a running process executed by HOST_EXEC_CMD. 185 */ 186 GETHOSTMSG_EXEC_GET_OUTPUT = 3 169 187 }; 170 188 … … 220 238 221 239 } VBoxGuestCtrlHGCMMsgExecCmd; 240 241 typedef struct _VBoxGuestCtrlHGCMMsgExecOut 242 { 243 VBoxGuestHGCMCallInfo hdr; 244 /** Context ID. */ 245 HGCMFunctionParameter context; 246 /** The process ID (PID). */ 247 HGCMFunctionParameter pid; 248 /** The pipe handle ID. */ 249 HGCMFunctionParameter handle; 250 /** Optional flags. */ 251 HGCMFunctionParameter flags; 252 /** Data buffer. */ 253 HGCMFunctionParameter data; 254 255 } VBoxGuestCtrlHGCMMsgExecOut; 222 256 223 257 typedef struct _VBoxGuestCtrlHGCMMsgExecStatus … … 241 275 typedef struct _VBoxGuestCtrlParamBuffer 242 276 { 277 uint32_t uMsg; 243 278 uint32_t uParmCount; 244 279 VBOXHGCMSVCPARM *pParms; -
trunk/include/VBox/VBoxGuestLib.h
r28441 r28557 526 526 char *pszPassword, uint32_t cbPassword, 527 527 uint32_t *puTimeLimit); 528 VBGLR3DECL(int) VbglR3GuestCtrlExecGetHostCmdOutput(uint32_t u32ClientId, uint32_t uNumParms, 529 uint32_t *puContext, uint32_t *puPID, 530 uint32_t *puHandle, uint32_t *puFlags); 528 531 VBGLR3DECL(int) VbglR3GuestCtrlExecReportStatus(uint32_t u32ClientId, 529 532 uint32_t u32Context, … … 533 536 void *pvData, 534 537 uint32_t cbData); 538 VBGLR3DECL(int) VbglR3GuestCtrlExecSendOut(uint32_t u32ClientId, 539 uint32_t u32Context, 540 uint32_t u32PID, 541 uint32_t u32Handle, 542 uint32_t u32Flags, 543 void *pvData, 544 uint32_t cbData); 535 545 /** @} */ 536 546 # endif /* VBOX_WITH_GUEST_CONTROL defined */
Note:
See TracChangeset
for help on using the changeset viewer.