static int curl_sock_cb(CURL *curl, curl_socket_t fd, int action,

                        void *s, void *sp)

{

    DPRINTF("CURL (AIO): Sock action %d on fd %d\n", action, fd);

    switch (action) {

        case CURL_POLL_IN:

            qemu_aio_set_fd_handler(fd, curl_multi_do, NULL, s);

            break;

        case CURL_POLL_OUT:

            qemu_aio_set_fd_handler(fd, NULL, curl_multi_do, s);

            break;

        case CURL_POLL_INOUT:

            qemu_aio_set_fd_handler(fd, curl_multi_do, curl_multi_do, s);

            break;

        case CURL_POLL_REMOVE:

            qemu_aio_set_fd_handler(fd, NULL, NULL, NULL);

            break;

    }



    return 0;

}

static int curl_sock_cb(CURL *curl, curl_socket_t fd, int action,

                        void *s, void *sp)

{

    DPRINTF("CURL (AIO): Sock action %d on fd %d\n", action, fd);

    switch (action) {

        case CURL_POLL_IN:

            qemu_aio_set_fd_handler(fd, curl_multi_do, NULL, s);

            break;

        case CURL_POLL_OUT:

            qemu_aio_set_fd_handler(fd, NULL, curl_multi_do, s);

            break;

        case CURL_POLL_INOUT:

            qemu_aio_set_fd_handler(fd, curl_multi_do, curl_multi_do, s);

            break;

        case CURL_POLL_REMOVE:

            qemu_aio_set_fd_handler(fd, NULL, NULL, NULL);

            break;

    }



    return 0;

}

static int FUNC_0(CURL *VAR_0, curl_socket_t VAR_1, int VAR_2,

                        void *VAR_3, void *VAR_4)

{

    DPRINTF("CURL (AIO): Sock VAR_2 %d on VAR_1 %d\n", VAR_2, VAR_1);

    switch (VAR_2) {

        case CURL_POLL_IN:

            qemu_aio_set_fd_handler(VAR_1, curl_multi_do, NULL, VAR_3);

            break;

        case CURL_POLL_OUT:

            qemu_aio_set_fd_handler(VAR_1, NULL, curl_multi_do, VAR_3);

            break;

        case CURL_POLL_INOUT:

            qemu_aio_set_fd_handler(VAR_1, curl_multi_do, curl_multi_do, VAR_3);

            break;

        case CURL_POLL_REMOVE:

            qemu_aio_set_fd_handler(VAR_1, NULL, NULL, NULL);

            break;

    }



    return 0;

}

static int FUNC_0(CURL *VAR_0, curl_socket_t VAR_1, int VAR_2,
void *VAR_3, void *VAR_4)
{ DPRINTF("CURL (AIO): Sock VAR_2 %d on VAR_1 %d\n", VAR_2, VAR_1); switch (VAR_2) { case CURL_POLL_IN:
qemu_aio_set_fd_handler(VAR_1, curl_multi_do, NULL, VAR_3); break; case CURL_POLL_OUT:
qemu_aio_set_fd_handler(VAR_1, NULL, curl_multi_do, VAR_3); break; case CURL_POLL_INOUT:
qemu_aio_set_fd_handler(VAR_1, curl_multi_do, curl_multi_do, VAR_3); break; case CURL_POLL_REMOVE:
qemu_aio_set_fd_handler(VAR_1, NULL, NULL, NULL); break; } return 0; }