ladishd: set a port property that indicating whether the port is a2j one. Partial fix for #154
This commit is contained in:
parent
7eb451d98e
commit
b49d1ef23d
|
@ -638,6 +638,8 @@ port_appeared(
|
|||
ladish_port_set_app(port, app_uuid);
|
||||
}
|
||||
|
||||
ladish_dict_set(ladish_port_get_dict(port), URI_CANVAS_A2J, is_a2j ? "yes" : "no");
|
||||
|
||||
ladish_client_set_jack_id(vclient, client_id);
|
||||
ladish_graph_adjust_port(vgraph, port, type, flags);
|
||||
ladish_graph_show_port(vgraph, port);
|
||||
|
@ -661,6 +663,8 @@ port_appeared(
|
|||
ladish_port_set_app(port, app_uuid);
|
||||
}
|
||||
|
||||
ladish_dict_set(ladish_port_get_dict(port), URI_CANVAS_A2J, is_a2j ? "yes" : "no");
|
||||
|
||||
if (!ladish_graph_add_port(virtualizer_ptr->jack_graph, jack_client, port, jack_port_name, type, flags, false))
|
||||
{
|
||||
log_error("ladish_graph_add_port() failed.");
|
||||
|
|
|
@ -71,6 +71,7 @@
|
|||
#define URI_CANVAS_HEIGHT "http://ladish.org/ns/canvas/height"
|
||||
#define URI_CANVAS_X "http://ladish.org/ns/canvas/x"
|
||||
#define URI_CANVAS_Y "http://ladish.org/ns/canvas/y"
|
||||
#define URI_CANVAS_A2J "http://ladish.org/ns/a2j"
|
||||
|
||||
#define JACKDBUS_PORT_IS_INPUT(flags) (((flags) & JACKDBUS_PORT_FLAG_INPUT) != 0)
|
||||
#define JACKDBUS_PORT_IS_OUTPUT(flags) (((flags) & JACKDBUS_PORT_FLAG_OUTPUT) != 0)
|
||||
|
|
Loading…
Reference in New Issue