ladishd: remove skip_hidden parameter of ladish_graph_copy()
ATM ladish_graph_copy() is always copied without skipping hidden elements. skip_hidden mechanism must be replaced with filtering in callbacks, because it is tricky and because app filtering does not belong to generic graph object.
This commit is contained in:
parent
846ef1a252
commit
1f6822c5e9
|
@ -2679,11 +2679,11 @@ ladish_graph_copy_port_callback(
|
|||
|
||||
#undef graph_ptr
|
||||
|
||||
bool ladish_graph_copy(ladish_graph_handle src, ladish_graph_handle dest, bool skip_hidden)
|
||||
bool ladish_graph_copy(ladish_graph_handle src, ladish_graph_handle dest)
|
||||
{
|
||||
return ladish_graph_iterate_nodes(
|
||||
src,
|
||||
skip_hidden,
|
||||
false,
|
||||
dest,
|
||||
ladish_graph_copy_client_begin_callback,
|
||||
ladish_graph_copy_port_callback,
|
||||
|
|
|
@ -50,7 +50,7 @@ bool
|
|||
typedef void (* ladish_graph_simple_port_callback)(ladish_port_handle port_handle);
|
||||
|
||||
bool ladish_graph_create(ladish_graph_handle * graph_handle_ptr, const char * opath);
|
||||
bool ladish_graph_copy(ladish_graph_handle src, ladish_graph_handle dest, bool skip_hidden);
|
||||
bool ladish_graph_copy(ladish_graph_handle src, ladish_graph_handle dest);
|
||||
void ladish_graph_destroy(ladish_graph_handle graph_handle);
|
||||
|
||||
const char * ladish_graph_get_opath(ladish_graph_handle graph_handle);
|
||||
|
|
|
@ -293,7 +293,7 @@ ladish_room_create(
|
|||
if (template != NULL)
|
||||
{
|
||||
ladish_room_get_uuid(template, room_ptr->template_uuid);
|
||||
if (!ladish_graph_copy(ladish_room_get_graph(template), room_ptr->graph, false))
|
||||
if (!ladish_graph_copy(ladish_room_get_graph(template), room_ptr->graph))
|
||||
{
|
||||
goto destroy;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue