Lines Matching defs:client

44 #include <pulsecore/client.h>
70 /* Kick a client if it doesn't authenticate within this time */
162 pa_proplist_update(s->proplist, PA_UPDATE_MERGE, c->client->proplist);
272 * let the client buffer be equally large. This does NOT mean
274 * the client-side buffer is only data that is on the way to
275 * the client. */
303 /* We keep the client buffer large enough to transfer one
304 * hardware-buffer-sized chunk at a time to the client. */
377 data.client = c->client;
704 * client. In between we'll have a safety space of size
862 data.client = c->client;
1062 pa_client_free(c->client);
1161 /* The client side is incapable of accounting correctly
1441 pa_log_debug("Notifying client about increased tlength");
1696 pa_log("protocol error, kicking client");
1945 /* Since 0.9.0 we support sending the buffer metrics back to the client */
1956 * client */
2164 /* For newer client versions (with per-source-output volumes), we try
2263 /* Since 0.9 we support sending the buffer metrics back to the client */
2272 * client */
2322 pa_log_debug("Client %s asks us to terminate.", pa_strnull(pa_proplist_gets(c->client->proplist,
2384 /* Send enable command to client */
2392 /* Send ringbuffer memblock to client */
2464 pa_proplist_setf(c->client->proplist, "native-protocol.version", "%u", c->version);
2515 pa_log_warn("Denied access to client with invalid authentication data.");
2553 /* Do not declare memfd support for 9.0 client libraries (protocol v31).
2593 /* The client enables memfd transport on its pstream only after
2645 pa_client_update_proplist(c->client, PA_UPDATE_REPLACE, p);
2651 pa_tagstruct_putu32(reply, c->client->index);
2963 pa_proplist_update(p, PA_UPDATE_MERGE, c->client->proplist);
3014 * so we need to lie about this to the client */
3180 static void client_fill_tagstruct(pa_native_connection *c, pa_tagstruct *t, pa_client *client) {
3182 pa_assert(client);
3184 pa_tagstruct_putu32(t, client->index);
3185 pa_tagstruct_puts(t, pa_strnull(pa_proplist_gets(client->proplist, PA_PROP_APPLICATION_NAME)));
3186 pa_tagstruct_putu32(t, client->module ? client->module->index : PA_INVALID_INDEX);
3187 pa_tagstruct_puts(t, client->driver);
3190 pa_tagstruct_put_proplist(t, client->proplist);
3288 pa_tagstruct_putu32(t, s->client ? s->client->index : PA_INVALID_INDEX);
3331 pa_tagstruct_putu32(t, s->client ? s->client->index : PA_INVALID_INDEX);
3389 pa_client *client = NULL;
3440 client = pa_idxset_get_by_index(c->protocol->core->clients, idx);
3455 if (!sink && !source && !client && !card && !module && !si && !so && !sce) {
3465 else if (client)
3466 client_fill_tagstruct(c, reply, client);
3695 client_name = pa_strnull(pa_proplist_gets(c->client->proplist, PA_PROP_APPLICATION_PROCESS_BINARY));
3792 client_name = pa_strnull(pa_proplist_gets(c->client->proplist, PA_PROP_APPLICATION_PROCESS_BINARY));
4130 pa_client_update_proplist(c->client, mode, p);
4176 p = c->client->proplist;
4229 pa_subscription_post(c->protocol->core, PA_SUBSCRIPTION_EVENT_CLIENT|PA_SUBSCRIPTION_EVENT_CHANGE, c->client->index);
4326 pa_client *client;
4328 client = pa_idxset_get_by_index(c->protocol->core->clients, idx);
4329 CHECK_VALIDITY(c->pstream, client, tag, PA_ERR_NOENTITY);
4332 pa_client_kill(client);
4514 pa_log_debug("%s of sink %s requested by client %" PRIu32 ".",
4515 b ? "Suspending" : "Resuming", sink->name, c->client->index);
4545 pa_log_debug("%s of source %s requested by client %" PRIu32 ".",
4546 b ? "Suspending" : "Resuming", source->name, c->client->index);
4625 client_name = pa_strnull(pa_proplist_gets(c->client->proplist, PA_PROP_APPLICATION_PROCESS_BINARY));
4680 pa_strnull(pa_proplist_gets(c->client->proplist, PA_PROP_APPLICATION_NAME)),
4930 pa_log("got %lu bytes from client", (unsigned long) chunk->length);
5033 /*** client callbacks ***/
5042 static void client_send_event_cb(pa_client *client, const char*event, pa_proplist *pl) {
5046 pa_assert(client);
5047 c = PA_NATIVE_CONNECTION(client->userdata);
5079 pa_client *client;
5096 pa_proplist_setf(data.proplist, PA_PROP_APPLICATION_NAME, "Native client (%s)", pname);
5098 client = pa_client_new(p->core, &data);
5101 if (!client)
5133 c->client = client;
5134 c->client->kill = client_kill_cb;
5135 c->client->send_event = client_send_event_cb;
5136 c->client->userdata = c;
5435 return c->client;