Browse Source

send session notifications to specific clients (2/2)

tags/0.120.1
Torben Hohn 16 years ago
parent
commit
4e9ed4569a
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      jackd/engine.c

+ 6
- 0
jackd/engine.c View File

@@ -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))


Loading…
Cancel
Save