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

Method HandleSetOSDName

src/libcec/implementations/CECCommandHandler.cpp:615–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613}
614
615int CCECCommandHandler::HandleSetOSDName(const cec_command &command)
616{
617 if (command.parameters.size > 0)
618 {
619 CCECBusDevice *device = GetDevice(command.initiator);
620 if (device)
621 {
622 char buf[17];
623 for (uint8_t iPtr = 0; iPtr < command.parameters.size; iPtr++)
624 buf[iPtr] = (char)command.parameters[iPtr];
625 buf[command.parameters.size] = 0;
626
627 std::string strName(buf);
628 device->SetOSDName(strName);
629
630 return COMMAND_HANDLED;
631 }
632 }
633
634 return CEC_ABORT_REASON_INVALID_OPERAND;
635}
636
637int CCECCommandHandler::HandleSetStreamPath(const cec_command &command)
638{

Callers

nothing calls this directly

Calls 1

SetOSDNameMethod · 0.45

Tested by

no test coverage detected