summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/Misc.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/Misc.cs')
-rw-r--r--win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/Misc.cs53
1 files changed, 26 insertions, 27 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/Misc.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/Misc.cs
index 36820c0c4..fd464b7c8 100644
--- a/win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/Misc.cs
+++ b/win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/Misc.cs
@@ -98,39 +98,48 @@ namespace HandBrake.Interop.HbLib
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public struct hb_metadata_s
{
- /// char[255]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
+ /// char *
+ [MarshalAs(UnmanagedType.LPStr)]
public string name;
- /// char[255]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
+ /// char *
+ [MarshalAs(UnmanagedType.LPStr)]
public string artist;
- /// char[255]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
+ /// char *
+ [MarshalAs(UnmanagedType.LPStr)]
public string composer;
- /// char[255]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
+ /// char *
+ [MarshalAs(UnmanagedType.LPStr)]
public string release_date;
- /// char[1024]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)]
+ /// char *
+ [MarshalAs(UnmanagedType.LPStr)]
public string comment;
- /// char[255]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
+ /// char *
+ [MarshalAs(UnmanagedType.LPStr)]
public string album;
- /// char[255]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
+ /// char *
+ [MarshalAs(UnmanagedType.LPStr)]
+ public string album_artist;
+
+ /// char *
+ [MarshalAs(UnmanagedType.LPStr)]
public string genre;
- /// uint32_t->unsigned int
- public uint coverart_size;
+ /// char *
+ [MarshalAs(UnmanagedType.LPStr)]
+ public string description;
+
+ /// char *
+ [MarshalAs(UnmanagedType.LPStr)]
+ public string long_description;
/// uint8_t*
- public IntPtr coverart;
+ public IntPtr list_coverart;
}
[StructLayout(LayoutKind.Sequential)]
@@ -398,16 +407,6 @@ namespace HandBrake.Interop.HbLib
public uint x;
}
- [StructLayout(LayoutKind.Sequential)]
- public struct hb_title_set_s
- {
- ///hb_list_t *
- public hb_list_s list_title;
-
- // int
- public int feature;
- }
-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void LoggingCallback(string message);
}