Exemplo n.º 1
0
Arquivo: main.c Projeto: 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;
}
Exemplo n.º 2
0
static void
glue_state_file_init(void)
{
	state_file_init(config_get_path(CONF_STATE_FILE));
}