int alarm_alarm_ring(Alarm *al, int test) { char buf[4096]; int ret = 1; alarm_config->alarms_state = ALARM_STATE_RINGING; if (!test) al->state = ALARM_STATE_RINGING; alarm_config->alarms_ringing_nb++; alarm_edje_signal_emit(EDJE_SIG_SEND_ALARM_RING_START); // TODO: real popups if (al->open_popup) { snprintf(buf, sizeof(buf), D_("<hilight>Alarm : %s</hilight><br><br>" "%s"), al->name, (al->description) ? al->description : "" ); e_module_dialog_show(alarm_config->module, D_("Alarm Module Popup"), buf); } if (al->run_program != ALARM_RUN_PROGRAM_NO) { Ecore_Exe *exe; if (al->run_program == ALARM_RUN_PROGRAM_PARENT) { exe = ecore_exe_pipe_run(alarm_config->alarms_program_default, ECORE_EXE_USE_SH, NULL); } else { exe = ecore_exe_pipe_run(al->program, ECORE_EXE_USE_SH, NULL); } if (exe > 0) ecore_exe_free(exe); else { snprintf(buf, sizeof(buf), D_("<hilight>Failed !</hilight><br><br>" "Alarm couln't launch the program you specified")); e_module_dialog_show(alarm_config->module, D_("Alarm Module Error"), buf); ret = 0; } } _alarm_check_date(al, 0); if (alarm_config->alarms_details) alarm_edje_refresh_details(); e_config_save_queue(); return ret; }
static void alarm_sound_end(void) { if (audio_exe) { ecore_exe_interrupt(audio_exe); ecore_exe_free(audio_exe); audio_exe = NULL; } }
void _wkb_ibus_disconnect_free(void *data, void *func_data) { DBG("Finishing Eldbus Connection"); eldbus_connection_unref(wkb_ibus->conn); wkb_ibus->conn = NULL; if (wkb_ibus->ibus_daemon) { DBG("Terminating ibus-daemon"); ecore_exe_terminate(wkb_ibus->ibus_daemon); ecore_exe_free(wkb_ibus->ibus_daemon); wkb_ibus->ibus_daemon = NULL; } if (wkb_ibus->shutting_down) _wkb_ibus_shutdown_finish(); }
void JsonApiHandlerHttp::exeFinished(Ecore_Exe *exe, int exit_code) { if (exit_code != 0) { json_t *jret = json_object(); json_object_set_new(jret, "success", json_string("false")); json_object_set_new(jret, "error_str", json_string("unable to load data from url")); sendJson(jret); return; } ecore_exe_free(exe); json_t *jret = json_object(); json_object_set_new(jret, "success", json_string("true")); json_object_set_new(jret, "contenttype", json_string("image/jpeg")); json_object_set_new(jret, "encoding", json_string("base64")); json_object_set_new(jret, "data", json_string(Utils::getFileContentBase64(tempfname.c_str()).c_str())); sendJson(jret); }
void _ecore_exe_shutdown(void) { while (exes) ecore_exe_free(exes); }