Fixed uuids for hardware capture and playback virtual clients

This commit is contained in:
Nedko Arnaudov 2009-09-12 10:59:38 +03:00
parent fa47499b45
commit 69d3ebea63
3 changed files with 16 additions and 4 deletions

View File

@ -45,7 +45,7 @@ struct ladish_client
bool
ladish_client_create(
uuid_t uuid_ptr,
const uuid_t uuid_ptr,
bool virtual,
bool link,
bool system,
@ -87,6 +87,12 @@ ladish_client_create(
client_ptr->pid = 0;
client_ptr->room_ptr = NULL;
{
char str[37];
uuid_unparse(client_ptr->uuid, str);
lash_info("Created client %s", str);
}
*client_handle_ptr = (ladish_client_handle)client_ptr;
return true;
}

View File

@ -33,7 +33,7 @@ typedef struct ladish_client_tag { int unused; } * ladish_client_handle;
bool
ladish_client_create(
uuid_t uuid_ptr,
const uuid_t uuid_ptr,
bool virtual,
bool link,
bool system,

View File

@ -36,6 +36,12 @@ struct jack_dispatcher
ladish_client_handle system_playback_client;
};
/* 47c1cd18-7b21-4389-bec4-6e0658e1d6b1 */
UUID_DEFINE(g_system_capture_guid,0x47,0xC1,0xCD,0x18,0x7B,0x21,0x43,0x89,0xBE,0xC4,0x6E,0x06,0x58,0xE1,0xD6,0xB1);
/* b2a0bb06-28d8-4bfe-956e-eb24378f9629 */
UUID_DEFINE(g_system_playback_guid,0xB2,0xA0,0xBB,0x06,0x28,0xD8,0x4B,0xFE,0x95,0x6E,0xEB,0x24,0x37,0x8F,0x96,0x29);
#define dispatcher_ptr ((struct jack_dispatcher *)context)
static void clear(void * context)
@ -85,7 +91,7 @@ static void port_appeared(void * context, uint64_t client_id, uint64_t port_id,
{
if (dispatcher_ptr->system_capture_client == NULL)
{
if (!ladish_client_create(NULL, true, false, true, &dispatcher_ptr->system_capture_client))
if (!ladish_client_create(g_system_capture_guid, true, false, true, &dispatcher_ptr->system_capture_client))
{
lash_error("ladish_client_create() failed.");
return;
@ -106,7 +112,7 @@ static void port_appeared(void * context, uint64_t client_id, uint64_t port_id,
{
if (dispatcher_ptr->system_playback_client == NULL)
{
if (!ladish_client_create(NULL, true, false, true, &dispatcher_ptr->system_playback_client))
if (!ladish_client_create(g_system_playback_guid, true, false, true, &dispatcher_ptr->system_playback_client))
{
lash_error("ladish_client_create() failed.");
return;