13
0

fix weak jack w/new jack_port_rename()

This commit is contained in:
Robin Gareus 2015-07-04 00:20:12 +02:00
parent 35ab6e9075
commit d48a5f7068
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -186,6 +186,9 @@ int have_libjack(void);
#include <jack/metadata.h>
#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