Add code to create the clients window hash

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-10-15 06:57:16 -04:00
parent dea5237a9b
commit da2049b052
1 changed files with 9 additions and 0 deletions

View File

@ -12,6 +12,9 @@
*
*/
/* local variables */
static Eina_Hash *clients_win_hash = NULL;
/* local functions */
static void
_e_comp_wl_log_cb_print(const char *format, va_list args)
@ -515,6 +518,9 @@ e_comp_wl_init(void)
return EINA_FALSE;
}
/* create hash to store clients */
clients_win_hash = eina_hash_int64_new(NULL);
return EINA_TRUE;
}
@ -528,6 +534,9 @@ e_comp_wl_surface_create_signal_get(E_Comp *comp)
EINTERN void
e_comp_wl_shutdown(void)
{
/* free the clients win hash */
E_FREE_FUNC(clients_win_hash, eina_hash_free);
/* shutdown ecore_wayland */
ecore_wl_shutdown();
}