Lines Matching defs:context
46 static pa_context *context = NULL;
67 if (context) {
68 if (!(o = pa_context_drain(context, context_drain_complete, NULL)))
69 pa_context_disconnect(context);
128 if (context) {
129 if (pa_context_is_local(context)) {
130 pa_operation_unref(pa_context_suspend_sink_by_index(context, PA_INVALID_INDEX, 0, resume_complete, NULL));
131 pa_operation_unref(pa_context_suspend_source_by_index(context, PA_INVALID_INDEX, 0, resume_complete, NULL));
185 pa_context_unref(context);
186 context = NULL;
308 if (!(context = pa_context_new(mainloop_api, bn))) {
313 pa_context_set_state_callback(context, context_state_callback, NULL);
315 if (pa_context_connect(context, server, PA_CONTEXT_NOAUTOSPAWN, NULL) < 0) {
316 fprintf(stderr, "pa_context_connect() failed: %s\n", pa_strerror(pa_context_errno(context)));
329 if (context)
330 pa_context_unref(context);