diff --git a/libs/backends/jack/weak_libjack.def b/libs/backends/jack/weak_libjack.def index 34eb94ce51..34902681d5 100644 --- a/libs/backends/jack/weak_libjack.def +++ b/libs/backends/jack/weak_libjack.def @@ -65,8 +65,8 @@ JPFUN(1, int, port_unregister, (jack_client_t *c, jack_port_t *p), (c JPFUN(1, const char *, port_type, (const jack_port_t *p), (p), 0) JPFUN(1, const char **, port_get_connections, (const jack_port_t *p), (p), 0) JPFUN(1, const char **, port_get_all_connections, (const jack_client_t *c, const jack_port_t *p), (c,p), 0) -JPFUN(1, int, port_set_name, (jack_port_t *p, const char *n), (p,n), 0) -JVFUN(0, port_rename, (jack_client_t*, jack_port_t *p, const char *n), (c, p,n)) +JPFUN(1, int, port_set_name, (jack_port_t *p, const char *n), (p,n), -1) +JXFUN(0, int, port_rename, (jack_client_t *c, jack_port_t *p, const char *n), (c,p,n), return jack_port_set_name (p,n);) JPFUN(1, int, port_disconnect, (jack_client_t *c, jack_port_t *p), (c,p), 0) JPFUN(1, int, connect, (jack_client_t *c, const char *s, const char *d), (c,s,d), -1) JPFUN(1, int, disconnect, (jack_client_t *c, const char *s, const char *d), (c,s,d), -1) diff --git a/libs/backends/jack/weak_libjack.h b/libs/backends/jack/weak_libjack.h index 769a62c5b8..3465ef1344 100644 --- a/libs/backends/jack/weak_libjack.h +++ b/libs/backends/jack/weak_libjack.h @@ -186,6 +186,9 @@ int have_libjack(void); #include #endif +// prototype for function currently only available in jack1 headers +int jack_port_rename (jack_client_t* client, jack_port_t *port, const char *port_name); + #ifdef USE_WEAK_JACK #undef jack_client_open