From 4d24021ff3058df9cb428b5fe07ee1bbd1cd2754 Mon Sep 17 00:00:00 2001 From: theno23 Date: Thu, 25 Sep 2003 11:28:35 +0000 Subject: [PATCH] Changed existing connection return code to EEXIST from 0 git-svn-id: svn+ssh://jackaudio.org/trunk/jack@509 0c269be4-1314-0410-8aa9-9f06e86f4224 --- configure.in | 2 +- jack/jack.h | 3 ++- jackd/engine.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 439db07..a1b0cf6 100644 --- a/configure.in +++ b/configure.in @@ -14,7 +14,7 @@ dnl changes are made dnl --- JACK_MAJOR_VERSION=0 JACK_MINOR_VERSION=81 -JACK_MICRO_VERSION=4 +JACK_MICRO_VERSION=5 dnl --- dnl HOWTO: updating the jack protocal version diff --git a/jack/jack.h b/jack/jack.h index 043a228..3d6d424 100644 --- a/jack/jack.h +++ b/jack/jack.h @@ -447,7 +447,8 @@ int jack_port_monitoring_input (jack_port_t *port); * @pre The flags of the source port must include PortIsOutput. * @pre The flags of the destination port must include PortIsInput. * - * @return 0 on success, otherwise a non-zero error code + * @return 0 on success, EEXIST if the connection is allready made, otherwise + * a non-zero error code */ int jack_connect (jack_client_t *, const char *source_port, diff --git a/jackd/engine.c b/jackd/engine.c index 8a76e57..9a877bb 100644 --- a/jackd/engine.c +++ b/jackd/engine.c @@ -3368,7 +3368,7 @@ jack_port_do_connect (jack_engine_t *engine, for (it = srcport->connections; it; it = it->next) { if (((jack_connection_internal_t *)it->data)->destination == dstport) { - return 0; + return EEXIST; } }