mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Reformat code.
This commit is contained in:
@@ -39,19 +39,13 @@ namespace DiscImageChef.Devices.FreeBSD
|
||||
static class Extern
|
||||
{
|
||||
[DllImport("libc", CharSet = CharSet.Ansi, SetLastError = true)]
|
||||
internal static extern int open(
|
||||
string pathname,
|
||||
[MarshalAs(UnmanagedType.U4)]
|
||||
FileFlags flags);
|
||||
internal static extern int open(string pathname, [MarshalAs(UnmanagedType.U4)] FileFlags flags);
|
||||
|
||||
[DllImport("libc")]
|
||||
internal static extern int close(int fd);
|
||||
|
||||
[DllImport("libcam", CharSet = CharSet.Ansi, SetLastError = true)]
|
||||
internal static extern IntPtr cam_open_device(
|
||||
string path,
|
||||
[MarshalAs(UnmanagedType.U4)]
|
||||
FileFlags flags);
|
||||
internal static extern IntPtr cam_open_device(string path, [MarshalAs(UnmanagedType.U4)] FileFlags flags);
|
||||
|
||||
[DllImport("libcam", CharSet = CharSet.Ansi, SetLastError = true)]
|
||||
internal static extern void cam_close_device(IntPtr dev);
|
||||
@@ -68,5 +62,4 @@ namespace DiscImageChef.Devices.FreeBSD
|
||||
[DllImport("libc")]
|
||||
internal static extern int ioctl(int fd, FreebsdIoctl request, IntPtr argp);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user