Logo Search packages:      
Sourcecode: pulseaudio version File versions  Download package

int pa_context_is_pending ( pa_context c  ) 

Return non-zero if some data is pending to be written to the connection

Definition at line 788 of file context.c.

References PA_CONTEXT_AUTHORIZING, PA_CONTEXT_CONNECTING, PA_CONTEXT_READY, PA_CONTEXT_SETTING_NAME, and PA_ERR_BADSTATE.

                                         {
    pa_assert(c);
    pa_assert(PA_REFCNT_VALUE(c) >= 1);

    PA_CHECK_VALIDITY(c,
                      c->state == PA_CONTEXT_CONNECTING ||
                      c->state == PA_CONTEXT_AUTHORIZING ||
                      c->state == PA_CONTEXT_SETTING_NAME ||
                      c->state == PA_CONTEXT_READY, PA_ERR_BADSTATE);

    return (c->pstream && pa_pstream_is_pending(c->pstream)) ||
        (c->pdispatch && pa_pdispatch_is_pending(c->pdispatch)) ||
        c->client;
}


Generated by  Doxygen 1.6.0   Back to index