Logo Search packages:      
Sourcecode: pulseaudio version File versions

const char* pa_context_get_server ( pa_context c  ) 

Return the server name this context is connected to.

Definition at line 1125 of file context.c.

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

    if (!c->server)
        return NULL;

    if (*c->server == '{') {
        char *e = strchr(c->server+1, '}');
        return e ? e+1 : c->server;
    }

    return c->server;
}


Generated by  Doxygen 1.6.0   Back to index