Logo Search packages:      
Sourcecode: pulseaudio version File versions

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 919 of file context.c.

References PA_CONTEXT_IS_GOOD(), and PA_ERR_BADSTATE.

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

    PA_CHECK_VALIDITY(c, PA_CONTEXT_IS_GOOD(c->state), 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