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

int pa_context_is_local ( pa_context c  ) 

Returns 1 when the connection is to a local daemon. Returns negative when no connection has been made yet.

Since:
0.5

Definition at line 970 of file context.c.

References PA_ERR_BADSTATE.

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

    PA_CHECK_VALIDITY(c, c->is_local >= 0, PA_ERR_BADSTATE);

    return c->is_local;
}


Generated by  Doxygen 1.6.0   Back to index