VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h@ 5458

Last change on this file since 5458 was 5391, checked in by vboxsync, 17 years ago

VBoxManage: Added "adoptstate <vm> <state_file>" to instruct the VM to adopt the external saved state file.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.6 KB
Line 
1/** @file
2 * VBox frontends: VBoxManage (command-line interface):
3 * VBoxManage header.
4 */
5
6/*
7 * Copyright (C) 2006-2007 innotek GmbH
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License as published by the Free Software Foundation,
13 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14 * distribution. VirtualBox OSE is distributed in the hope that it will
15 * be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ___H_VBOXMANAGE
19#define ___H_VBOXMANAGE
20
21#include <iprt/types.h>
22#include <VBox/com/ptr.h>
23#include <VBox/com/VirtualBox.h>
24
25/** @name Syntax diagram category.
26 * @{ */
27#define USAGE_DUMPOPTS 0
28#define USAGE_LIST BIT64(0)
29#define USAGE_SHOWVMINFO BIT64(1)
30#define USAGE_REGISTERVM BIT64(2)
31#define USAGE_UNREGISTERVM BIT64(3)
32#define USAGE_CREATEVM BIT64(4)
33#define USAGE_MODIFYVM BIT64(5)
34#define USAGE_STARTVM BIT64(6)
35#define USAGE_CONTROLVM BIT64(7)
36#define USAGE_DISCARDSTATE BIT64(8)
37#define USAGE_SNAPSHOT BIT64(9)
38#define USAGE_REGISTERIMAGE BIT64(10)
39#define USAGE_UNREGISTERIMAGE BIT64(11)
40#define USAGE_SHOWVDIINFO BIT64(12)
41#define USAGE_CREATEVDI BIT64(13)
42#define USAGE_MODIFYVDI BIT64(14)
43#define USAGE_CLONEVDI BIT64(15)
44#define USAGE_ADDISCSIDISK BIT64(16)
45#define USAGE_CREATEHOSTIF BIT64(17)
46#define USAGE_REMOVEHOSTIF BIT64(18)
47#define USAGE_GETEXTRADATA BIT64(19)
48#define USAGE_SETEXTRADATA BIT64(20)
49#define USAGE_SETPROPERTY BIT64(21)
50#define USAGE_USBFILTER (BIT64(22) | BIT64(23) | BIT64(24))
51#define USAGE_USBFILTER_ADD BIT64(22)
52#define USAGE_USBFILTER_MODIFY BIT64(23)
53#define USAGE_USBFILTER_REMOVE BIT64(24)
54#define USAGE_SHAREDFOLDER (BIT64(25) | BIT64(26))
55#define USAGE_SHAREDFOLDER_ADD BIT64(25)
56#define USAGE_SHAREDFOLDER_REMOVE BIT64(26)
57#define USAGE_UPDATESETTINGS BIT64(27)
58#define USAGE_LOADSYMS BIT64(29)
59#define USAGE_UNLOADSYMS BIT64(30)
60#define USAGE_SETVDIUUID BIT64(31)
61#define USAGE_CONVERTDD BIT64(32)
62#ifdef VBOX_OSE
63# define USAGE_LISTPARTITIONS (0)
64# define USAGE_CREATERAWVMDK (0)
65#else /* !VBOX_OSE */
66# define USAGE_LISTPARTITIONS BIT64(33)
67# define USAGE_CREATERAWVMDK BIT64(34)
68#endif /* !VBOX_OSE */
69#define USAGE_VM_STATISTICS BIT64(35)
70#define USAGE_ADOPTSTATE BIT64(36)
71#define USAGE_ALL (~(uint64_t)0)
72/** @} */
73
74typedef uint64_t USAGECATEGORY;
75
76/** flag whether we're in internal mode */
77extern bool g_fInternalMode;
78
79/** showVMInfo details */
80typedef enum
81{
82 VMINFO_NONE = 0,
83 VMINFO_STANDARD = 1, /**< standard details */
84 VMINFO_STATISTICS = 2, /**< guest statistics */
85 VMINFO_FULL = 3, /**< both */
86 VMINFO_MACHINEREADABLE = 4 /**< both, and make it machine readable */
87} VMINFO_DETAILS;
88
89/*
90 * Prototypes
91 */
92int errorSyntax(USAGECATEGORY u64Cmd, const char *pszFormat, ...);
93int errorArgument(const char *pszFormat, ...);
94
95void printUsageInternal(USAGECATEGORY u64Cmd);
96int handleInternalCommands(int argc, char *argv[],
97 ComPtr <IVirtualBox> aVirtualBox, ComPtr<ISession> aSession);
98unsigned long VBoxSVNRev();
99
100#endif /* !___H_VBOXMANAGE */
Note: See TracBrowser for help on using the repository browser.

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