VirtualBox

Ignore:
Timestamp:
Sep 16, 2019 1:18:44 PM (5 years ago)
Author:
vboxsync
Message:

Main: bugref:9341: The "environment" parameter in the IMachine::launchVMProcess renamed to "environmentChanges" and changed the type from wstring to "safearray of wstrings"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r80781 r80824  
    58395839  <interface
    58405840    name="IMachine" extends="$unknown"
    5841     uuid="008d62ad-00dc-4685-00f4-60bf00fc0dbd"
     5841    uuid="13a7c7cb-02fd-4962-a578-5660a5035776"
    58425842    wsmap="managed"
    58435843    wrap-hint-server-addinterfaces="IInternalMachineControl"
     
    67326732        <link to="IConsole::powerUp"/>.
    67336733
    6734 <!-- TODO/r=bird: What about making @a environment into a smart array?  Guess
    6735 this predates our safe array support by a year or so... Dmitry wrote the text here, right?
    6736 Just rename it to @a environmentChanges and shorten the documentation to say the string
    6737 are applied onto the server environment putenv style, i.e. "VAR=VALUE" for setting/replacing
    6738 and "VAR" for unsetting. -->
    6739         The @a environment argument is a string containing definitions of
    6740         environment variables in the following format:
    6741         <pre>
    6742         NAME[=VALUE]\n
    6743         NAME[=VALUE]\n
    6744         ...
    6745         </pre>
    6746         where <tt>\\n</tt> is the new line character. These environment
    6747         variables will be appended to the environment of the VirtualBox server
    6748         process. If an environment variable exists both in the server process
    6749         and in this list, the value from this list takes precedence over the
    6750         server's variable. If the value of the environment variable is
    6751         omitted, this variable will be removed from the resulting environment.
    6752         If the environment string is @c null or empty, the server environment
    6753         is inherited by the started process as is.
     6734        The @a environmentChanges argument is a list of strings where every string contains
     6735        environment variable in the putenv style, i.e. "VAR=VALUE" for setting/replacing
     6736        and "VAR" for unsetting. These environment variables will be applied to the environment
     6737        of the VirtualBox server process. If an environment variable exists both in the server
     6738        process and in this list, the value from this list takes precedence over the
     6739        server's variable. If the value of the environment variable is omitted, this variable
     6740        will be removed from the resulting environment. If the list is empty, the server
     6741        environment is inherited by the started process as is.
    67546742
    67556743        <result name="E_UNEXPECTED">
     
    67996787        </desc>
    68006788      </param>
    6801       <param name="environment" type="wstring" dir="in">
    6802         <desc>
    6803           Environment to pass to the VM process.
     6789      <param name="environmentChanges" type="wstring" safearray="yes" dir="in">
     6790        <desc>
     6791          The list of putenv-style changes to the VM process environment.
    68046792        </desc>
    68056793      </param>
     
    2704227030  <interface
    2704327031    name="IVirtualBoxSDS" extends="$unknown" notdual="yes"
    27044     uuid="bc1a2773-18f2-4066-08ce-1e44d59d84af"
     27032    uuid="890ed3dc-cc19-43fa-8ebf-baecb6b9ec87"
    2704527033    wsmap="suppress" internal="yes"
    2704627034    reservedMethods="0" reservedAttributes="0"
     
    2713027118          </desc>
    2713127119        </param>
    27132         <param name="environmentChanges" type="wstring" dir="in">
     27120        <param name="environmentChanges" type="wstring" safearray="yes" dir="in">
    2713327121          <desc>
    27134             Environment changes to pass to the VM process, putenv style using newline as separator.
    27135             <!-- TODO: make this a safearray so values can safely contain newlines and '\'. -->
     27122            The list of putenv-style changes to the VM process environment.
     27123            See <link to="IMachine::launchVMProcess" /> for details.
    2713627124          </desc>
    2713727125        </param>
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