return "1.6.2";
case CEC_CLIENT_VERSION_1_6_3:
return "1.6.3";
+ case CEC_CLIENT_VERSION_1_7_0:
+ return "1.7.0";
+ case CEC_CLIENT_VERSION_1_7_1:
+ return "1.7.1";
default:
return "Unknown";
}
return "1.6.2";
case CEC_SERVER_VERSION_1_6_3:
return "1.6.3";
+ case CEC_SERVER_VERSION_1_7_0:
+ return "1.7.0";
+ case CEC_SERVER_VERSION_1_7_1:
+ return "1.7.1";
default:
return "Unknown";
}
}
+
+ static const char *ToString(const cec_abort_reason reason)
+ {
+ switch(reason)
+ {
+ case CEC_ABORT_REASON_UNRECOGNIZED_OPCODE:
+ return "unrecognised opcode";
+ case CEC_ABORT_REASON_NOT_IN_CORRECT_MODE_TO_RESPOND:
+ return "not in correct mode to respond";
+ case CEC_ABORT_REASON_CANNOT_PROVIDE_SOURCE:
+ return "cannot provide source";
+ case CEC_ABORT_REASON_INVALID_OPERAND:
+ return "invalid operand";
+ case CEC_ABORT_REASON_REFUSED:
+ return "refused";
+ default:
+ return "unknown";
+ }
+ }
};
}