2 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using System.ComponentModel;
23 /// EnvironmentVariable
25 [EditorBrowsable(EditorBrowsableState.Never)]
26 static public class EnvironmentVariable
28 [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_GetEnvironmentVariable")]
29 private static extern string EnvironmentVariable_GetEnvironmentVariable(string jarg1);
31 [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_SetEnvironmentVariable")]
32 private static extern bool EnvironmentVariable_SetEnvironmentVariable(string jarg1, string jarg2);
35 /// Get value of the specified environment variable.
37 /// <param name="variable">The name of the environment variable.</param>
38 /// <returns>The value of the specified environment variable.</returns>
39 [EditorBrowsable(EditorBrowsableState.Never)]
40 static public string GetEnvironmentVariable(string variable)
42 return EnvironmentVariable_GetEnvironmentVariable(variable);
46 /// Set value of the specified environment variable.
48 /// <param name="variable">The name of the environment variable.</param>
49 /// <param name="value">String to set as a value.</param>
50 /// <returns>True on success, false on error.</returns>
51 [EditorBrowsable(EditorBrowsableState.Never)]
52 static public bool SetEnvironmentVariable(string variable, string value)
54 return EnvironmentVariable_SetEnvironmentVariable(variable, value);