From 4e9ed4569ad6ffeafae9a8acebb48e9c69921dc1 Mon Sep 17 00:00:00 2001 From: Torben Hohn Date: Fri, 27 Nov 2009 17:41:23 +0100 Subject: [PATCH] send session notifications to specific clients (2/2) --- jackd/engine.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jackd/engine.c b/jackd/engine.c index bdb51f3..426c008 100644 --- a/jackd/engine.c +++ b/jackd/engine.c @@ -2634,6 +2634,12 @@ jack_do_session_notify (jack_engine_t *engine, jack_request_t *req, int reply_fd if( client->control->uid == 0 ) { client->control->uid=jack_engine_get_max_uuid( engine ) + 1; } + + // in case we only want to send to a special client. + // uuid assign is still complete. not sure if thats necessary. + if( (req->x.session.target[0] != 0) && strcmp(req->x.session.target, client->control->name) ) + continue; + reply = jack_deliver_event (engine, client, &event); if (write (reply_fd, (const void *) &client->control->uid, sizeof (client->control->uid))