File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -7,20 +7,34 @@ namespace LibGit2Sharp.Core
7
7
/// A git filter
8
8
/// </summary>
9
9
[ StructLayout ( LayoutKind . Sequential ) ]
10
- internal struct GitFilter
10
+ internal class GitFilter
11
11
{
12
12
public uint version ;
13
13
14
14
public IntPtr attributes ;
15
15
16
16
public IntPtr init ;
17
17
18
- public IntPtr shutdown ;
18
+ public git_filter_shutdown_fn shutdown ;
19
19
20
20
public IntPtr check ;
21
21
22
22
public IntPtr apply ;
23
23
24
24
public IntPtr cleanup ;
25
+
26
+ /* The libgit2 structure definition ends here. Subsequent fields are for libgit2sharp bookkeeping. */
27
+
28
+ /// <summary>
29
+ /// Shutdown callback on filter
30
+ ///
31
+ /// Specified as `filter.shutdown`, this is an optional callback invoked
32
+ /// when the filter is unregistered or when libgit2 is shutting down. It
33
+ /// will be called once at most and should release resources as needed.
34
+ /// This may be called even if the `initialize` callback was not made.
35
+ /// Typically this function will free the `git_filter` object itself.
36
+ /// </summary>
37
+ public delegate void git_filter_shutdown_fn ( IntPtr filter ) ;
38
+
25
39
}
26
40
}
You can’t perform that action at this time.
0 commit comments