Skip to content

Commit

Permalink
ref - Renamed cleanup delegate type
Browse files Browse the repository at this point in the history
We've renamed cleanup delegate type

---

We've renamed cleanup delegate type to suppress a warning.

---

Type: ref
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Sep 18, 2023
1 parent 7184689 commit 60c9b3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BassBoom.Native/Interop/LowLevel/NativeLowIo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static unsafe class NativeLowIo
internal delegate int r_lseek3(IntPtr val1, long val2, int val3);

[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate void cleanup(IntPtr val1);
internal delegate void _cleanup(IntPtr val1);

/// <summary>
/// MPG123_EXPORT int mpg123_replace_buffer(mpg123_handle *mh
Expand Down Expand Up @@ -77,12 +77,12 @@ public static unsafe class NativeLowIo
/// , void (*cleanup)(void*) );
/// </summary>
[DllImport(LibraryTools.LibraryName, CharSet = CharSet.Ansi)]
internal static extern int mpg123_replace_reader_handle(mpg123_handle* mh, r_read2 r_read, r_lseek2 r_lseek, cleanup cleanup);
internal static extern int mpg123_replace_reader_handle(mpg123_handle* mh, r_read2 r_read, r_lseek2 r_lseek, _cleanup cleanup);

/// <summary>
/// MPG123_EXPORT int mpg123_reader64( mpg123_handle *mh, int (*r_read) (void *, void *, size_t, size_t *), int64_t (*r_lseek)(void *, int64_t, int), void (*cleanup)(void*) );
/// </summary>
[DllImport(LibraryTools.LibraryName, CharSet = CharSet.Ansi)]
internal static extern int mpg123_reader64(mpg123_handle* mh, r_read3 r_read, r_lseek3 r_lseek, cleanup cleanup);
internal static extern int mpg123_reader64(mpg123_handle* mh, r_read3 r_read, r_lseek3 r_lseek, _cleanup cleanup);
}
}

0 comments on commit 60c9b3f

Please sign in to comment.