e_comp_wl: Add a hook point for destruction of comp_data 75/261075/2
authorSeunghun Lee <shiin.lee@samsung.com>
Fri, 9 Jul 2021 01:39:01 +0000 (10:39 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Mon, 12 Jul 2021 01:14:51 +0000 (10:14 +0900)
commita26a7d6b63b8d685ba2ccee082532fd077426398
tree4d17e25dfbb16321a2d9333e114ede955183fa13
parentc4a5f7889c6fa1f2066dc3bf85c6022c82fe4f03
e_comp_wl: Add a hook point for destruction of comp_data

This is to add a hook point, E_COMP_WL_HOOK_DEL which will be triggered
right before comp_data gets destroyed.

Many implementations of E20 have referred to ec->comp_data, but there
have been no way to find out when it's deleted.
So, we have had to check the validation of it before accessing it.

Through this patch, we can now ensure the validation of comp_data by
using a handler of E_COMP_WL_HOOK_DEL.

Change-Id: I7485d9b11a1ea46d500b4b0eac165e8529045cae
src/bin/e_comp_wl.c
src/bin/e_comp_wl.h