Add open device packet.

This commit is contained in:
2019-10-13 21:59:19 +01:00
parent c4dea2ee04
commit a83be0d5d6
2 changed files with 11 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ namespace DiscImageChef.Devices.Remote
Nop = -1,
Hello = 1,
CommandListDevices = 2,
ResponseListDevices = 3
ResponseListDevices = 3,
CommandOpen = 4
}
}

View File

@@ -68,4 +68,13 @@ namespace DiscImageChef.Devices.Remote
public int errno;
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct DicPacketCommandOpenDevice
{
public DicPacketHeader hdr;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)]
public string device_path;
}
}