HandleCpDeviceList STDCALL CpDeviceListCreateUpnpRoot(OhNetCallbackDevice aAdded, void* aPtrAdded, OhNetCallbackDevice aRemoved, void* aPtrRemoved) { FunctorCpiDevice added = MakeFunctorCpiDeviceC(aPtrAdded, (OhNetFunctorDevice)aAdded); FunctorCpiDevice removed = MakeFunctorCpiDeviceC(aPtrRemoved, (OhNetFunctorDevice)aRemoved); CpiDeviceList* list = new CpiDeviceListUpnpRoot(*gCpStack, added, removed); list->Start(); return (THandle)list; }
HandleCpDeviceList STDCALL CpDeviceListCreateUpnpUuid(const char* aUuid, OhNetCallbackDevice aAdded, void* aPtrAdded, OhNetCallbackDevice aRemoved, void* aPtrRemoved) { FunctorCpiDevice added = MakeFunctorCpiDeviceC(aPtrAdded, (OhNetFunctorDevice)aAdded); FunctorCpiDevice removed = MakeFunctorCpiDeviceC(aPtrRemoved, (OhNetFunctorDevice)aRemoved); const Brn uuid(aUuid); CpiDeviceList* list = new CpiDeviceListUpnpUuid(uuid, added, removed); list->Start(); return (THandle)list; }
HandleCpDeviceList STDCALL CpDeviceListCreateUpnpServiceType(const char* aDomainName, const char* aServiceType, uint32_t aVersion, OhNetCallbackDevice aAdded, void* aPtrAdded, OhNetCallbackDevice aRemoved, void* aPtrRemoved) { FunctorCpiDevice added = MakeFunctorCpiDeviceC(aPtrAdded, (OhNetFunctorDevice)aAdded); FunctorCpiDevice removed = MakeFunctorCpiDeviceC(aPtrRemoved, (OhNetFunctorDevice)aRemoved); const Brn domain(aDomainName); const Brn type(aServiceType); CpiDeviceList* list = new CpiDeviceListUpnpServiceType(*gCpStack, domain, type, aVersion, added, removed); list->Start(); return (THandle)list; }