예제 #1
0
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();
    }
}
예제 #2
0
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();
}