MiniDisplay API update.
1.1 --- a/Server/Display.cs Fri Aug 22 22:48:30 2014 +0200
1.2 +++ b/Server/Display.cs Mon Aug 25 22:06:20 2014 +0200
1.3 @@ -8,6 +8,9 @@
1.4
1.5 namespace SharpDisplayManager
1.6 {
1.7 + /// <summary>
1.8 + /// Provide access to our display hardware through MiniDisplay API.
1.9 + /// </summary>
1.10 class Display
1.11 {
1.12
1.13 @@ -87,17 +90,17 @@
1.14
1.15 public void RequestPowerSupplyStatus()
1.16 {
1.17 - MiniDisplayRequestPowerSupplyStatus(iDevice);
1.18 + MiniDisplayRequest(iDevice, TMiniDisplayRequest.EMiniDisplayRequestPowerSupplyStatus);
1.19 }
1.20
1.21 public void RequestDeviceId()
1.22 {
1.23 - MiniDisplayRequestDeviceId(iDevice);
1.24 + MiniDisplayRequest(iDevice, TMiniDisplayRequest.EMiniDisplayRequestDeviceId);
1.25 }
1.26
1.27 public void RequestFirmwareRevision()
1.28 {
1.29 - MiniDisplayRequestFirmwareRevision(iDevice);
1.30 + MiniDisplayRequest(iDevice, TMiniDisplayRequest.EMiniDisplayRequestFirmwareRevision);
1.31 }
1.32
1.33 public bool PowerSupplyStatus()
1.34 @@ -229,13 +232,7 @@
1.35 public static extern bool MiniDisplayPowerSupplyStatus(IntPtr aDevice);
1.36
1.37 [DllImport("MiniDisplay.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
1.38 - public static extern void MiniDisplayRequestDeviceId(IntPtr aDevice);
1.39 -
1.40 - [DllImport("MiniDisplay.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
1.41 - public static extern void MiniDisplayRequestFirmwareRevision(IntPtr aDevice);
1.42 -
1.43 - [DllImport("MiniDisplay.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
1.44 - public static extern void MiniDisplayRequestPowerSupplyStatus(IntPtr aDevice);
1.45 + public static extern void MiniDisplayRequest(IntPtr aDevice, TMiniDisplayRequest aRequest);
1.46
1.47 [DllImport("MiniDisplay.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
1.48 public static extern TMiniDisplayRequest MiniDisplayAttemptRequestCompletion(IntPtr aDevice);