| | 738 | void ladish_graph_show_port_internal(struct ladish_graph * graph_ptr, struct ladish_graph_port * port_ptr) |
| | 739 | { |
| | 740 | if (port_ptr->client_ptr->hidden) |
| | 741 | { |
| | 742 | port_ptr->client_ptr->hidden = false; |
| | 743 | graph_ptr->graph_version++; |
| | 744 | if (graph_ptr->opath != NULL) |
| | 745 | { |
| | 746 | dbus_signal_emit( |
| | 747 | g_dbus_connection, |
| | 748 | graph_ptr->opath, |
| | 749 | JACKDBUS_IFACE_PATCHBAY, |
| | 750 | "ClientAppeared", |
| | 751 | "tts", |
| | 752 | &graph_ptr->graph_version, |
| | 753 | &port_ptr->client_ptr->id, |
| | 754 | &port_ptr->client_ptr->name); |
| | 755 | } |
| | 756 | } |
| | 757 | |
| | 758 | ASSERT(port_ptr->hidden); |
| | 759 | port_ptr->hidden = false; |
| | 760 | graph_ptr->graph_version++; |
| | 761 | if (graph_ptr->opath != NULL) |
| | 762 | { |
| | 763 | dbus_signal_emit( |
| | 764 | g_dbus_connection, |
| | 765 | graph_ptr->opath, |
| | 766 | JACKDBUS_IFACE_PATCHBAY, |
| | 767 | "PortAppeared", |
| | 768 | "ttstsuu", |
| | 769 | &graph_ptr->graph_version, |
| | 770 | &port_ptr->client_ptr->id, |
| | 771 | &port_ptr->client_ptr->name, |
| | 772 | &port_ptr->id, |
| | 773 | &port_ptr->name, |
| | 774 | &port_ptr->flags, |
| | 775 | &port_ptr->type); |
| | 776 | |
| | 777 | ladish_try_connect_hidden_connections((ladish_graph_handle)graph_ptr); |
| | 778 | } |
| | 779 | } |
| | 780 | |
| 1013 | | if (port_ptr->client_ptr->hidden) |
| 1014 | | { |
| 1015 | | port_ptr->client_ptr->hidden = false; |
| 1016 | | graph_ptr->graph_version++; |
| 1017 | | if (graph_ptr->opath != NULL) |
| 1018 | | { |
| 1019 | | dbus_signal_emit( |
| 1020 | | g_dbus_connection, |
| 1021 | | graph_ptr->opath, |
| 1022 | | JACKDBUS_IFACE_PATCHBAY, |
| 1023 | | "ClientAppeared", |
| 1024 | | "tts", |
| 1025 | | &graph_ptr->graph_version, |
| 1026 | | &port_ptr->client_ptr->id, |
| 1027 | | &port_ptr->client_ptr->name); |
| 1028 | | } |
| 1029 | | } |
| 1030 | | |
| 1031 | | ASSERT(port_ptr->hidden); |
| 1032 | | port_ptr->hidden = false; |
| 1033 | | graph_ptr->graph_version++; |
| 1034 | | if (graph_ptr->opath != NULL) |
| 1035 | | { |
| 1036 | | dbus_signal_emit( |
| 1037 | | g_dbus_connection, |
| 1038 | | graph_ptr->opath, |
| 1039 | | JACKDBUS_IFACE_PATCHBAY, |
| 1040 | | "PortAppeared", |
| 1041 | | "ttstsuu", |
| 1042 | | &graph_ptr->graph_version, |
| 1043 | | &port_ptr->client_ptr->id, |
| 1044 | | &port_ptr->client_ptr->name, |
| 1045 | | &port_ptr->id, |
| 1046 | | &port_ptr->name, |
| 1047 | | &port_ptr->flags, |
| 1048 | | &port_ptr->type); |
| 1049 | | |
| 1050 | | ladish_try_connect_hidden_connections(graph_handle); |
| 1051 | | } |
| | 1056 | ladish_graph_show_port_internal(graph_ptr, port_ptr); |