Lines Matching defs:context
40 pa_context *context;
63 *(rerror) = pa_context_errno((p)->context); \
70 if (!(p)->context || !PA_CONTEXT_IS_GOOD(pa_context_get_state((p)->context)) || \
72 if (((p)->context && pa_context_get_state((p)->context) == PA_CONTEXT_FAILED) || \
75 *(rerror) = pa_context_errno((p)->context); \
163 if (!(p->context = pa_context_new(pa_threaded_mainloop_get_api(p->mainloop), name)))
166 pa_context_set_state_callback(p->context, context_state_cb, p);
168 if (pa_context_connect(p->context, server, 0, NULL) < 0) {
169 error = pa_context_errno(p->context);
181 state = pa_context_get_state(p->context);
187 error = pa_context_errno(p->context);
191 /* Wait until the context is ready */
195 if (!(p->stream = pa_stream_new(p->context, stream_name, ss, map))) {
196 error = pa_context_errno(p->context);
217 error = pa_context_errno(p->context);
230 error = pa_context_errno(p->context);
261 if (s->context) {
262 pa_context_disconnect(s->context);
263 pa_context_unref(s->context);
498 CHECK_SUCCESS_GOTO(p, rerror, pa_context_errno(p->context) == PA_ERR_NODATA, unlock_and_fail);