Esempio n. 1
0
void
state_file_init(const char *path)
{
	assert(state_file_path == NULL);

	if (path == NULL)
		return;

	state_file_path = g_strdup(path);
	state_file_read();

	save_state_source_id = g_timeout_add_seconds(5 * 60,
						     timer_save_state_file,
						     NULL);
}
Esempio n. 2
0
void
state_file_init(const char *path, struct player_control *pc)
{
	assert(state_file_path == NULL);

	if (path == NULL)
		return;

	state_file_path = g_strdup(path);
	state_file_read(pc);

	save_state_source_id = g_timeout_add_seconds(5 * 60,
						     timer_save_state_file,
						     pc);
}