ladishd: do a better cleanup on project unload and on load failure. Partial fix for...
commit4b9da6ffae7c51ff2de6ea04f284b37b03a726fb
authorNedko Arnaudov <nedko@arnaudov.name>
Sat, 13 Nov 2010 16:12:51 +0000 (13 18:12 +0200)
committerNedko Arnaudov <nedko@arnaudov.name>
Sat, 13 Nov 2010 16:13:10 +0000 (13 18:13 +0200)
tree2a63735226828e6376bb7f8ca9a826b250d10e70
parenta99c3e6408f9f0e517630f3c134614bbfa1dd11d
ladishd: do a better cleanup on project unload and on load failure. Partial fix for #117

The project state now is can now have more than one state. The project
unload sequence now first removes all connections, then stopps all
apps, and as last step - clears the graph. When project load fails,
ladish_room_unload_project() is not called anymore, because unloading
of room even without apps is now a multistep process. Instead, a new
function, ladish_room_clear_project(), is introduced. It is called
when project load fails and as last step in project unload.
daemon/app_supervisor.c
daemon/app_supervisor.h
daemon/graph.c
daemon/graph.h
daemon/room.c
daemon/room_internal.h
daemon/room_load.c