예제 #1
0
파일: main.c 프로젝트: andrewrk/mpd
static bool
glue_state_file_init(GError **error_r)
{
	GError *error = NULL;

	char *path = config_dup_path(CONF_STATE_FILE, &error);
	if (path == NULL && error != NULL) {
		g_propagate_error(error_r, error);
		return false;
	}

	state_file_init(path, global_player_control);
	g_free(path);

	return true;
}
예제 #2
0
static void
glue_state_file_init(void)
{
	state_file_init(config_get_path(CONF_STATE_FILE));
}