Ecore Eldbus: Work around circular dependencies
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 29 Dec 2015 08:06:53 +0000 (17:06 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 29 Dec 2015 08:06:53 +0000 (17:06 +0900)
commit3059859e28d27919e7a51fa1301f59bd983465c4
tree47583dfff6cf09f9b24fa20fd7c3ddd8c3c69e1f
parentbd32015dfc13e2a31a250e7046036f81030cfb96
Ecore Eldbus: Work around circular dependencies

eldbus initializes ecore that may then init eldbus again,
since one of the systemd modules is for eldbus.
eldbus_shutdown() is then no longer functional, as there are
two refs on eldbus.

This patch solves this problem by removing the extra ref on
eldbus from the module if it was already initialized.

This patch now introduces really bad issues since there are now
EO classes that fail to work after module load-unload-reload.
src/modules/ecore/system/systemd/ecore_system_systemd.c