Lines Matching defs:context
26 #include <pulse/context.h>
98 pa_context *context;
189 u->context = pa_context_new_with_proplist(u->thread_mainloop_api,
194 if (!u->context) {
195 pa_log("Failed to create libpulse context");
199 if (u->cookie_file && pa_context_load_cookie_from_file(u->context, u->cookie_file) != 0) {
204 pa_context_set_state_callback(u->context, context_state_cb, u);
205 if (pa_context_connect(u->context,
209 pa_log("Failed to connect libpulse context: %s", pa_strerror(pa_context_errno(u->context)));
274 if (u->context) {
275 pa_context_disconnect(u->context);
276 pa_context_unref(u->context);
277 u->context = NULL;
385 u->stream = pa_stream_new_with_proplist(u->context,
447 pa_log_debug("Context failed: %s.", pa_strerror(pa_context_errno(u->context)));
622 /* Runs in PA mainloop context */