Updated visibility level for internal use classes

pull/2/head
Francesco Bertolaccini 2017-04-12 22:50:09 +02:00
parent 355e6ff398
commit ca5f22459e
2 changed files with 6 additions and 9 deletions

View File

@ -4,7 +4,7 @@ namespace SharpPhysFS
{ {
public partial class PhysFS public partial class PhysFS
{ {
public static class LowLevel internal static class LowLevel
{ {
public static IntPtr OpenWrite(string filename, PhysFS physFS) public static IntPtr OpenWrite(string filename, PhysFS physFS)
{ {

View File

@ -605,8 +605,7 @@ namespace SharpPhysFS
}; };
} }
[Obsolete("The non-generic variant of GetCdRomDirsCallback is meant for internal use only. Consider using one of the generic alternatives.")] void GetCdRomDirsCallback(StringCallback c, object data)
public void GetCdRomDirsCallback(StringCallback c, object data)
{ {
GCHandle objHandle = GCHandle.Alloc(data); GCHandle objHandle = GCHandle.Alloc(data);
interop.PHYSFS_getCdRomDirsCallback(c, GCHandle.ToIntPtr(objHandle)); interop.PHYSFS_getCdRomDirsCallback(c, GCHandle.ToIntPtr(objHandle));
@ -637,8 +636,7 @@ namespace SharpPhysFS
interop.PHYSFS_getCdRomDirsCallback((p, s) => c(s), IntPtr.Zero); interop.PHYSFS_getCdRomDirsCallback((p, s) => c(s), IntPtr.Zero);
} }
[Obsolete("The non-generic variant of GetSearchPathCallback is meant for internal use only. Consider using one of the generic alternatives.")] void GetSearchPathCallback(StringCallback c, object data)
public void GetSearchPathCallback(StringCallback c, object data)
{ {
GCHandle objHandle = GCHandle.Alloc(data); GCHandle objHandle = GCHandle.Alloc(data);
interop.PHYSFS_getSearchPathCallback(c, GCHandle.ToIntPtr(objHandle)); interop.PHYSFS_getSearchPathCallback(c, GCHandle.ToIntPtr(objHandle));
@ -669,8 +667,7 @@ namespace SharpPhysFS
interop.PHYSFS_getSearchPathCallback((p, s) => c(s), IntPtr.Zero); interop.PHYSFS_getSearchPathCallback((p, s) => c(s), IntPtr.Zero);
} }
[Obsolete("The non-generic variant of EnumerateFilesCallback is meant for internal use only. Consider using one of the generic alternatives.")] void EnumerateFilesCallback(string dir, EnumFilesCallback c, object data)
public void EnumerateFilesCallback(string dir, EnumFilesCallback c, object data)
{ {
GCHandle objHandle = GCHandle.Alloc(data); GCHandle objHandle = GCHandle.Alloc(data);
interop.PHYSFS_enumerateFilesCallback(dir, c, GCHandle.ToIntPtr(objHandle)); interop.PHYSFS_enumerateFilesCallback(dir, c, GCHandle.ToIntPtr(objHandle));