VirtualBox

Changeset 10000 in vbox


Ignore:
Timestamp:
Jun 27, 2008 2:56:59 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32453
Message:

Pure naming change for the guest property store stuff. Functionality is unchanged.

Location:
trunk/src/VBox
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r9884 r10000  
    649649    }
    650650
    651     if (u64Cmd & USAGE_GETCONFIGVAL)
    652     {
    653         RTPrintf("VBoxManage getconfigval    <vmname>|<uuid> <key>\n"
     651    if (u64Cmd & USAGE_GETGUESTPROPERTY)
     652    {
     653        RTPrintf("VBoxManage getguestproperty <vmname>|<uuid> <key>\n"
    654654                 "\n");
    655655    }
    656656
    657     if (u64Cmd & USAGE_SETCONFIGVAL)
    658     {
    659         RTPrintf("VBoxManage setconfigval    <vmname>|<uuid> <key>\n"
     657    if (u64Cmd & USAGE_SETGUESTPROPERTY)
     658    {
     659        RTPrintf("VBoxManage setguestproperty <vmname>|<uuid> <key>\n"
    660660                 "                            [<value>] (no value deletes key)\n"
    661661                 "\n");
     
    74707470}
    74717471
    7472 static int handleGetConfigVal(int argc, char *argv[],
    7473                             ComPtr<IVirtualBox> virtualBox, ComPtr<ISession> session)
     7472static int handleGetGuestProperty(int argc, char *argv[],
     7473                                  ComPtr<IVirtualBox> virtualBox,
     7474                                  ComPtr<ISession> session)
    74747475{
    74757476    HRESULT rc = S_OK;
    74767477
    74777478    if (argc != 2)
    7478         return errorSyntax(USAGE_GETCONFIGVAL, "Incorrect number of parameters");
     7479        return errorSyntax(USAGE_GETGUESTPROPERTY, "Incorrect number of parameters");
    74797480
    74807481    ComPtr<IMachine> machine;
     
    75127513        {
    75137514            Bstr value;
    7514             CHECK_ERROR(machine, GetConfigRegistryValue(Bstr(argv[1]), value.asOutParam()));
     7515            CHECK_ERROR(machine, GetGuestProperty(Bstr(argv[1]), value.asOutParam()));
    75157516            if (value)
    75167517                RTPrintf("Value: %lS\n", value.raw());
     
    75227523}
    75237524
    7524 static int handleSetConfigVal(int argc, char *argv[],
    7525                               ComPtr<IVirtualBox> virtualBox, ComPtr<ISession> session)
     7525static int handleSetGuestProperty(int argc, char *argv[],
     7526                                  ComPtr<IVirtualBox> virtualBox,
     7527                                  ComPtr<ISession> session)
    75267528{
    75277529    HRESULT rc = S_OK;
    75287530
    75297531    if (argc < 2)
    7530         return errorSyntax(USAGE_SETCONFIGVAL, "Not enough parameters");
     7532        return errorSyntax(USAGE_SETGUESTPROPERTY, "Not enough parameters");
    75317533
    75327534    ComPtr<IMachine> machine;
     
    75417543    {
    75427544        if (argc < 3)
    7543             CHECK_ERROR(machine, SetConfigRegistryValue(Bstr(argv[1]), NULL));
     7545            CHECK_ERROR(machine, SetGuestProperty(Bstr(argv[1]), NULL));
    75447546        else if (argc == 3)
    7545             CHECK_ERROR(machine, SetConfigRegistryValue(Bstr(argv[1]), Bstr(argv[2])));
     7547            CHECK_ERROR(machine, SetGuestProperty(Bstr(argv[1]), Bstr(argv[2])));
    75467548        else
    7547             return errorSyntax(USAGE_SETCONFIGVAL, "Too many parameters");
     7549            return errorSyntax(USAGE_SETGUESTPROPERTY, "Too many parameters");
    75487550    }
    75497551    return SUCCEEDED(rc) ? 0 : 1;
     
    78847886        { "sharedfolder",     handleSharedFolder },
    78857887        { "vmstatistics",     handleVMStatistics },
    7886         { "getconfigval",     handleGetConfigVal },
    7887         { "setconfigval",     handleSetConfigVal },
     7888        { "getguestproperty", handleGetGuestProperty },
     7889        { "setguestproperty", handleSetGuestProperty },
    78887890        { NULL,               NULL }
    78897891    };
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r9884 r10000  
    7070#define USAGE_MODUNINSTALL          RT_BIT_64(38)
    7171#define USAGE_RENAMEVMDK            RT_BIT_64(39)
    72 #define USAGE_GETCONFIGVAL          RT_BIT_64(40)
    73 #define USAGE_SETCONFIGVAL          RT_BIT_64(41)
     72#define USAGE_GETGUESTPROPERTY      RT_BIT_64(40)
     73#define USAGE_SETGUESTPROPERTY      RT_BIT_64(41)
    7474#define USAGE_ALL                   (~(uint64_t)0)
    7575/** @} */
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r9883 r10000  
    24872487}
    24882488
    2489 STDMETHODIMP Console::GetConfigRegistryValue (INPTR BSTR aKey, BSTR *aValue)
     2489STDMETHODIMP Console::GetGuestProperty (INPTR BSTR aKey, BSTR *aValue)
    24902490{
    24912491    if (!VALID_PTR(aValue))
     
    25272527}
    25282528
    2529 STDMETHODIMP Console::SetConfigRegistryValue (INPTR BSTR aKey, INPTR BSTR aValue)
     2529STDMETHODIMP Console::SetGuestProperty (INPTR BSTR aKey, INPTR BSTR aValue)
    25302530{
    25312531#ifndef VBOX_WITH_INFO_SVC
     
    41324132    }
    41334133# ifdef VBOX_WITH_INFO_SVC
    4134     /* Save all guest/host configuration registry entries to the machine XML
     4134    /* Save all guest/host property store entries to the machine XML
    41354135     * file as extra data. */
    41364136    PCFGMNODE pRegistry = CFGMR3GetChild (CFGMR3GetRoot (mpVM), "Guest/Registry/");
  • trunk/src/VBox/Main/MachineImpl.cpp

    r9937 r10000  
    26792679
    26802680/**
    2681  * Read a value from the host/guest configuration registry.  If a session is
     2681 * Read a value from the host/guest property store.  If a session is
    26822682 * currently open for the guest then query the console object for the value,
    2683  * since the current values of the registry will be held in RAM in the
     2683 * since the current values of the property store will be held in RAM in the
    26842684 * session.  Otherwise read the value from machine extra data, where it is
    26852685 * stored between sessions.
     
    26912691 *       way) between open and closed.
    26922692 */
    2693 STDMETHODIMP Machine::GetConfigRegistryValue (INPTR BSTR aKey, BSTR *aValue)
     2693STDMETHODIMP Machine::GetGuestProperty (INPTR BSTR aKey, BSTR *aValue)
    26942694{
    26952695    if (!VALID_PTR(aValue))
     
    27362736            {
    27372737                ComAssertRet (!console.isNull(), E_FAIL);
    2738                 hrc = console->GetConfigRegistryValue (aKey, aValue);
     2738                hrc = console->GetGuestProperty (aKey, aValue);
    27392739            }
    27402740            break;
     
    27502750
    27512751/**
    2752  * Write a value to the host/guest configuration registry.  If a session is
     2752 * Write a value to the host/guest property store.  If a session is
    27532753 * currently open for the guest then query the console object for the value,
    2754  * since the current values of the registry will be held in RAM in the
     2754 * since the current values of the property store will be held in RAM in the
    27552755 * session.  Otherwise read the value from machine extra data, where it is
    27562756 * stored between sessions.
     
    27622762 *       way) between open and closed.
    27632763 */
    2764 STDMETHODIMP Machine::SetConfigRegistryValue (INPTR BSTR aKey, INPTR BSTR aValue)
     2764STDMETHODIMP Machine::SetGuestProperty (INPTR BSTR aKey, INPTR BSTR aValue)
    27652765{
    27662766#ifndef VBOX_WITH_INFO_SVC
     
    28042804            {
    28052805                ComAssertRet (!console.isNull(), E_FAIL);
    2806                 hrc = console->SetConfigRegistryValue (aKey, aValue);
     2806                hrc = console->SetGuestProperty (aKey, aValue);
    28072807            }
    28082808            break;
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r9937 r10000  
    17841784        Returns associated global extra data.
    17851785
    1786         If the reuqested data @a key does not exist, this function will
     1786        If the requested data @a key does not exist, this function will
    17871787        succeed and return @c NULL in the @a value argument.
    17881788      </desc>
     
    17991799        Sets associated global extra data.
    18001800
    1801         If you pass @c NULL as a key @a vaule, the given @a key will be
     1801        If you pass @c NULL as a key @a value, the given @a key will be
    18021802        deleted.
    18031803
     
    34683468    </method>
    34693469
    3470     <method name="getConfigRegistryValue">
    3471       <desc>
    3472         Reads a value from the machine's host/guest configuration registry.
     3470    <method name="getGuestProperty">
     3471      <desc>
     3472        Reads a value from the machine's host/guest property store.
    34733473      </desc>
    34743474      <param name="key" type="wstring" dir="in">
     
    34853485    </method>
    34863486
    3487     <method name="setConfigRegistryValue">
     3487    <method name="setGuestProperty">
    34883488      <desc>
    34893489        Sets, changes or deletes a value in the machine's host/guest
    3490         configuration registry.
     3490        property store.
    34913491      </desc>
    34923492      <param name="key" type="wstring" dir="in">
     
    45884588    </method>
    45894589
    4590     <method name="getConfigRegistryValue">
    4591       <desc>
    4592         Reads a value from the host/guest configuration registry.
     4590    <method name="getGuestProperty">
     4591      <desc>
     4592        Reads a value from the host/guest property store.
    45934593      </desc>
    45944594      <param name="key" type="wstring" dir="in">
     
    46054605    </method>
    46064606
    4607     <method name="setConfigRegistryValue">
    4608       <desc>
    4609         Sets, changes or deletes a value in the host/guest configuration
    4610         registry.
     4607    <method name="setGuestProperty">
     4608      <desc>
     4609        Sets, changes or deletes a value in the host/guest property store.
    46114610      </desc>
    46124611      <param name="key" type="wstring" dir="in">
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r9883 r10000  
    148148    STDMETHOD(RegisterCallback) (IConsoleCallback *aCallback);
    149149    STDMETHOD(UnregisterCallback)(IConsoleCallback *aCallback);
    150     STDMETHOD(GetConfigRegistryValue)(INPTR BSTR aKey, BSTR *aValue);
    151     STDMETHOD(SetConfigRegistryValue)(INPTR BSTR aKey, INPTR BSTR aValue);
     150    STDMETHOD(GetGuestProperty)(INPTR BSTR aKey, BSTR *aValue);
     151    STDMETHOD(SetGuestProperty)(INPTR BSTR aKey, INPTR BSTR aValue);
    152152
    153153    // public methods for internal purposes only
  • trunk/src/VBox/Main/include/MachineImpl.h

    r9937 r10000  
    527527    STDMETHOD(CanShowConsoleWindow) (BOOL *aCanShow);
    528528    STDMETHOD(ShowConsoleWindow) (ULONG64 *aWinId);
    529     STDMETHOD(GetConfigRegistryValue) (INPTR BSTR aKey, BSTR *aValue);
    530     STDMETHOD(SetConfigRegistryValue) (INPTR BSTR aKey, INPTR BSTR aValue);
     529    STDMETHOD(GetGuestProperty) (INPTR BSTR aKey, BSTR *aValue);
     530    STDMETHOD(SetGuestProperty) (INPTR BSTR aKey, INPTR BSTR aValue);
    531531
    532532    STDMETHOD(GetProcessorUsage) (ULONG *user, ULONG *system);
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