Commit Graph

99 Commits

Author SHA1 Message Date
Nedko Arnaudov c90661388f daemon: on studio stop, hide only non-virtual graph objects
Representation of rooms in studio graph must not be hidden on server stop
2010-04-05 04:35:08 +03:00
Nedko Arnaudov c78c4c6483 daemon: register virtualizer graph connection handlers for rooms 2010-04-05 04:18:24 +03:00
Nedko Arnaudov 9f3f884c4d daemon: improve log messages and add TODO comments 2010-04-04 21:30:25 +03:00
Nedko Arnaudov de772730a5 daemon: fix port lifecycle problem that was causing crash
There are three types of ports depeneding on references to them:
 * ports that are referenced from jack and studio graphs
 * ports that are referenced from jack and room graphs
 * studio-room link ports that are referenced from studio and room graphs

The old approach was to destroy ports when removing references from jack graph.
Studio-room link ports were destroyed when removing the room.
However this caused double free when removing app ports that appear in jack and
room graphs.

The introduced implementation uses reference counting of graph references to ports.
Temporary references (like the one returned by port constructor and graph_get_port())
are not tracked.
2010-04-04 21:08:20 +03:00
Nedko Arnaudov e082320f58 daemon: Allow call to ladish_graph_iterate_nodes() with limited set of callbacks 2010-03-31 01:48:13 +03:00
Nedko Arnaudov 13bc814f0b daemon: fill the Basic room template with ports and copy them when creating studio rooms 2010-03-24 01:11:53 +02:00
Nedko Arnaudov 2fd730ea55 daemon: expose new studio room objects on D-Bus 2010-03-06 17:03:14 +02:00
Nedko Arnaudov 093af66573 rename graph clients when app is renamed
this fixes autoconnection too because hidden clients are searched by name
2009-12-26 22:46:20 +02:00
Nedko Arnaudov 3bec987ea4 handle port renames. closes #32 2009-12-21 20:46:14 +02:00
Nedko Arnaudov 0218ebda7e daemon: fix use of unused variable 2009-12-21 00:07:51 +02:00
Nedko Arnaudov d76dcc4b20 daemon: Fix #33
JACK graph connections are always visible and match the actual
JACK graph connections. So the logic for hiding connections when
they are removed should be disabled for JACK graphs. See
also commit 5ef9e1e006 where this
bug was intoduced.
2009-12-12 21:55:41 +02:00
Nedko Arnaudov 9c01b375af daemon: show client when adding non-hidden port 2009-12-12 15:12:46 +02:00
Nedko Arnaudov 6680478859 daemon: improve log 2009-12-12 15:11:09 +02:00
Nedko Arnaudov cb2cf4eafe daemon: improve a log 2009-12-12 02:07:02 +02:00
Nedko Arnaudov ff45e7fe56 daemon: add some logs 2009-12-12 01:14:51 +02:00
Nedko Arnaudov adbafd8cf3 daemon: adjust logs 2009-12-12 00:06:00 +02:00
Nedko Arnaudov 760fd1bd67 daemon: set proper state after JACK server stop is detected in the hard way 2009-12-08 20:30:52 +02:00
Nedko Arnaudov c7af39c8a8 fix for #26 (studio xml file corruption) 2009-12-07 20:48:12 +02:00
Nedko Arnaudov bb7338fae0 daemon: a2j virtualization 2009-12-07 00:56:48 +02:00
Nedko Arnaudov d1e835125b daemon: fix input parameters to be const ones 2009-12-06 21:58:06 +02:00
Nedko Arnaudov a6fccfb92e daemon: fix connection autohidding when hidding port 2009-12-06 16:51:50 +02:00
Nedko Arnaudov 74b8f69ad7 daemon: add some logs related to hiding ports and connections 2009-12-06 15:29:35 +02:00
Nedko Arnaudov 608ae74258 ladishd: don't save hidden stuff
hidden objects exists as intermediate state during restore
2009-11-29 03:27:39 +02:00
Nedko Arnaudov 896e04345b ladishd: improve logging 2009-11-29 03:26:23 +02:00
Nedko Arnaudov 5ef9e1e006 ladishd: hide connections unless remove is explicitly requested
explicit disconnects must remove connection objects
implicit disconnects because of port disappear or external disconnect must
cause hide so when studio is stopped and then started, connections are restored.
2009-11-29 01:58:37 +02:00
Nedko Arnaudov 6be77a9908 ladishd: when clearing graph, clear connections too 2009-11-29 01:23:56 +02:00
Nedko Arnaudov 850f926dae ladishd: connect ports when they appear 2009-11-29 01:15:04 +02:00
Nedko Arnaudov 6cd9754d56 ladishd: save connections and load them in hidden state 2009-11-29 00:09:34 +02:00
Nedko Arnaudov effcdfca27 ladishd: implement ports disconnect 2009-11-28 21:24:18 +02:00
Nedko Arnaudov 23b1a8fa1e ladishd: implement ports connect 2009-11-28 19:46:43 +02:00
Nedko Arnaudov 5955c05ca0 ladishd: graph calls to virtualizer for connect/disconnect 2009-11-28 18:36:07 +02:00
Nedko Arnaudov 24e414e9b9 ladishd: decode parameters of port connect/disconnect requests 2009-11-28 17:14:20 +02:00
Nedko Arnaudov 2fff2f932c ladishd: new function: ladish_graph_show_client() 2009-11-25 18:41:02 +02:00
Nedko Arnaudov a642a0b35b when dumping graphs, dump non-empty dicts too 2009-10-10 14:42:41 +03:00
Nedko Arnaudov 6dcf0d6eb7 daemon: on stop, hide clients and ports instead of removing them
If they are removed all info associated with them is lost, including pending connections
and dictionaries
2009-10-08 23:45:03 +03:00
Nedko Arnaudov 69a15f3bc2 daemon: increment graph version on port show 2009-10-05 01:33:48 +03:00
Nedko Arnaudov db1ae093c7 Restore clients, ports and dicts 2009-10-04 22:38:24 +03:00
Nedko Arnaudov 9e9a127a15 Save clients, ports and dicts 2009-09-21 00:17:41 +03:00
Nedko Arnaudov 540d2eb721 Make assert print error message to log 2009-09-20 18:48:42 +03:00
Nedko Arnaudov 5f832c8668 rename log macros 2009-09-20 18:23:42 +03:00
Nedko Arnaudov 3159525589 Properly handle normal clients
* create studio client when first port appears
 * destroy studio client when last port disappears
 * remove disappearing ports from jack graph
2009-09-20 17:33:07 +03:00
Nedko Arnaudov 303c07d6e6 Implement ladish_graph_remove_port() 2009-09-20 16:28:05 +03:00
Nedko Arnaudov 2862ba7650 jack graph object to store jack clients and ports 2009-09-12 22:30:33 +03:00
Nedko Arnaudov 83423d7fb7 iterate studio graph on save 2009-09-12 21:42:19 +03:00
Nedko Arnaudov 7a8931a94a graph dict dbus interface and persist canvas positions of modules 2009-09-07 20:53:56 +03:00
Nedko Arnaudov a964d9c768 basic ports 2009-09-06 20:31:42 +03:00
Nedko Arnaudov d56df28d54 Fix bug in client appeared signal emit
instead of real id, next unused id was emited, thus confusung signal receivers
because on disappear the real id was sent.
2009-09-06 17:45:39 +03:00
Nedko Arnaudov 9d467024aa Move per-graph client data to graph implementation 2009-09-06 16:40:03 +03:00
Nedko Arnaudov 813c97bed1 graph_iface -> graph 2009-09-06 15:30:29 +03:00