Changeset c90661388fa42156b3c3b5787106af36ce47c7b2

Show
Ignore:
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:
3 modified

Legend:

Unmodified
Added
Removed
  • daemon/cmd_stop_studio.c

    r81c3e70 rc906613  
    145145    log_info("Wait for JACK server stop complete."); 
    146146 
    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); 
    149149    ASSERT(!jack_server_started); 
    150150 
  • daemon/graph.c

    rc78c4c6 rc906613  
    18251825} 
    18261826 
    1827 void ladish_graph_hide_all(ladish_graph_handle graph_handle) 
     1827void ladish_graph_hide_non_virtual(ladish_graph_handle graph_handle) 
    18281828{ 
    18291829  struct list_head * node_ptr; 
     
    18371837  { 
    18381838    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)) 
    18401842    { 
    18411843      log_debug("hidding connection between ports %"PRIu64" and %"PRIu64, connection_ptr->port1_ptr->id, connection_ptr->port2_ptr->id); 
     
    18471849  { 
    18481850    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) 
    18501852    { 
    18511853      ladish_port_set_jack_id(port_ptr->port, 0); 
     
    18571859  { 
    18581860    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) 
    18601862    { 
    18611863      ladish_client_set_jack_id(client_ptr->client, 0); 
  • daemon/graph.h

    rde77273 rc906613  
    146146void ladish_graph_show_connection(ladish_graph_handle graph_handle, uint64_t connection_id); 
    147147void ladish_try_connect_hidden_connections(ladish_graph_handle graph_handle); 
    148 void ladish_graph_hide_all(ladish_graph_handle graph_handle); 
     148void ladish_graph_hide_non_virtual(ladish_graph_handle graph_handle); 
    149149 
    150150void ladish_graph_dump(ladish_graph_handle graph_handle);