Exemplo n.º 1
0
CURL* curlHandle(const Document* document)
{
    if (document == NULL)
        return NULL;

    DocumentLoader* docLoader = document->loader();
    if (docLoader == NULL)
        return NULL;

    ResourceLoader* resLoader = docLoader->mainResourceLoader();
    if (resLoader == NULL)
        return NULL;

    ResourceHandle* handle = resLoader->handle();
    if (handle == NULL)
        return NULL;

    ResourceHandleInternal* d = handle->getInternal();
    if (d == NULL)
        return NULL;

    return d->m_handle;
}