diff options
author | sr55 <sr55.hb@outlook.com> | 2010-06-04 18:36:11 +0000 |
---|---|---|
committer | sr55 <sr55.hb@outlook.com> | 2010-06-04 18:36:11 +0000 |
commit | 73177393028b107b844b69e540b9aa29310e57ac (patch) | |
tree | 713ead7ebc1cec2e68330574bb54679486000790 /win/C#/interop/NativeList.cs | |
parent | 6141bbf563d067e4c2574f85871f1da4e1b664f2 (diff) |
WinGui:
- HandBrakeInterop Project. This can be used to tie into libhb.dll with C#. Thanks to RandomEdgy for writing this.
- Made a few minor changes to this source to make most of the libhb stuff internal to the library only. Added a 2008 project file. (This won't compile yet)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3352 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/interop/NativeList.cs')
-rw-r--r-- | win/C#/interop/NativeList.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/win/C#/interop/NativeList.cs b/win/C#/interop/NativeList.cs new file mode 100644 index 000000000..c16c09950 --- /dev/null +++ b/win/C#/interop/NativeList.cs @@ -0,0 +1,34 @@ +namespace HandBrake.Interop
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Text;
+
+ /// <summary>
+ /// Represents a HandBrake style native list.
+ /// </summary>
+ public class NativeList
+ {
+ /// <summary>
+ /// The list of native memory locations allocated for this list.
+ /// </summary>
+ private List<IntPtr> allocatedMemory = new List<IntPtr>();
+
+ /// <summary>
+ /// Gets or sets the pointer to the native list.
+ /// </summary>
+ public IntPtr ListPtr { get; set; }
+
+ /// <summary>
+ /// Gets the list of native memory locations allocated for this list.
+ /// </summary>
+ public List<IntPtr> AllocatedMemory
+ {
+ get
+ {
+ return allocatedMemory;
+ }
+ }
+ }
+}
|