Browse Source

Ported the get_connections functionality to use the new linked-list implementation.

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@258 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.109.0
kaiv 23 years ago
parent
commit
3cea35ebd6
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      jackd/engine.c

+ 3
- 6
jackd/engine.c View File

@@ -38,9 +38,6 @@
#include <limits.h>
#include <sys/mman.h>

//REMOVE ME XXX - swh
#include <glib.h>

#include <config.h>

#include <jack/internal.h>
@@ -2969,11 +2966,11 @@ jack_do_get_port_connections (jack_engine_t *engine, jack_request_t *req, int re
{
jack_port_internal_t *port = &engine->internal_ports[req->x.port_info.port_id];
GSList *node;
JSList *node;

DEBUG ("Getting connections for port '%s'.", port->shared->name);
req->x.nports = g_slist_length (port->connections);
req->x.nports = jack_slist_length (port->connections);

if (write (reply_fd, req, sizeof (*req)) < sizeof (req)) {
jack_error ("cannot write GetPortConnections result to client");
@@ -2982,7 +2979,7 @@ jack_do_get_port_connections (jack_engine_t *engine, jack_request_t *req, int re

if (req->type == GetPortConnections)
{
for (node = port->connections; node; node = g_slist_next (node) ) {
for (node = port->connections; node; node = jack_slist_next (node) ) {
jack_port_id_t port_id;
if (((jack_connection_internal_t *) node->data)->source == port)


Loading…
Cancel
Save