MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / VersionToString

Method VersionToString

src/libcec/CECTypeUtils.h:543–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541 }
542
543 static std::string VersionToString(uint32_t version)
544 {
545 uint32_t major, minor, patch;
546 if (version <= 0x2200)
547 {
548 major = LIBCEC_UINT_TO_VERSION_MAJOR_OLD(version);
549 minor = LIBCEC_UINT_TO_VERSION_MINOR_OLD(version);
550 patch = LIBCEC_UINT_TO_VERSION_PATCH_OLD(version);
551 }
552 else
553 {
554 major = LIBCEC_UINT_TO_VERSION_MAJOR(version);
555 minor = LIBCEC_UINT_TO_VERSION_MINOR(version);
556 patch = LIBCEC_UINT_TO_VERSION_PATCH(version);
557 }
558 return StringUtils::Format("%u.%u.%u", major, minor, patch);
559 }
560
561 static const char *ToString(const cec_abort_reason reason)
562 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected