summaryrefslogtreecommitdiff
path: root/src/VBox/Frontends/VBoxManage/VBoxManage.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-03-26 19:21:20 +0000
committer <>2014-05-08 15:03:54 +0000
commitfb123f93f9f5ce42c8e5785d2f8e0edaf951740e (patch)
treec2103d76aec5f1f10892cd1d3a38e24f665ae5db /src/VBox/Frontends/VBoxManage/VBoxManage.h
parent58ed4748338f9466599adfc8a9171280ed99e23f (diff)
downloadVirtualBox-master.tar.gz
Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2.HEADVirtualBox-4.3.10master
Diffstat (limited to 'src/VBox/Frontends/VBoxManage/VBoxManage.h')
-rw-r--r--src/VBox/Frontends/VBoxManage/VBoxManage.h59
1 files changed, 43 insertions, 16 deletions
diff --git a/src/VBox/Frontends/VBoxManage/VBoxManage.h b/src/VBox/Frontends/VBoxManage/VBoxManage.h
index e8f4214b..f2c23ee4 100644
--- a/src/VBox/Frontends/VBoxManage/VBoxManage.h
+++ b/src/VBox/Frontends/VBoxManage/VBoxManage.h
@@ -4,7 +4,7 @@
*/
/*
- * Copyright (C) 2006-2012 Oracle Corporation
+ * Copyright (C) 2006-2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
@@ -29,6 +29,7 @@
#include <iprt/types.h>
#include <iprt/message.h>
#include <iprt/stream.h>
+#include <iprt/getopt.h>
////////////////////////////////////////////////////////////////////////////////
//
@@ -101,9 +102,28 @@
#define USAGE_BANDWIDTHCONTROL RT_BIT_64(56)
#define USAGE_GUESTSTATS RT_BIT_64(57)
#define USAGE_REPAIRHD RT_BIT_64(58)
+#define USAGE_NATNETWORK RT_BIT_64(59)
#define USAGE_ALL (~(uint64_t)0)
/** @} */
+#ifdef VBOX_WITH_GUEST_CONTROL
+# define USAGE_GSTCTRL_EXEC RT_BIT(0)
+# define USAGE_GSTCTRL_COPYFROM RT_BIT(1)
+# define USAGE_GSTCTRL_COPYTO RT_BIT(2)
+# define USAGE_GSTCTRL_CREATEDIR RT_BIT(3)
+# define USAGE_GSTCTRL_REMOVEDIR RT_BIT(4)
+# define USAGE_GSTCTRL_REMOVEFILE RT_BIT(5)
+# define USAGE_GSTCTRL_RENAME RT_BIT(6)
+# define USAGE_GSTCTRL_CREATETEMP RT_BIT(7)
+# define USAGE_GSTCTRL_LIST RT_BIT(8)
+# define USAGE_GSTCTRL_PROCESS RT_BIT(9)
+# define USAGE_GSTCTRL_KILL RT_BIT(10)
+# define USAGE_GSTCTRL_SESSION RT_BIT(11)
+# define USAGE_GSTCTRL_STAT RT_BIT(12)
+# define USAGE_GSTCTRL_UPDATEADDS RT_BIT(13)
+# define USAGE_GSTCTRL_WATCH RT_BIT(14)
+#endif
+
typedef uint64_t USAGECATEGORY;
/** command handler argument */
@@ -146,12 +166,14 @@ extern bool g_fDetailedProgress; // in VBoxManage.cpp
////////////////////////////////////////////////////////////////////////////////
/* VBoxManageHelp.cpp */
-void printUsage(USAGECATEGORY u64Cmd, PRTSTREAM pStrm);
-RTEXITCODE errorSyntax(USAGECATEGORY u64Cmd, const char *pszFormat, ...);
-RTEXITCODE errorGetOpt(USAGECATEGORY u64Cmd, int rc, union RTGETOPTUNION const *pValueUnion);
+void printUsage(USAGECATEGORY fCategory, uint32_t fSubCategory, PRTSTREAM pStrm);
+RTEXITCODE errorSyntax(USAGECATEGORY fCategory, const char *pszFormat, ...);
+RTEXITCODE errorSyntaxEx(USAGECATEGORY fCategory, uint32_t fSubCategory, const char *pszFormat, ...);
+RTEXITCODE errorGetOpt(USAGECATEGORY fCategory, int rc, union RTGETOPTUNION const *pValueUnion);
+RTEXITCODE errorGetOptEx(USAGECATEGORY fCategory, uint32_t fSubCategory, int rc, union RTGETOPTUNION const *pValueUnion);
RTEXITCODE errorArgument(const char *pszFormat, ...);
-void printUsageInternal(USAGECATEGORY u64Cmd, PRTSTREAM pStrm);
+void printUsageInternal(USAGECATEGORY fCategory, PRTSTREAM pStrm);
#ifndef VBOX_ONLY_DOCS
HRESULT showProgress(ComPtr<IProgress> progress);
@@ -185,7 +207,7 @@ int handleDebugVM(HandlerArg *a);
extern void usageGuestProperty(PRTSTREAM pStrm, const char *pcszSep1, const char *pcszSep2);
/* VBoxManageGuestCtrl.cpp */
-extern void usageGuestControl(PRTSTREAM pStrm, const char *pcszSep1, const char *pcszSep2);
+extern void usageGuestControl(PRTSTREAM pStrm, const char *pcszSep1, const char *pcszSep2, uint32_t fSubCategory);
#ifndef VBOX_ONLY_DOCS
/* VBoxManageGuestProp.cpp */
@@ -198,13 +220,13 @@ extern int handleGuestControl(HandlerArg *a);
HRESULT showSnapshots(ComPtr<ISnapshot> &rootSnapshot,
ComPtr<ISnapshot> &currentSnapshot,
VMINFO_DETAILS details,
- const com::Bstr &prefix = "",
+ const com::Utf8Str &prefix = "",
int level = 0);
int handleShowVMInfo(HandlerArg *a);
HRESULT showVMInfo(ComPtr<IVirtualBox> virtualBox,
ComPtr<IMachine> machine,
VMINFO_DETAILS details = VMINFO_NONE,
- ComPtr <IConsole> console = ComPtr<IConsole>());
+ ComPtr<IConsole> console = ComPtr<IConsole>());
const char *machineStateToName(MachineState_T machineState, bool fShort);
HRESULT showBandwidthGroups(ComPtr<IBandwidthControl> &bwCtrl,
VMINFO_DETAILS details);
@@ -230,17 +252,18 @@ int handleSharedFolder(HandlerArg *a);
int handleExtPack(HandlerArg *a);
/* VBoxManageDisk.cpp */
-HRESULT findMedium(HandlerArg *a, const char *pszFilenameOrUuid,
- DeviceType_T enmDevType, bool fSilent,
- ComPtr<IMedium> &pMedium);
-HRESULT findOrOpenMedium(HandlerArg *a, const char *pszFilenameOrUuid,
- DeviceType_T enmDevType, AccessMode_T enmAccessMode,
- ComPtr<IMedium> &pMedium, bool fForceNewUuidOnOpen,
- bool *pfWasUnknown);
+HRESULT openMedium(HandlerArg *a, const char *pszFilenameOrUuid,
+ DeviceType_T enmDevType, AccessMode_T enmAccessMode,
+ ComPtr<IMedium> &pMedium, bool fForceNewUuidOnOpen,
+ bool fSilent);
int handleCreateHardDisk(HandlerArg *a);
int handleModifyHardDisk(HandlerArg *a);
int handleCloneHardDisk(HandlerArg *a);
RTEXITCODE handleConvertFromRaw(int argc, char *argv[]);
+HRESULT showMediumInfo(const ComPtr<IVirtualBox> &pVirtualBox,
+ const ComPtr<IMedium> &pMedium,
+ const char *pszParentUUID,
+ bool fOptLong);
int handleShowHardDiskInfo(HandlerArg *a);
int handleCloseMedium(HandlerArg *a);
int parseDiskType(const char *psz, MediumType_T *pDiskType);
@@ -263,9 +286,13 @@ int handleUSBFilter(HandlerArg *a);
/* VBoxManageHostonly.cpp */
int handleHostonlyIf(HandlerArg *a);
-/* VBoxManageHostonly.cpp */
+/* VBoxManageDHCPServer.cpp */
int handleDHCPServer(HandlerArg *a);
+/* VBoxManageNATNetwork.cpp */
+int handleNATNetwork(HandlerArg *a);
+
+
/* VBoxManageBandwidthControl.cpp */
int handleBandwidthControl(HandlerArg *a);