blob: dd56681bb26f34caac8802e06a4a2d880f5adfdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
using System;
using System.Runtime.InteropServices;
namespace HandBrake.Interop
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public struct hb_handle_s
{
public int id;
/// int
public int build;
/// char[32]
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
public string version;
/// hb_thread_t*
public IntPtr update_thread;
/// int
public int die;
/// hb_thread_t*
public IntPtr main_thread;
/// int
public int pid;
/// hb_list_t*
public IntPtr list_title;
/// hb_thread_t*
public IntPtr scan_thread;
/// hb_list_t*
public IntPtr jobs;
/// hb_job_t*
public IntPtr current_job;
/// int
public int job_count;
/// int
public int job_count_permanent;
/// int
public int work_die;
/// int
public int work_error;
/// hb_thread_t*
public IntPtr work_thread;
// This is REMOVED in the latest HB SVN
public int cpu_count;
/// hb_lock_t*
public IntPtr state_lock;
/// hb_state_t->hb_state_s
public hb_state_s state;
/// int
public int paused;
/// hb_lock_t*
public IntPtr pause_lock;
/// int
public int scanCount;
/// hb_interjob_t*
public IntPtr interjob;
}
}
|