wl_signal_emit(&keyrouter->events.destroy, keyrouter);
- tizen_security_finish();
+ if (keyrouter->security_initialized)
+ tizen_security_finish();
free(keyrouter->opts);
keyrouter_options_set(keyrouter);
- if (!tizen_security_init()) {
- ds_inf("tizen_security_init() is not sucessful. keyrouter works without security.");
+ keyrouter->security_initialized = tizen_security_init();
+ if (!keyrouter->security_initialized) {
+ ds_inf("tizen_security_init() is not sucessful. "
+ "keyrouter works without security.");
}
ds_inf("Global created: ds_tizen_keyrouter(%p)", keyrouter);
struct ds_tizen_keyrouter_key_options *opts;
struct ds_tizen_keyrouter_grab *keyrouter_grab;
+
+ bool security_initialized;
};
struct ds_tizen_keyrouter_client