From ff626ac76357940b2f0ac5cb243a68ac13df0f8a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 19 Oct 2013 18:48:38 +0200 Subject: *: use references instead of pointers --- src/PlaylistPrint.hxx | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'src/PlaylistPrint.hxx') diff --git a/src/PlaylistPrint.hxx b/src/PlaylistPrint.hxx index c8c353d0c..cea6928ca 100644 --- a/src/PlaylistPrint.hxx +++ b/src/PlaylistPrint.hxx @@ -1,3 +1,4 @@ + /* * Copyright (C) 2003-2012 The Music Player Daemon Project * http://www.musicpd.org @@ -31,7 +32,7 @@ class Error; * Sends the whole playlist to the client, song URIs only. */ void -playlist_print_uris(Client *client, const struct playlist *playlist); +playlist_print_uris(Client &client, const playlist &playlist); /** * Sends a range of the playlist to the client, including all known @@ -40,7 +41,7 @@ playlist_print_uris(Client *client, const struct playlist *playlist); * This function however fails when the start offset is invalid. */ bool -playlist_print_info(Client *client, const struct playlist *playlist, +playlist_print_info(Client &client, const playlist &playlist, unsigned start, unsigned end); /** @@ -49,7 +50,7 @@ playlist_print_info(Client *client, const struct playlist *playlist, * @return true on suite, false if there is no such song */ bool -playlist_print_id(Client *client, const struct playlist *playlist, +playlist_print_id(Client &client, const playlist &playlist, unsigned id); /** @@ -58,29 +59,29 @@ playlist_print_id(Client *client, const struct playlist *playlist, * @return true on success, false if there is no current song */ bool -playlist_print_current(Client *client, const struct playlist *playlist); +playlist_print_current(Client &client, const playlist &playlist); /** * Find songs in the playlist. */ void -playlist_print_find(Client *client, const struct playlist *playlist, +playlist_print_find(Client &client, const playlist &playlist, const SongFilter &filter); /** * Print detailed changes since the specified playlist version. */ void -playlist_print_changes_info(Client *client, - const struct playlist *playlist, +playlist_print_changes_info(Client &client, + const playlist &playlist, uint32_t version); /** * Print changes since the specified playlist version, position only. */ void -playlist_print_changes_position(Client *client, - const struct playlist *playlist, +playlist_print_changes_position(Client &client, + const playlist &playlist, uint32_t version); /** @@ -92,7 +93,7 @@ playlist_print_changes_position(Client *client, * @return true on success, false if the playlist does not exist */ bool -spl_print(Client *client, const char *name_utf8, bool detail, +spl_print(Client &client, const char *name_utf8, bool detail, Error &error); /** @@ -104,6 +105,6 @@ spl_print(Client *client, const char *name_utf8, bool detail, * @return true on success, false if the playlist does not exist */ bool -playlist_file_print(Client *client, const char *uri, bool detail); +playlist_file_print(Client &client, const char *uri, bool detail); #endif -- cgit v1.2.3