cec-config: always set the hdmi port number and device, or v1.4- clients won't work...
[deb_libcec.git] / src / lib / LibCECC.cpp
index b57b1074b66a4c9c1d06129d690289d5939a1251..fd10bbd504ce68400c88ef92ce3b341fc7527215 100644 (file)
@@ -390,4 +390,19 @@ cec_logical_addresses cec_get_logical_addresses(void)
   return addr;
 }
 
+int cec_get_current_configuration(libcec_configuration *configuration)
+{
+  return cec_parser ? (cec_parser->GetCurrentConfiguration(configuration) ? 1 : 0) : -1;
+}
+
+int cec_can_persist_configuration(void)
+{
+  return cec_parser ? (cec_parser->CanPersistConfiguration() ? 1 : 0) : -1;
+}
+
+int persist_configuration(libcec_configuration *configuration)
+{
+  return cec_parser ? (cec_parser->PersistConfiguration(configuration) ? 1 : 0) : -1;
+}
+
 //@}