diff options
author | Max Kellermann <max@duempel.org> | 2013-10-19 18:48:38 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-19 18:48:38 +0200 |
commit | ff626ac76357940b2f0ac5cb243a68ac13df0f8a (patch) | |
tree | 493888a28950f75f5e254c0ded9dc9703ee83dc3 /src/PlaylistPrint.hxx | |
parent | 59f8144c50765189594d5932fc25869f9ea6e265 (diff) | |
download | mpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.tar.gz mpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.tar.xz mpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.zip |
*: use references instead of pointers
Diffstat (limited to 'src/PlaylistPrint.hxx')
-rw-r--r-- | src/PlaylistPrint.hxx | 23 |
1 files changed, 12 insertions, 11 deletions
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 |