X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FLibCecSharp%2FCecSharpTypes.h;h=74afce605671825b5f67dc62e2b00563810c5a18;hb=b5d801b811b10d640383dcd00255c042d486a857;hp=ac2b93b91f95cbb945c3633a991a1151415cbbaf;hpb=331d659ebc796b60dc460b8160cc100cee043578;p=deb_libcec.git
diff --git a/src/LibCecSharp/CecSharpTypes.h b/src/LibCecSharp/CecSharpTypes.h
index ac2b93b..74afce6 100644
--- a/src/LibCecSharp/CecSharpTypes.h
+++ b/src/LibCecSharp/CecSharpTypes.h
@@ -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
};
///
@@ -764,27 +784,32 @@ namespace CecSharp
///
public enum class CecVendorId
{
- Toshiba = 0x000039,
- Samsung = 0x0000F0,
- Denon = 0x0005CD,
- Loewe = 0x000982,
- Onkyo = 0x0009B0,
- Medion = 0x000CB8,
- Akai = 0x0020C7,
- AOC = 0x002467,
- Panasonic = 0x008045,
- Philips = 0x00903E,
- Daewoo = 0x009053,
- Yamaha = 0x00A0DE,
- Grundig = 0x00D0D5,
- Pioneer = 0x00E036,
- LG = 0x00E091,
- Sharp = 0x08001F,
- Sony = 0x080046,
- Broadcom = 0x18C086,
- Vizio = 0x6B746D,
- Benq = 0x8065E9,
- Unknown = 0
+ Toshiba = 0x000039,
+ Samsung = 0x0000F0,
+ Denon = 0x0005CD,
+ Marantz = 0x000678,
+ Loewe = 0x000982,
+ Onkyo = 0x0009B0,
+ Medion = 0x000CB8,
+ Toshiba2 = 0x000CE7,
+ PulseEight = 0x001582,
+ HarmanKardon2 = 0x001950,
+ Akai = 0x0020C7,
+ AOC = 0x002467,
+ Panasonic = 0x008045,
+ Philips = 0x00903E,
+ Daewoo = 0x009053,
+ Yamaha = 0x00A0DE,
+ Grundig = 0x00D0D5,
+ Pioneer = 0x00E036,
+ LG = 0x00E091,
+ Sharp = 0x08001F,
+ Sony = 0x080046,
+ Broadcom = 0x18C086,
+ Vizio = 0x6B746D,
+ Benq = 0x8065E9,
+ HarmanKardon = 0x9C645E,
+ Unknown = 0
};
///
@@ -1195,7 +1220,27 @@ namespace CecSharp
///
/// v2.1.1
///
- Version2_1_1 = 0x2101
+ Version2_1_1 = 0x2101,
+ ///
+ /// v2.1.2
+ ///
+ Version2_1_2 = 0x2102,
+ ///
+ /// v2.1.3
+ ///
+ Version2_1_3 = 0x2103,
+ ///
+ /// v2.1.4
+ ///
+ Version2_1_4 = 0x2104,
+ ///
+ /// v2.1.4
+ ///
+ Version2_2_0 = 0x2200,
+ ///
+ /// The current version
+ ///
+ CurrentVersion = 0x2200
};
///
@@ -1302,7 +1347,27 @@ namespace CecSharp
///
/// v2.1.1
///
- Version2_1_1 = 0x2101
+ Version2_1_1 = 0x2101,
+ ///
+ /// v2.1.2
+ ///
+ Version2_1_2 = 0x2102,
+ ///
+ /// v2.1.3
+ ///
+ Version2_1_3 = 0x2103,
+ ///
+ /// v2.1.4
+ ///
+ Version2_1_4 = 0x2104,
+ ///
+ /// v2.2.0
+ ///
+ Version2_2_0 = 0x2200,
+ ///
+ /// The current version
+ ///
+ CurrentVersion = 0x2200
};
///
@@ -1693,8 +1758,8 @@ namespace CecSharp
PhysicalAddress = CEC_DEFAULT_PHYSICAL_ADDRESS;
BaseDevice = (CecLogicalAddress)CEC_DEFAULT_BASE_DEVICE;
HDMIPort = CEC_DEFAULT_HDMI_PORT;
- ClientVersion = CecClientVersion::Version2_1_1;
- ServerVersion = CecServerVersion::Version2_1_1;
+ ClientVersion = CecClientVersion::CurrentVersion;
+ ServerVersion = CecServerVersion::CurrentVersion;
TvVendor = CecVendorId::Unknown;
GetSettingsFromROM = false;
@@ -2357,7 +2422,7 @@ namespace CecSharp
CecParameterType newType = (CecParameterType)data.paramType;
if (newType == CecParameterType::ParameterTypeString)
{
- System::String ^ newData = gcnew System::String((const char *)data.paramData, 0, 128);
+ System::String ^ newData = gcnew System::String(data.paramData ? (const char *)data.paramData : "", 0, 128);
CecParameter ^ newParam = gcnew CecParameter(newType, newData);
iReturn = m_callbacks->ReceiveAlert((CecAlert)alert, newParam);
}