Signed-off-by: falkTX <falktx@falktx.com>tags/v2.1-rc1
@@ -293,6 +293,7 @@ JACKBRIDGE_API bool jackbridge_client_close(jack_client_t* client); | |||||
JACKBRIDGE_API int jackbridge_client_name_size(); | JACKBRIDGE_API int jackbridge_client_name_size(); | ||||
JACKBRIDGE_API char* jackbridge_get_client_name(jack_client_t* client); | JACKBRIDGE_API char* jackbridge_get_client_name(jack_client_t* client); | ||||
JACKBRIDGE_API char* jackbridge_client_get_uuid(jack_client_t* client); | |||||
JACKBRIDGE_API char* jackbridge_get_uuid_for_client_name(jack_client_t* client, const char* name); | JACKBRIDGE_API char* jackbridge_get_uuid_for_client_name(jack_client_t* client, const char* name); | ||||
JACKBRIDGE_API char* jackbridge_get_client_name_by_uuid(jack_client_t* client, const char* uuid); | JACKBRIDGE_API char* jackbridge_get_client_name_by_uuid(jack_client_t* client, const char* uuid); | ||||
@@ -64,6 +64,7 @@ typedef int (JACKSYM_API *jacksym_client_close)(jack_client_t*); | |||||
typedef int (JACKSYM_API *jacksym_client_name_size)(void); | typedef int (JACKSYM_API *jacksym_client_name_size)(void); | ||||
typedef char* (JACKSYM_API *jacksym_get_client_name)(jack_client_t*); | typedef char* (JACKSYM_API *jacksym_get_client_name)(jack_client_t*); | ||||
typedef char* (JACKSYM_API *jacksym_client_get_uuid)(jack_client_t*); | |||||
typedef char* (JACKSYM_API *jacksym_get_uuid_for_client_name)(jack_client_t*, const char*); | typedef char* (JACKSYM_API *jacksym_get_uuid_for_client_name)(jack_client_t*, const char*); | ||||
typedef char* (JACKSYM_API *jacksym_get_client_name_by_uuid)(jack_client_t*, const char*); | typedef char* (JACKSYM_API *jacksym_get_client_name_by_uuid)(jack_client_t*, const char*); | ||||
@@ -187,6 +188,7 @@ struct JackBridge { | |||||
jacksym_client_name_size client_name_size_ptr; | jacksym_client_name_size client_name_size_ptr; | ||||
jacksym_get_client_name get_client_name_ptr; | jacksym_get_client_name get_client_name_ptr; | ||||
jacksym_client_get_uuid client_get_uuid_ptr; | |||||
jacksym_get_uuid_for_client_name get_uuid_for_client_name_ptr; | jacksym_get_uuid_for_client_name get_uuid_for_client_name_ptr; | ||||
jacksym_get_client_name_by_uuid get_client_name_by_uuid_ptr; | jacksym_get_client_name_by_uuid get_client_name_by_uuid_ptr; | ||||
@@ -301,6 +303,7 @@ struct JackBridge { | |||||
client_close_ptr(nullptr), | client_close_ptr(nullptr), | ||||
client_name_size_ptr(nullptr), | client_name_size_ptr(nullptr), | ||||
get_client_name_ptr(nullptr), | get_client_name_ptr(nullptr), | ||||
client_get_uuid_ptr(nullptr), | |||||
get_uuid_for_client_name_ptr(nullptr), | get_uuid_for_client_name_ptr(nullptr), | ||||
get_client_name_by_uuid_ptr(nullptr), | get_client_name_by_uuid_ptr(nullptr), | ||||
activate_ptr(nullptr), | activate_ptr(nullptr), | ||||
@@ -422,6 +425,7 @@ struct JackBridge { | |||||
LIB_SYMBOL(client_name_size) | LIB_SYMBOL(client_name_size) | ||||
LIB_SYMBOL(get_client_name) | LIB_SYMBOL(get_client_name) | ||||
LIB_SYMBOL(client_get_uuid) | |||||
LIB_SYMBOL(get_uuid_for_client_name) | LIB_SYMBOL(get_uuid_for_client_name) | ||||
LIB_SYMBOL(get_client_name_by_uuid) | LIB_SYMBOL(get_client_name_by_uuid) | ||||
@@ -873,6 +877,18 @@ char* jackbridge_get_client_name(jack_client_t* client) | |||||
// ----------------------------------------------------------------------------- | // ----------------------------------------------------------------------------- | ||||
char* jackbridge_client_get_uuid(jack_client_t* client) | |||||
{ | |||||
#if defined(JACKBRIDGE_DUMMY) | |||||
#elif defined(JACKBRIDGE_DIRECT) | |||||
return jack_client_get_uuid(client); | |||||
#else | |||||
if (const jacksym_client_get_uuid func = getBridgeInstance().client_get_uuid_ptr) | |||||
return func(client); | |||||
#endif | |||||
return nullptr; | |||||
} | |||||
char* jackbridge_get_uuid_for_client_name(jack_client_t* client, const char* name) | char* jackbridge_get_uuid_for_client_name(jack_client_t* client, const char* name) | ||||
{ | { | ||||
#if defined(JACKBRIDGE_DUMMY) | #if defined(JACKBRIDGE_DUMMY) | ||||
@@ -44,6 +44,7 @@ const JackBridgeExportedFunctions* JACKBRIDGE_API jackbridge_get_exported_functi | |||||
funcs.client_close_ptr = jackbridge_client_close; | funcs.client_close_ptr = jackbridge_client_close; | ||||
funcs.client_name_size_ptr = jackbridge_client_name_size; | funcs.client_name_size_ptr = jackbridge_client_name_size; | ||||
funcs.get_client_name_ptr = jackbridge_get_client_name; | funcs.get_client_name_ptr = jackbridge_get_client_name; | ||||
funcs.client_get_uuid_ptr = jackbridge_client_get_uuid; | |||||
funcs.get_uuid_for_client_name_ptr = jackbridge_get_uuid_for_client_name; | funcs.get_uuid_for_client_name_ptr = jackbridge_get_uuid_for_client_name; | ||||
funcs.get_client_name_by_uuid_ptr = jackbridge_get_client_name_by_uuid; | funcs.get_client_name_by_uuid_ptr = jackbridge_get_client_name_by_uuid; | ||||
funcs.activate_ptr = jackbridge_activate; | funcs.activate_ptr = jackbridge_activate; | ||||
@@ -128,6 +128,11 @@ char* jackbridge_get_client_name(jack_client_t* client) | |||||
return getBridgeInstance().get_client_name_ptr(client); | return getBridgeInstance().get_client_name_ptr(client); | ||||
} | } | ||||
char* jackbridge_client_get_uuid(jack_client_t* client) | |||||
{ | |||||
return getBridgeInstance().client_get_uuid_ptr(client); | |||||
} | |||||
char* jackbridge_get_uuid_for_client_name(jack_client_t* client, const char* name) | char* jackbridge_get_uuid_for_client_name(jack_client_t* client, const char* name) | ||||
{ | { | ||||
return getBridgeInstance().get_uuid_for_client_name_ptr(client, name); | return getBridgeInstance().get_uuid_for_client_name_ptr(client, name); | ||||
@@ -27,6 +27,7 @@ typedef jack_client_t* (JACKBRIDGE_API *jackbridgesym_client_open)(const char*, | |||||
typedef bool (JACKBRIDGE_API *jackbridgesym_client_close)(jack_client_t*); | typedef bool (JACKBRIDGE_API *jackbridgesym_client_close)(jack_client_t*); | ||||
typedef int (JACKBRIDGE_API *jackbridgesym_client_name_size)(void); | typedef int (JACKBRIDGE_API *jackbridgesym_client_name_size)(void); | ||||
typedef char* (JACKBRIDGE_API *jackbridgesym_get_client_name)(jack_client_t*); | typedef char* (JACKBRIDGE_API *jackbridgesym_get_client_name)(jack_client_t*); | ||||
typedef char* (JACKBRIDGE_API *jackbridgesym_client_get_uuid)(jack_client_t*); | |||||
typedef char* (JACKBRIDGE_API *jackbridgesym_get_uuid_for_client_name)(jack_client_t*, const char*); | typedef char* (JACKBRIDGE_API *jackbridgesym_get_uuid_for_client_name)(jack_client_t*, const char*); | ||||
typedef char* (JACKBRIDGE_API *jackbridgesym_get_client_name_by_uuid)(jack_client_t*, const char*); | typedef char* (JACKBRIDGE_API *jackbridgesym_get_client_name_by_uuid)(jack_client_t*, const char*); | ||||
typedef bool (JACKBRIDGE_API *jackbridgesym_activate)(jack_client_t*); | typedef bool (JACKBRIDGE_API *jackbridgesym_activate)(jack_client_t*); | ||||
@@ -133,6 +134,7 @@ struct _JackBridgeExportedFunctions { | |||||
jackbridgesym_client_close client_close_ptr; | jackbridgesym_client_close client_close_ptr; | ||||
jackbridgesym_client_name_size client_name_size_ptr; | jackbridgesym_client_name_size client_name_size_ptr; | ||||
jackbridgesym_get_client_name get_client_name_ptr; | jackbridgesym_get_client_name get_client_name_ptr; | ||||
jackbridgesym_client_get_uuid client_get_uuid_ptr; | |||||
jackbridgesym_get_uuid_for_client_name get_uuid_for_client_name_ptr; | jackbridgesym_get_uuid_for_client_name get_uuid_for_client_name_ptr; | ||||
jackbridgesym_get_client_name_by_uuid get_client_name_by_uuid_ptr; | jackbridgesym_get_client_name_by_uuid get_client_name_by_uuid_ptr; | ||||
jackbridgesym_activate activate_ptr; | jackbridgesym_activate activate_ptr; | ||||