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

uint32_t pa_context_get_server_protocol_version ( pa_context c  ) 

Return the protocol version of the connected server.

Definition at line 1307 of file context.c.

References PA_CONTEXT_IS_GOOD(), PA_ERR_BADSTATE, PA_ERR_FORKED, and PA_INVALID_INDEX.

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

    PA_CHECK_VALIDITY_RETURN_ANY(c, !pa_detect_fork(), PA_ERR_FORKED, PA_INVALID_INDEX);
    PA_CHECK_VALIDITY_RETURN_ANY(c, PA_CONTEXT_IS_GOOD(c->state), PA_ERR_BADSTATE, PA_INVALID_INDEX);

    return c->version;
}


Generated by  Doxygen 1.6.0   Back to index