- Add Bundle.ImportFromArgv()
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
[DllImport(Libraries.Bundle, EntryPoint = "bundle_dup")]
internal static extern SafeBundleHandle DangerousClone(IntPtr handle);
+ [DllImport(Libraries.Bundle, EntryPoint = "bundle_import_from_argv")]
+ internal static extern SafeBundleHandle ImportFromArgv(int argc, string[] argv);
+
internal static class UnsafeCode
{
internal static unsafe int AddItem(SafeBundleHandle handle, string key, byte[] value, int offset, int count)
using System.Linq;
using System.Runtime.InteropServices;
using Tizen.Internals.Errors;
+using System.ComponentModel;
namespace Tizen.Applications
{
}
}
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static Bundle ImportFromArgv(string[] argv)
+ {
+ var ret = Interop.Bundle.ImportFromArgv(argv.Length, argv);
+ return new Bundle(ret);
+ }
+
/// <summary>
/// Destructor of the bundle class.
/// </summary>