Changeset c90661388fa42156b3c3b5787106af36ce47c7b2
- Timestamp:
- 04/05/10 04:35:08 (3 years ago)
- Author:
- Nedko Arnaudov <nedko@…>
- Children:
- ef08b85792e6f41ce0f14e44c93487056f56047a
- Parents:
- c78c4c64837adcb243297a79121ddff2e683e796
- git-committer:
- Nedko Arnaudov <nedko@arnaudov.name> / 2010-04-05T04:35:08Z+0300
- Message:
-
daemon: on studio stop, hide only non-virtual graph objects
Representation of rooms in studio graph must not be hidden on server stop
- Location:
- daemon
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r81c3e70
|
rc906613
|
|
| 145 | 145 | log_info("Wait for JACK server stop complete."); |
| 146 | 146 | |
| 147 | | ladish_graph_hide_all(g_studio.jack_graph); |
| 148 | | ladish_graph_hide_all(g_studio.studio_graph); |
| | 147 | ladish_graph_hide_non_virtual(g_studio.jack_graph); |
| | 148 | ladish_graph_hide_non_virtual(g_studio.studio_graph); |
| 149 | 149 | ASSERT(!jack_server_started); |
| 150 | 150 | |
-
|
rc78c4c6
|
rc906613
|
|
| 1825 | 1825 | } |
| 1826 | 1826 | |
| 1827 | | void ladish_graph_hide_all(ladish_graph_handle graph_handle) |
| | 1827 | void ladish_graph_hide_non_virtual(ladish_graph_handle graph_handle) |
| 1828 | 1828 | { |
| 1829 | 1829 | struct list_head * node_ptr; |
| … |
… |
|
| 1837 | 1837 | { |
| 1838 | 1838 | connection_ptr = list_entry(node_ptr, struct ladish_graph_connection, siblings); |
| 1839 | | if (!connection_ptr->hidden) |
| | 1839 | if (!connection_ptr->hidden && |
| | 1840 | (ladish_client_get_jack_id(connection_ptr->port1_ptr->client_ptr->client) != 0 || |
| | 1841 | ladish_client_get_jack_id(connection_ptr->port2_ptr->client_ptr->client) != 0)) |
| 1840 | 1842 | { |
| 1841 | 1843 | log_debug("hidding connection between ports %"PRIu64" and %"PRIu64, connection_ptr->port1_ptr->id, connection_ptr->port2_ptr->id); |
| … |
… |
|
| 1847 | 1849 | { |
| 1848 | 1850 | port_ptr = list_entry(node_ptr, struct ladish_graph_port, siblings_graph); |
| 1849 | | if (!port_ptr->hidden) |
| | 1851 | if (!port_ptr->hidden && ladish_client_get_jack_id(port_ptr->client_ptr->client) != 0) |
| 1850 | 1852 | { |
| 1851 | 1853 | ladish_port_set_jack_id(port_ptr->port, 0); |
| … |
… |
|
| 1857 | 1859 | { |
| 1858 | 1860 | client_ptr = list_entry(node_ptr, struct ladish_graph_client, siblings); |
| 1859 | | if (!client_ptr->hidden) |
| | 1861 | if (!client_ptr->hidden && ladish_client_get_jack_id(client_ptr->client) != 0) |
| 1860 | 1862 | { |
| 1861 | 1863 | ladish_client_set_jack_id(client_ptr->client, 0); |
-
|
rde77273
|
rc906613
|
|
| 146 | 146 | void ladish_graph_show_connection(ladish_graph_handle graph_handle, uint64_t connection_id); |
| 147 | 147 | void ladish_try_connect_hidden_connections(ladish_graph_handle graph_handle); |
| 148 | | void ladish_graph_hide_all(ladish_graph_handle graph_handle); |
| | 148 | void ladish_graph_hide_non_virtual(ladish_graph_handle graph_handle); |
| 149 | 149 | |
| 150 | 150 | void ladish_graph_dump(ladish_graph_handle graph_handle); |