void STDCALL ServiceActionGetName(ServiceAction aAction, const char** aName, uint32_t* aLen) { OpenHome::Net::Action* action = reinterpret_cast<OpenHome::Net::Action*>(aAction); ASSERT(action != NULL); Brn name(action->Name()); if (name.Bytes() == 0) { *aName = NULL; *aLen = 0; } else { *aName = (const char*)name.Ptr(); *aLen = name.Bytes(); } }
const char* STDCALL ServiceActionName(ServiceAction aAction) { OpenHome::Net::Action* action = reinterpret_cast<OpenHome::Net::Action*>(aAction); ASSERT(action != NULL); return (const char*)action->Name().Ptr(); }