ladishd: save additional attributes for graph objects

For clients, save the naming scheme used. sometimes it is useful to maintain the original jack or alsa client name.

For ports, save port type and direction, alsa ports can be bidirectional, this renders as two a2j ports.
This commit is contained in:
Nedko Arnaudov 2010-11-07 20:59:20 +02:00
parent 79c75fd07b
commit eb866bf6e8
1 changed files with 30 additions and 0 deletions

View File

@ -146,6 +146,16 @@ ladish_save_vgraph_client_begin(
return false;
}
if (!ladish_write_string(fd, "\" naming=\""))
{
return false;
}
if (!ladish_write_string(fd, "app"))
{
return false;
}
if (!ladish_write_string(fd, "\">\n"))
{
return false;
@ -265,6 +275,26 @@ ladish_save_vgraph_port(
return false;
}
if (!ladish_write_string(fd, "\" type=\""))
{
return false;
}
if (!ladish_write_string(fd, port_type == JACKDBUS_PORT_TYPE_AUDIO ? "audio" : "midi"))
{
return false;
}
if (!ladish_write_string(fd, "\" direction=\""))
{
return false;
}
if (!ladish_write_string(fd, JACKDBUS_PORT_IS_INPUT(port_flags) ? "input" : "output"))
{
return false;
}
if (link)
{
if (!ladish_write_string(fd, "\" link_uuid=\""))