void qio_dns_resolver_lookup_result(QIODNSResolver *resolver,

                                    QIOTask *task,

                                    size_t *naddrs,

                                    SocketAddress ***addrs)

{

    struct QIODNSResolverLookupData *data =

        qio_task_get_result_pointer(task);

    size_t i;



    *naddrs = 0;

    *addrs = NULL;

    if (!data) {

        return;

    }



    *naddrs = data->naddrs;

    *addrs = g_new0(SocketAddress *, data->naddrs);

    for (i = 0; i < data->naddrs; i++) {

        (*addrs)[i] = QAPI_CLONE(SocketAddress, data->addrs[i]);

    }

}

void qio_dns_resolver_lookup_result(QIODNSResolver *resolver,

                                    QIOTask *task,

                                    size_t *naddrs,

                                    SocketAddress ***addrs)

{

    struct QIODNSResolverLookupData *data =

        qio_task_get_result_pointer(task);

    size_t i;



    *naddrs = 0;

    *addrs = NULL;

    if (!data) {

        return;

    }



    *naddrs = data->naddrs;

    *addrs = g_new0(SocketAddress *, data->naddrs);

    for (i = 0; i < data->naddrs; i++) {

        (*addrs)[i] = QAPI_CLONE(SocketAddress, data->addrs[i]);

    }

}

void FUNC_0(QIODNSResolver *VAR_0,

                                    QIOTask *VAR_1,

                                    size_t *VAR_2,

                                    SocketAddress ***VAR_3)

{

    struct QIODNSResolverLookupData *VAR_4 =

        qio_task_get_result_pointer(VAR_1);

    size_t i;



    *VAR_2 = 0;

    *VAR_3 = NULL;

    if (!VAR_4) {

        return;

    }



    *VAR_2 = VAR_4->VAR_2;

    *VAR_3 = g_new0(SocketAddress *, VAR_4->VAR_2);

    for (i = 0; i < VAR_4->VAR_2; i++) {

        (*VAR_3)[i] = QAPI_CLONE(SocketAddress, VAR_4->VAR_3[i]);

    }

}

void FUNC_0(QIODNSResolver *VAR_0,
QIOTask *VAR_1,
size_t *VAR_2,
SocketAddress ***VAR_3)
{ struct QIODNSResolverLookupData *VAR_4 =
qio_task_get_result_pointer(VAR_1); size_t i; *VAR_2 = 0; *VAR_3 = NULL; if (!VAR_4) { return; } *VAR_2 = VAR_4->VAR_2; *VAR_3 = g_new0(SocketAddress *, VAR_4->VAR_2); for (i = 0; i < VAR_4->VAR_2; i++) { (*VAR_3)[i] = QAPI_CLONE(SocketAddress, VAR_4->VAR_3[i]); } }