X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FLibCecSharp%2FCecSharpTypes.h;h=89c9d3bd49eb2257a899176b8c85421fc35fac8b;hb=b53bfc2d959e562ee603cc7d74298d1a42fba57e;hp=ff97ef42f23e0cee290705725f8c7a420ae9e60c;hpb=32e33ada5015b494e8fb66e400484876d47b87f2;p=deb_libcec.git
diff --git a/src/LibCecSharp/CecSharpTypes.h b/src/LibCecSharp/CecSharpTypes.h
index ff97ef4..89c9d3b 100644
--- a/src/LibCecSharp/CecSharpTypes.h
+++ b/src/LibCecSharp/CecSharpTypes.h
@@ -2,7 +2,7 @@
/*
* This file is part of the libCEC(R) library.
*
-* libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved.
+* libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited. All rights reserved.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
@@ -200,7 +200,27 @@ namespace CecSharp
/// The device needs servicing. This is set when the firmware can be upgraded, or when a problem with the firmware is detected.
/// The latest firmware flash tool can be downloaded from http://packages.pulse-eight.net/
///
- ServiceDevice = 1
+ ServiceDevice = 0,
+ ///
+ /// The connection to the adapter was lost, probably because the device got unplugged.
+ ///
+ ConnectionLost,
+ ///
+ /// No permission from the OS to access the adapter.
+ ///
+ PermissionError,
+ ///
+ /// The device is being used by another program.
+ ///
+ PortBusy,
+ ///
+ /// The physical address that is assigned to the adapter is already being used.
+ ///
+ PhysicalAddressError,
+ ///
+ /// The TV does not respond to polls.
+ ///
+ TVPollFailed
};
///
@@ -1187,7 +1207,27 @@ namespace CecSharp
///
/// v2.0.5
///
- Version2_0_5 = 0x2005
+ Version2_0_5 = 0x2005,
+ ///
+ /// v2.1.0
+ ///
+ Version2_1_0 = 0x2100,
+ ///
+ /// v2.1.1
+ ///
+ Version2_1_1 = 0x2101,
+ ///
+ /// v2.1.2
+ ///
+ Version2_1_2 = 0x2102,
+ ///
+ /// v2.1.3
+ ///
+ Version2_1_3 = 0x2103,
+ ///
+ /// The current version
+ ///
+ CurrentVersion = 0x2103
};
///
@@ -1286,7 +1326,27 @@ namespace CecSharp
///
/// v2.0.5
///
- Version2_0_5 = 0x2005
+ Version2_0_5 = 0x2005,
+ ///
+ /// v2.1.0
+ ///
+ Version2_1_0 = 0x2100,
+ ///
+ /// v2.1.1
+ ///
+ Version2_1_1 = 0x2101,
+ ///
+ /// v2.1.2
+ ///
+ Version2_1_2 = 0x2102,
+ ///
+ /// v2.1.3
+ ///
+ Version2_1_3 = 0x2103,
+ ///
+ /// The current version
+ ///
+ CurrentVersion = 0x2103
};
///
@@ -1309,7 +1369,11 @@ namespace CecSharp
///
/// Raspberry Pi
///
- RaspberryPi = 0x100
+ RaspberryPi = 0x100,
+ ///
+ /// TDA995x
+ ///
+ TDA995x = 0x200
};
///
@@ -1673,8 +1737,8 @@ namespace CecSharp
PhysicalAddress = CEC_DEFAULT_PHYSICAL_ADDRESS;
BaseDevice = (CecLogicalAddress)CEC_DEFAULT_BASE_DEVICE;
HDMIPort = CEC_DEFAULT_HDMI_PORT;
- ClientVersion = CecClientVersion::VersionPre1_5;
- ServerVersion = CecServerVersion::VersionPre1_5;
+ ClientVersion = CecClientVersion::CurrentVersion;
+ ServerVersion = CecServerVersion::CurrentVersion;
TvVendor = CecVendorId::Unknown;
GetSettingsFromROM = false;
@@ -1782,6 +1846,9 @@ namespace CecSharp
if (ServerVersion >= CecServerVersion::Version1_8_2)
AdapterType = (CecAdapterType)config.adapterType;
+
+ if (ServerVersion >= CecServerVersion::Version2_1_0)
+ PowerOnScreensaver = config.bPowerOnScreensaver == 1;
}
///
@@ -1920,6 +1987,11 @@ namespace CecSharp
/// The type of adapter that libCEC is connected to.
///
property CecAdapterType AdapterType;
+
+ ///
+ /// True to power on when quitting the screensaver.
+ ///
+ property bool PowerOnScreensaver;
};
// the callback methods are called by unmanaged code, so we need some delegates for this