qio_channel_websock_source_prepare(GSource *source,

                                   gint *timeout)

{

    QIOChannelWebsockSource *wsource = (QIOChannelWebsockSource *)source;

    GIOCondition cond = 0;

    *timeout = -1;



    if (wsource->wioc->rawinput.offset) {

        cond |= G_IO_IN;

    }

    if (wsource->wioc->rawoutput.offset < QIO_CHANNEL_WEBSOCK_MAX_BUFFER) {

        cond |= G_IO_OUT;

    }



    return cond & wsource->condition;

}

qio_channel_websock_source_prepare(GSource *source,

                                   gint *timeout)

{

    QIOChannelWebsockSource *wsource = (QIOChannelWebsockSource *)source;

    GIOCondition cond = 0;

    *timeout = -1;



    if (wsource->wioc->rawinput.offset) {

        cond |= G_IO_IN;

    }

    if (wsource->wioc->rawoutput.offset < QIO_CHANNEL_WEBSOCK_MAX_BUFFER) {

        cond |= G_IO_OUT;

    }



    return cond & wsource->condition;

}

qio_channel_websock_source_prepare(GSource *source,                                    gint *timeout)     *timeout = -1;     if (wsource->wioc->rawinput.offset) {     QIOChannelWebsockSource *wsource = (QIOChannelWebsockSource *)source;     GIOCondition cond = 0;     if (wsource->wioc->rawinput.offset) {         cond |= G_IO_IN;     if (wsource->wioc->rawoutput.offset < QIO_CHANNEL_WEBSOCK_MAX_BUFFER) {         cond |= G_IO_OUT;     return cond & wsource->condition;     GIOCondition cond = 0;     if (wsource->wioc->rawinput.offset) {         cond |= G_IO_IN;     if (wsource->wioc->rawoutput.offset < QIO_CHANNEL_WEBSOCK_MAX_BUFFER) {         cond |= G_IO_OUT;
FUNC_0(GSource *VAR_0,

                                   gint *VAR_1)

{

    QIOChannelWebsockSource *wsource = (QIOChannelWebsockSource *)VAR_0;

    GIOCondition cond = 0;

    *VAR_1 = -1;



    if (wsource->wioc->rawinput.offset) {

        cond |= G_IO_IN;

    }

    if (wsource->wioc->rawoutput.offset < QIO_CHANNEL_WEBSOCK_MAX_BUFFER) {

        cond |= G_IO_OUT;

    }



    return cond & wsource->condition;

}

FUNC_0(GSource *VAR_0,
gint *VAR_1)
{ QIOChannelWebsockSource *wsource = (QIOChannelWebsockSource *)VAR_0; GIOCondition cond = 0; *VAR_1 = -1; if (wsource->wioc->rawinput.offset) { cond |= G_IO_IN; } if (wsource->wioc->rawoutput.offset < QIO_CHANNEL_WEBSOCK_MAX_BUFFER) { cond |= G_IO_OUT; } return cond & wsource->condition; }