diff options
Diffstat (limited to '')
-rw-r--r-- | src/ClientEvent.cxx (renamed from src/song_print.h) | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/song_print.h b/src/ClientEvent.cxx index 8f1f0cc65..905cf0c0a 100644 --- a/src/song_print.h +++ b/src/ClientEvent.cxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2011 The Music Player Daemon Project + * Copyright (C) 2003-2013 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -17,17 +17,20 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef MPD_SONG_PRINT_H -#define MPD_SONG_PRINT_H - -struct client; -struct song; -struct songvec; +#include "config.h" +#include "ClientInternal.hxx" void -song_print_info(struct client *client, struct song *song); +Client::OnSocketError(GError *error) +{ + g_warning("error on client %d: %s", num, error->message); + g_error_free(error); -void -song_print_uri(struct client *client, struct song *song); + SetExpired(); +} -#endif +void +Client::OnSocketClosed() +{ + SetExpired(); +} |