Exemplo n.º 1
0
void validate_sound_map()
  {
   unsigned long date,time;

  if (get_date_time(MOB_SOUND,&date,&time)) return;
  set_date_time(MOB_FILE,date,time);
  set_date_time(ITEM_FILE,date,time);
  }
Exemplo n.º 2
0
void do_events(int sig)
{
	set_crash();
	set_date_time();
	check_reboot_shutdown();
	check_idle_and_timeout();
#ifdef NETLINKS
	check_nethangs_send_keepalives(); 
#endif
	check_messages(NULL,0);
	reset_alarm();
	transport();
	plugin_triggers(NULL, "");
	check_alarm();
	if (syspp->auto_save!=(-1))
		check_autosave();
	check_credit_updates();
	check_lynx();
	check_pings();
}
Exemplo n.º 3
0
void setup_dtconf() {
	GtkWidget *utccheckbutton = lookup_widget(MainWindow,"checkbutton2");

	if (!read_zone_info()) {
		debug("Error: Can't read zone info, exitting\n");
		exit(1);
	}
	struct tm *dt = get_current_date_time();
	set_date_time(*dt);	
	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(utccheckbutton),check_system_utc());
	debug("Set date/time\n");
	set_ntp_server_list();
	do_ntp_server();
	setup_timezone_list();
	read_current_timezone();
	if (read_tz != NULL) {
		set_readin_tz();
	}
	setup_timezone_list_cb();

	debug("Set up ntp\n");
	realised = TRUE;
	g_timeout_add(1000,sec_timeout,NULL);
}