Logo Search packages:      
Sourcecode: pulseaudio version File versions

void pa_context_set_subscribe_callback ( pa_context c,
pa_context_subscribe_cb_t  cb,
void *  userdata 
)

Set the context specific call back function that is called whenever the state of the daemon changes

Definition at line 84 of file subscribe.c.

References PA_CONTEXT_FAILED, and PA_CONTEXT_TERMINATED.

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

    if (c->state == PA_CONTEXT_TERMINATED || c->state == PA_CONTEXT_FAILED)
        return;

    c->subscribe_callback = cb;
    c->subscribe_userdata = userdata;
}


Generated by  Doxygen 1.6.0   Back to index