VirtualBox

Changeset 32712 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 23, 2010 12:16:51 PM (14 years ago)
Author:
vboxsync
Message:

VBoxManage: forgot the help for guestproperty and guestcontrol; enable the latter for VBOX_ONLY_DOCS=1

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk

    r29555 r32712  
    2525 VBoxManage_SOURCES = \
    2626        VBoxManage.cpp \
    27         VBoxManageHelp.cpp
     27        VBoxManageHelp.cpp \
     28        $(if $(VBOX_WITH_GUEST_PROPS),VBoxManageGuestProp.cpp) \
     29        $(if $(VBOX_WITH_GUEST_CONTROL),VBoxManageGuestCtrl.cpp)
    2830 VBoxManage_LIBS      += $(LIB_RUNTIME)
    2931else # !VBOX_ONLY_DOCS
    3032 VBoxManage_TEMPLATE   = VBOXMAINCLIENTEXE
    31  VBoxManage_DEFS      += \
    32         $(if $(VBOX_WITH_VBOXSDL), VBOX_WITH_VBOXSDL) \
    33         $(if $(VBOX_WITH_VRDP), VBOX_WITH_VRDP) \
    34         $(if $(VBOX_WITH_HEADLESS), VBOX_WITH_HEADLESS) \
    35         $(if $(VBOX_WITH_ALSA), VBOX_WITH_ALSA) \
    36         $(if $(VBOX_WITH_SOLARIS_OSS), VBOX_WITH_SOLARIS_OSS) \
    37         $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \
    38         $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
    39         $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
    40         $(if $(VBOX_WITH_AHCI), VBOX_WITH_AHCI) \
    41         $(if $(VBOX_WITH_SCSI), VBOX_WITH_SCSI) \
    42         $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS) \
    43         $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL) \
    44         $(if $(VBOX_WITH_HOSTNETIF_API), VBOX_WITH_HOSTNETIF_API) \
    45         $(if $(VBOX_WITH_VDE), VBOX_WITH_VDE) \
    46         $(if $(VBOX_WITH_HGCM), VBOX_WITH_HGCM)
    4733 VBoxManage_DEFS.win   = _WIN32_WINNT=0x0500
    4834 ifdef VBOX_DYNAMIC_NET_ATTACH
     
    7561        VBoxManageUSB.cpp
    7662endif # !VBOX_ONLY_DOCS
     63
     64VBoxManage_DEFS      += \
     65        $(if $(VBOX_WITH_VBOXSDL), VBOX_WITH_VBOXSDL) \
     66        $(if $(VBOX_WITH_VRDP), VBOX_WITH_VRDP) \
     67        $(if $(VBOX_WITH_HEADLESS), VBOX_WITH_HEADLESS) \
     68        $(if $(VBOX_WITH_ALSA), VBOX_WITH_ALSA) \
     69        $(if $(VBOX_WITH_SOLARIS_OSS), VBOX_WITH_SOLARIS_OSS) \
     70        $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \
     71        $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
     72        $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
     73        $(if $(VBOX_WITH_AHCI), VBOX_WITH_AHCI) \
     74        $(if $(VBOX_WITH_SCSI), VBOX_WITH_SCSI) \
     75        $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS) \
     76        $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL) \
     77        $(if $(VBOX_WITH_HOSTNETIF_API), VBOX_WITH_HOSTNETIF_API) \
     78        $(if $(VBOX_WITH_VDE), VBOX_WITH_VDE) \
     79        $(if $(VBOX_WITH_HGCM), VBOX_WITH_HGCM)
     80
    7781ifneq ($(KBUILD_TARGET),win)
    7882 # Workaround for buggy gcc-4.3 compilers, see
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r32709 r32712  
    167167
    168168/* VBoxManageGuestProp.cpp */
    169 extern void usageGuestProperty(void);
    170 #ifndef VBOX_ONLY_DOCS
     169extern void usageGuestProperty(PRTSTREAM pStrm);
     170
     171/* VBoxManageGuestCtrl.cpp */
     172extern void usageGuestControl(PRTSTREAM pStrm);
     173
     174#ifndef VBOX_ONLY_DOCS
     175/* VBoxManageGuestProp.cpp */
    171176extern int handleGuestProperty(HandlerArg *a);
    172177
    173178/* VBoxManageGuestCtrl.cpp */
    174179extern int handleGuestControl(HandlerArg *a);
    175 extern void usageGuestControl(void);
    176180
    177181/* VBoxManageVMInfo.cpp */
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r32701 r32712  
    2222#include "VBoxManage.h"
    2323
     24#ifndef VBOX_ONLY_DOCS
     25
    2426#include <VBox/com/com.h>
    2527#include <VBox/com/string.h>
     
    6365static volatile bool    g_fExecCanceled = false;
    6466
    65 void usageGuestControl(void)
     67#endif /* VBOX_ONLY_DOCS */
     68
     69void usageGuestControl(PRTSTREAM pStrm)
    6670{
    67     RTStrmPrintf(g_pStdErr,
     71    RTStrmPrintf(pStrm,
    6872                 "VBoxManage guestcontrol     execute <vmname>|<uuid>\n"
    6973                 "                            <path to program>\n"
     
    7579                 "\n");
    7680}
     81
     82#ifndef VBOX_ONLY_DOCS
    7783
    7884/**
     
    539545    return errorSyntax(USAGE_GUESTCONTROL, "Incorrect parameters");
    540546}
     547
     548#endif /* !VBOX_ONLY_DOCS */
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp

    r32701 r32712  
    2222#include "VBoxManage.h"
    2323
     24#ifndef VBOX_ONLY_DOCS
     25
    2426#include <VBox/com/com.h>
    2527#include <VBox/com/string.h>
     
    4951using namespace com;
    5052
    51 void usageGuestProperty(void)
    52 {
    53     RTStrmPrintf(g_pStdErr,
     53#endif /* !VBOX_ONLY_DOCS */
     54
     55void usageGuestProperty(PRTSTREAM pStrm)
     56{
     57    RTStrmPrintf(pStrm,
    5458                 "VBoxManage guestproperty    get <vmname>|<uuid>\n"
    5559                 "                            <property> [--verbose]\n"
    5660                 "\n");
    57     RTStrmPrintf(g_pStdErr,
     61    RTStrmPrintf(pStrm,
    5862                 "VBoxManage guestproperty    set <vmname>|<uuid>\n"
    5963                 "                            <property> [<value> [--flags <flags>]]\n"
    6064                 "\n");
    61     RTStrmPrintf(g_pStdErr,
     65    RTStrmPrintf(pStrm,
    6266                 "VBoxManage guestproperty    enumerate <vmname>|<uuid>\n"
    6367                 "                            [--patterns <patterns>]\n"
    6468                 "\n");
    65     RTStrmPrintf(g_pStdErr,
     69    RTStrmPrintf(pStrm,
    6670                 "VBoxManage guestproperty    wait <vmname>|<uuid> <patterns>\n"
    6771                 "                            [--timeout <msec>] [--fail-on-timeout]\n"
    6872                 "\n");
    6973}
     74
     75#ifndef VBOX_ONLY_DOCS
    7076
    7177static int handleGetGuestProperty(HandlerArg *a)
     
    396402    return errorSyntax(USAGE_GUESTPROPERTY, "Incorrect parameters");
    397403}
     404
     405#endif /* !VBOX_ONLY_DOCS */
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r32709 r32712  
    672672#ifdef VBOX_WITH_GUEST_PROPS
    673673    if (u64Cmd & USAGE_GUESTPROPERTY)
    674         usageGuestProperty();
     674        usageGuestProperty(pStrm);
    675675#endif /* VBOX_WITH_GUEST_PROPS defined */
    676676
    677677#ifdef VBOX_WITH_GUEST_CONTROL
    678678    if (u64Cmd & USAGE_GUESTCONTROL)
    679         usageGuestControl();
     679        usageGuestControl(pStrm);
    680680#endif /* VBOX_WITH_GUEST_CONTROL defined */
    681681
Note: See TracChangeset for help on using the changeset viewer.

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