VirtualBox

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

Last change on this file since 8290 was 8155, checked in by vboxsync, 17 years ago

The Big Sun Rebranding Header Change

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