From f39d8634ed8dd446cd2bb64b65a037613ed59eb5 Mon Sep 17 00:00:00 2001 From: pbd Date: Tue, 27 Nov 2001 16:40:14 +0000 Subject: [PATCH] back out jack_port_name() (port_t is opaque) git-svn-id: svn+ssh://jackaudio.org/trunk/jack@44 0c269be4-1314-0410-8aa9-9f06e86f4224 --- fltk_client.cc | 7 ++++--- jack/jack.h | 4 ---- simple_client.c | 4 ++-- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/fltk_client.cc b/fltk_client.cc index 3bc7cc4..e6e1402 100644 --- a/fltk_client.cc +++ b/fltk_client.cc @@ -81,11 +81,12 @@ main (int argc, char *argv[]) printf ("client activated\n"); - if (jack_port_connect (client, "ALSA I/O:Input 1", jack_port_name (my_input_port))) { + + if (jack_port_connect (client, "ALSA I/O:Input 1", "myinput")) { fprintf (stderr, "cannot connect input ports\n"); } - - if (jack_port_connect (client, jack_port_name (my_output_port), "ALSA I/O:Output 1")) { + + if (jack_port_connect (client, "myoutput", "ALSA I/O:Output 1")) { fprintf (stderr, "cannot connect output ports\n"); } diff --git a/jack/jack.h b/jack/jack.h index 5f9490f..86f0183 100644 --- a/jack/jack.h +++ b/jack/jack.h @@ -217,10 +217,6 @@ jack_port_t **jack_get_ports (jack_client_t *, int jack_engine_takeover_timebase (jack_client_t *); void jack_update_time (jack_client_t *, nframes_t); -/* useful access functions */ - -static __inline__ const char * jack_port_name (jack_port_t *port) { return port->shared->name; } - #ifdef __cplusplus } #endif diff --git a/simple_client.c b/simple_client.c index c0dffd1..223fdb0 100644 --- a/simple_client.c +++ b/simple_client.c @@ -66,11 +66,11 @@ main (int argc, char *argv[]) printf ("client activated\n"); - if (jack_port_connect (client, "ALSA I/O:Input 1", jack_port_name (my_input_port))) { + if (jack_port_connect (client, "ALSA I/O:Input 1", "myinput")) { fprintf (stderr, "cannot connect input ports\n"); } - if (jack_port_connect (client, jack_port_name (my_output_port), "ALSA I/O:Output 1")) { + if (jack_port_connect (client, "myoutput", "ALSA I/O:Output 1")) { fprintf (stderr, "cannot connect output ports\n"); }