Changeset 34556 in vbox for trunk/include/VBox
- Timestamp:
- Dec 1, 2010 10:43:44 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68347
- Location:
- trunk/include/VBox/HostServices
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/GuestControlSvc.h
r34553 r34556 1 1 /** @file 2 * Guest control service: 3 * Common header for host service and guest clients. 2 * Guest control service - Common header for host service and guest clients. 4 3 */ 5 4 … … 36 35 #include <iprt/string.h> 37 36 38 /* *Everything defined in this file lives in this namespace. */37 /* Everything defined in this file lives in this namespace. */ 39 38 namespace guestControl { 40 39 … … 76 75 #define INPUT_FLAG_EOF RT_BIT(0) 77 76 78 /* 79 * Internal tools built into VBoxService which are80 * used in order to accomplish tasks host<->guest.77 /** @name Internal tools built into VBoxService which are used in order to 78 * accomplish tasks host<->guest. 79 * @{ 81 80 */ 82 81 #define VBOXSERVICE_TOOL_CAT "vbox_cat" 83 82 #define VBOXSERVICE_TOOL_MKDIR "vbox_mkdir" 83 /** @} */ 84 84 85 85 /** … … 100 100 }; 101 101 102 typedef struct _VBoxGuestCtrlCallbackHeader 102 /** 103 * Document me. 104 */ 105 typedef struct VBoxGuestCtrlCallbackHeader 103 106 { 104 107 /** Magic number to identify the structure. */ … … 106 109 /** Context ID to identify callback data. */ 107 110 uint32_t u32ContextID; 108 } CALLBACKHEADER, *PCALLBACKHEADER; 111 } CALLBACKHEADER; 112 typedef CALLBACKHEADER *PCALLBACKHEADER; 109 113 110 114 /** … … 112 116 * notify the host of changes to properties. 113 117 */ 114 typedef struct _VBoxGuestCtrlCallbackDataExecStatus118 typedef struct VBoxGuestCtrlCallbackDataExecStatus 115 119 { 116 120 /** Callback data header. */ … … 118 122 /** The process ID (PID). */ 119 123 uint32_t u32PID; 120 /* The process status. */124 /** The process status. */ 121 125 uint32_t u32Status; 122 126 /** Optional flags, varies, based on u32Status. */ … … 126 130 /** Size of optional data buffer (not used atm). */ 127 131 uint32_t cbData; 128 } CALLBACKDATAEXECSTATUS, *PCALLBACKDATAEXECSTATUS; 129 130 typedef struct _VBoxGuestCtrlCallbackDataExecOut 132 } CALLBACKDATAEXECSTATUS; 133 typedef CALLBACKDATAEXECSTATUS *PCALLBACKDATAEXECSTATUS; 134 135 typedef struct VBoxGuestCtrlCallbackDataExecOut 131 136 { 132 137 /** Callback data header. */ … … 134 139 /** The process ID (PID). */ 135 140 uint32_t u32PID; 136 /* The handle ID (stdout/stderr). */141 /** The handle ID (stdout/stderr). */ 137 142 uint32_t u32HandleId; 138 143 /** Optional flags (not used atm). */ … … 142 147 /** Size (in bytes) of optional data buffer. */ 143 148 uint32_t cbData; 144 } CALLBACKDATAEXECOUT, *PCALLBACKDATAEXECOUT; 145 146 typedef struct _VBoxGuestCtrlCallbackDataExecInStatus 149 } CALLBACKDATAEXECOUT; 150 typedef CALLBACKDATAEXECOUT *PCALLBACKDATAEXECOUT; 151 152 typedef struct VBoxGuestCtrlCallbackDataExecInStatus 147 153 { 148 154 /** Callback data header. */ … … 156 162 /** Size (in bytes) of processed input data. */ 157 163 uint32_t cbProcessed; 158 } CALLBACKDATAEXECINSTATUS, *PCALLBACKDATAEXECINSTATUS; 159 160 typedef struct _VBoxGuestCtrlCallbackDataClientDisconnected 164 } CALLBACKDATAEXECINSTATUS; 165 typedef CALLBACKDATAEXECINSTATUS *PCALLBACKDATAEXECINSTATUS; 166 167 typedef struct VBoxGuestCtrlCallbackDataClientDisconnected 161 168 { 162 169 /** Callback data header. */ 163 170 CALLBACKHEADER hdr; 164 } CALLBACKDATACLIENTDISCONNECTED, *PCALLBACKDATACLIENTDISCONNECTED; 171 } CALLBACKDATACLIENTDISCONNECTED; 172 typedef CALLBACKDATACLIENTDISCONNECTED *PCALLBACKDATACLIENTDISCONNECTED; 165 173 166 174 enum … … 249 257 */ 250 258 #pragma pack (1) 251 typedef struct _VBoxGuestCtrlHGCMMsgType 259 260 typedef struct VBoxGuestCtrlHGCMMsgType 252 261 { 253 262 VBoxGuestHGCMCallInfo hdr; … … 264 273 265 274 /** 266 * Asks the guest control host service to cancel all pending 267 * (outstanding) waits which were not processed yet. This is 268 * handy for a graceful shutdown. 269 */ 270 typedef struct _VBoxGuestCtrlHGCMMsgCancelPendingWaits 275 * Asks the guest control host service to cancel all pending (outstanding) 276 * waits which were not processed yet. This is handy for a graceful shutdown. 277 */ 278 typedef struct VBoxGuestCtrlHGCMMsgCancelPendingWaits 271 279 { 272 280 VBoxGuestHGCMCallInfo hdr; … … 276 284 * Executes a command inside the guest. 277 285 */ 278 typedef struct _VBoxGuestCtrlHGCMMsgExecCmd286 typedef struct VBoxGuestCtrlHGCMMsgExecCmd 279 287 { 280 288 VBoxGuestHGCMCallInfo hdr; … … 308 316 309 317 /** 310 * Injects input to a previously executed process via 311 * stdin. 312 */ 313 typedef struct _VBoxGuestCtrlHGCMMsgExecIn 318 * Injects input to a previously executed process via stdin. 319 */ 320 typedef struct VBoxGuestCtrlHGCMMsgExecIn 314 321 { 315 322 VBoxGuestHGCMCallInfo hdr; … … 327 334 } VBoxGuestCtrlHGCMMsgExecIn; 328 335 329 typedef struct _VBoxGuestCtrlHGCMMsgExecOut336 typedef struct VBoxGuestCtrlHGCMMsgExecOut 330 337 { 331 338 VBoxGuestHGCMCallInfo hdr; … … 343 350 } VBoxGuestCtrlHGCMMsgExecOut; 344 351 345 typedef struct _VBoxGuestCtrlHGCMMsgExecStatus352 typedef struct VBoxGuestCtrlHGCMMsgExecStatus 346 353 { 347 354 VBoxGuestHGCMCallInfo hdr; … … 359 366 } VBoxGuestCtrlHGCMMsgExecStatus; 360 367 361 typedef struct _VBoxGuestCtrlHGCMMsgExecStatusIn368 typedef struct VBoxGuestCtrlHGCMMsgExecStatusIn 362 369 { 363 370 VBoxGuestHGCMCallInfo hdr; … … 374 381 375 382 } VBoxGuestCtrlHGCMMsgExecStatusIn; 383 376 384 #pragma pack () 377 385 378 /* Structure for buffering execution requests in the host service. */ 379 typedef struct _VBoxGuestCtrlParamBuffer 386 /** 387 * Structure for buffering execution requests in the host service. 388 */ 389 typedef struct VBoxGuestCtrlParamBuffer 380 390 { 381 391 uint32_t uMsg; 382 392 uint32_t uParmCount; 383 393 VBOXHGCMSVCPARM *pParms; 384 } VBOXGUESTCTRPARAMBUFFER, *PVBOXGUESTCTRPARAMBUFFER; 394 } VBOXGUESTCTRPARAMBUFFER; 395 typedef VBOXGUESTCTRPARAMBUFFER *PVBOXGUESTCTRPARAMBUFFER; 385 396 386 397 } /* namespace guestControl */ 387 398 388 #endif /* ___VBox_HostService_GuestControlService_h defined */ 399 #endif /* !___VBox_HostService_GuestControlService_h */ 400
Note:
See TracChangeset
for help on using the changeset viewer.