Changeset eb866bf6e8302d2fc26ac8c490d28ba9adc6bd67

Show
Ignore:
Timestamp:
11/07/10 20:59:20 (3 years ago)
Author:
Nedko Arnaudov <nedko@…>
Children:
8aebce6821ae5d0266dcbc3de61ad34fe83e39e3
Parents:
79c75fd07bec3ba6e33dcb5fce11aba37a20e601
git-committer:
Nedko Arnaudov <nedko@arnaudov.name> / 2010-11-07T20:59:20Z+0200
Message:

ladishd: save additional attributes for graph objects

For clients, save the naming scheme used. sometimes it is useful to maintain the original jack or alsa client name.

For ports, save port type and direction, alsa ports can be bidirectional, this renders as two a2j ports.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • daemon/save.c

    r78e99c4 reb866bf  
    147147  } 
    148148 
     149  if (!ladish_write_string(fd, "\" naming=\"")) 
     150  { 
     151    return false; 
     152  } 
     153 
     154  if (!ladish_write_string(fd, "app")) 
     155  { 
     156    return false; 
     157  } 
     158 
    149159  if (!ladish_write_string(fd, "\">\n")) 
    150160  { 
     
    266276  } 
    267277 
     278  if (!ladish_write_string(fd, "\" type=\"")) 
     279  { 
     280    return false; 
     281  } 
     282 
     283  if (!ladish_write_string(fd, port_type == JACKDBUS_PORT_TYPE_AUDIO ? "audio" : "midi")) 
     284  { 
     285    return false; 
     286  } 
     287 
     288  if (!ladish_write_string(fd, "\" direction=\"")) 
     289  { 
     290    return false; 
     291  } 
     292 
     293  if (!ladish_write_string(fd, JACKDBUS_PORT_IS_INPUT(port_flags) ? "input" : "output")) 
     294  { 
     295    return false; 
     296  } 
     297 
    268298  if (link) 
    269299  {