Changeset c78c4c64837adcb243297a79121ddff2e683e796
- Timestamp:
- 04/05/10 04:18:24 (3 years ago)
- Author:
- Nedko Arnaudov <nedko@…>
- Children:
- c90661388fa42156b3c3b5787106af36ce47c7b2
- Parents:
- 58db7cba75c98f293390d52a1477c9e9aed51db6
- git-committer:
- Nedko Arnaudov <nedko@arnaudov.name> / 2010-04-05T04:18:24Z+0300
- Message:
-
daemon: register virtualizer graph connection handlers for rooms
- Location:
- daemon
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r9f3f884
|
rc78c4c6
|
|
| 967 | 967 | ladish_graph_disconnect_request_handler disconnect_handler) |
| 968 | 968 | { |
| | 969 | log_info("setting connection handlers for graph '%s'", graph_ptr->opath != NULL ? graph_ptr->opath : "JACK"); |
| 969 | 970 | graph_ptr->context = graph_context; |
| 970 | 971 | graph_ptr->connect_handler = connect_handler; |
-
|
r58db7cb
|
rc78c4c6
|
|
| 227 | 227 | } |
| 228 | 228 | |
| | 229 | bool |
| | 230 | set_graph_connection_handlers( |
| | 231 | void * context, |
| | 232 | ladish_graph_handle graph, |
| | 233 | ladish_app_supervisor_handle app_supervisor) |
| | 234 | { |
| | 235 | ladish_virtualizer_set_graph_connection_handlers(context, graph); |
| | 236 | return true; /* iterate all graphs */ |
| | 237 | } |
| | 238 | |
| 229 | 239 | void on_event_jack_started(void) |
| 230 | 240 | { |
| … |
… |
|
| 245 | 255 | else |
| 246 | 256 | { |
| 247 | | if (!ladish_virtualizer_create(g_studio.jack_graph_proxy, g_studio.jack_graph, g_studio.studio_graph, &g_studio.virtualizer)) |
| | 257 | if (!ladish_virtualizer_create(g_studio.jack_graph_proxy, g_studio.jack_graph, &g_studio.virtualizer)) |
| 248 | 258 | { |
| 249 | 259 | log_error("ladish_virtualizer_create() failed."); |
| | 260 | } |
| | 261 | else |
| | 262 | { |
| | 263 | studio_iterate_virtual_graphs(g_studio.virtualizer, set_graph_connection_handlers); |
| 250 | 264 | } |
| 251 | 265 | |
| … |
… |
|
| 949 | 963 | lash_dbus_error(call_ptr, LASH_DBUS_ERROR_GENERIC, "ladish_room_create() failed."); |
| 950 | 964 | goto fail_decrement_room_count; |
| | 965 | } |
| | 966 | |
| | 967 | if (g_studio.virtualizer != NULL) |
| | 968 | { |
| | 969 | ladish_virtualizer_set_graph_connection_handlers(g_studio.virtualizer, ladish_room_get_graph(room)); |
| 951 | 970 | } |
| 952 | 971 | |
-
|
re498a65
|
rc78c4c6
|
|
| 802 | 802 | graph_proxy_handle jack_graph_proxy, |
| 803 | 803 | ladish_graph_handle jack_graph, |
| 804 | | ladish_graph_handle studio_graph, |
| 805 | 804 | ladish_virtualizer_handle * handle_ptr) |
| 806 | 805 | { |
| … |
… |
|
| 836 | 835 | } |
| 837 | 836 | |
| 838 | | ladish_graph_set_connection_handlers(studio_graph, virtualizer_ptr, ports_connect_request, ports_disconnect_request); |
| 839 | | |
| 840 | 837 | *handle_ptr = (ladish_virtualizer_handle)virtualizer_ptr; |
| 841 | 838 | return true; |
| … |
… |
|
| 843 | 840 | |
| 844 | 841 | #define virtualizer_ptr ((struct virtualizer *)handle) |
| | 842 | |
| | 843 | void |
| | 844 | ladish_virtualizer_set_graph_connection_handlers( |
| | 845 | ladish_virtualizer_handle handle, |
| | 846 | ladish_graph_handle graph) |
| | 847 | { |
| | 848 | ladish_graph_set_connection_handlers(graph, virtualizer_ptr, ports_connect_request, ports_disconnect_request); |
| | 849 | } |
| 845 | 850 | |
| 846 | 851 | unsigned int |
-
|
rb5565fd
|
rc78c4c6
|
|
| 3 | 3 | * LADI Session Handler (ladish) |
| 4 | 4 | * |
| 5 | | * Copyright (C) 2009 Nedko Arnaudov <nedko@arnaudov.name> |
| | 5 | * Copyright (C) 2009, 2010 Nedko Arnaudov <nedko@arnaudov.name> |
| 6 | 6 | * |
| 7 | 7 | ************************************************************************** |
| … |
… |
|
| 38 | 38 | graph_proxy_handle jack_graph_proxy, |
| 39 | 39 | ladish_graph_handle jack_graph, |
| 40 | | ladish_graph_handle studio_graph, |
| 41 | 40 | ladish_virtualizer_handle * handle_ptr); |
| | 41 | |
| | 42 | void |
| | 43 | ladish_virtualizer_set_graph_connection_handlers( |
| | 44 | ladish_virtualizer_handle handle, |
| | 45 | ladish_graph_handle graph); |
| 42 | 46 | |
| 43 | 47 | unsigned int |