/** * @internal * @returns the number of initializations left for this system * @brief Attempts to shut down the subsystem if nothing else is using it */ void efreet_desktop_shutdown(void) { Efreet_Desktop_Type_Info *info; IF_RELEASE(desktop_environment); EINA_LIST_FREE(efreet_desktop_types, info) efreet_desktop_type_info_free(info); #ifdef HAVE_EVIL evil_sockets_shutdown(); #endif eina_log_domain_unregister(_efreet_desktop_log_dom); _efreet_desktop_log_dom = -1; }
int evil_shutdown(void) { /* _evil_init_count should not go below zero. */ if (_evil_init_count < 1) { printf("Evil shutdown called without calling evil init.\n"); return 0; } if (--_evil_init_count != 0) return _evil_init_count; evil_sockets_shutdown(); return _evil_init_count; }