diff options
author | randomengy <[email protected]> | 2013-09-19 01:40:05 +0000 |
---|---|---|
committer | randomengy <[email protected]> | 2013-09-19 01:40:05 +0000 |
commit | db5881aaeae77debe4ef2fc71c12900600f991fd (patch) | |
tree | c1b20b538289fd85afe35e1c9d36410efe3b26de /win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/HbFunctions.cs | |
parent | 20b4e6c65010d656dafdf5b3f17ad0fcb7057b22 (diff) |
Interop: Removed unused structs and constants and added warnings in libhb code to update the ones that are used. Broke out types for each struct into their own file. Switched all references to hb_handle_s to IntPtr and deleted that non-working struct.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5786 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/HbFunctions.cs')
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/HbFunctions.cs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/HbFunctions.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/HbFunctions.cs index c1a463037..6c3f70357 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/HbFunctions.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/HbFunctions.cs @@ -13,6 +13,9 @@ namespace HandBrake.Interop.HbLib using System;
using System.Runtime.InteropServices;
+ /// <summary>
+ /// Contains p-invoke function declarations to hblib.
+ /// </summary>
public static class HBFunctions
{
[DllImport("hb.dll", EntryPoint = "hb_register_logger", CallingConvention = CallingConvention.Cdecl)]
@@ -41,20 +44,20 @@ namespace HandBrake.Interop.HbLib /// Return Type: char*
///param0: hb_handle_t*
[DllImport("hb.dll", EntryPoint = "hb_get_version", CallingConvention = CallingConvention.Cdecl)]
- public static extern IntPtr hb_get_version(ref hb_handle_s param0);
+ public static extern IntPtr hb_get_version(IntPtr hbHandle);
/// Return Type: int
///param0: hb_handle_t*
[DllImport("hb.dll", EntryPoint = "hb_get_build", CallingConvention = CallingConvention.Cdecl)]
- public static extern int hb_get_build(ref hb_handle_s param0);
+ public static extern int hb_get_build(IntPtr hbHandle);
/// Return Type: int
///h: hb_handle_t*
///version: char**
[DllImport("hb.dll", EntryPoint = "hb_check_update", CallingConvention = CallingConvention.Cdecl)]
- public static extern int hb_check_update(ref hb_handle_s h, ref IntPtr version);
+ public static extern int hb_check_update(IntPtr handle, ref IntPtr version);
/// Return Type: char*
@@ -175,13 +178,13 @@ namespace HandBrake.Interop.HbLib ///param0: hb_handle_t*
///param1: hb_state_t*
[DllImport("hb.dll", EntryPoint = "hb_get_state2", CallingConvention = CallingConvention.Cdecl)]
- public static extern void hb_get_state2(ref hb_handle_s param0, ref hb_state_s param1);
+ public static extern void hb_get_state2(IntPtr hbHandle, ref hb_state_s param1);
/// Return Type: int
///param0: hb_handle_t*
[DllImport("hb.dll", EntryPoint = "hb_get_scancount", CallingConvention = CallingConvention.Cdecl)]
- public static extern int hb_get_scancount(ref hb_handle_s param0);
+ public static extern int hb_get_scancount(IntPtr hbHandle);
/// Return Type: void
|