playlist_print: rename to PlaylistPrint.cxx

This commit is contained in:
Max Kellermann 2012-08-29 20:17:13 +02:00
parent 6ee76b7154
commit 04a9dec952
6 changed files with 13 additions and 11 deletions

View File

@ -154,7 +154,6 @@ mpd_headers = \
src/playlist.h \ src/playlist.h \
src/playlist_error.h \ src/playlist_error.h \
src/playlist_internal.h \ src/playlist_internal.h \
src/playlist_print.h \
src/playlist_save.h \ src/playlist_save.h \
src/playlist_state.h \ src/playlist_state.h \
src/playlist_plugin.h \ src/playlist_plugin.h \
@ -324,7 +323,7 @@ src_mpd_SOURCES = \
src/playlist_global.c \ src/playlist_global.c \
src/playlist_control.c \ src/playlist_control.c \
src/playlist_edit.c \ src/playlist_edit.c \
src/playlist_print.c \ src/PlaylistPrint.cxx src/PlaylistPrint.hxx \
src/playlist_save.c \ src/playlist_save.c \
src/playlist_mapper.c \ src/playlist_mapper.c \
src/playlist_any.c \ src/playlist_any.c \

View File

@ -20,13 +20,13 @@
#include "config.h" #include "config.h"
#include "PlayerCommands.hxx" #include "PlayerCommands.hxx"
#include "CommandError.h" #include "CommandError.h"
#include "PlaylistPrint.hxx"
extern "C" { extern "C" {
#include "protocol/argparser.h" #include "protocol/argparser.h"
#include "protocol/result.h" #include "protocol/result.h"
#include "player_control.h" #include "player_control.h"
#include "playlist.h" #include "playlist.h"
#include "playlist_print.h"
#include "update.h" #include "update.h"
#include "volume.h" #include "volume.h"
#include "client.h" #include "client.h"

View File

@ -21,12 +21,12 @@
#include "PlaylistCommands.hxx" #include "PlaylistCommands.hxx"
#include "DatabasePlaylist.hxx" #include "DatabasePlaylist.hxx"
#include "CommandError.h" #include "CommandError.h"
#include "PlaylistPrint.hxx"
extern "C" { extern "C" {
#include "protocol/argparser.h" #include "protocol/argparser.h"
#include "protocol/result.h" #include "protocol/result.h"
#include "playlist.h" #include "playlist.h"
#include "playlist_print.h"
#include "playlist_save.h" #include "playlist_save.h"
#include "playlist_queue.h" #include "playlist_queue.h"
#include "time_print.h" #include "time_print.h"

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2003-2011 The Music Player Daemon Project * Copyright (C) 2003-2012 The Music Player Daemon Project
* http://www.musicpd.org * http://www.musicpd.org
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@ -18,7 +18,9 @@
*/ */
#include "config.h" #include "config.h"
#include "playlist_print.h" #include "PlaylistPrint.hxx"
extern "C" {
#include "playlist_list.h" #include "playlist_list.h"
#include "playlist_plugin.h" #include "playlist_plugin.h"
#include "playlist_any.h" #include "playlist_any.h"
@ -31,6 +33,7 @@
#include "database.h" #include "database.h"
#include "client.h" #include "client.h"
#include "input_stream.h" #include "input_stream.h"
}
void void
playlist_print_uris(struct client *client, const struct playlist *playlist) playlist_print_uris(struct client *client, const struct playlist *playlist)
@ -120,7 +123,7 @@ spl_print(struct client *client, const char *name_utf8, bool detail,
return false; return false;
for (unsigned i = 0; i < list->len; ++i) { for (unsigned i = 0; i < list->len; ++i) {
const char *temp = g_ptr_array_index(list, i); const char *temp = (const char *)g_ptr_array_index(list, i);
bool wrote = false; bool wrote = false;
if (detail) { if (detail) {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2003-2011 The Music Player Daemon Project * Copyright (C) 2003-2012 The Music Player Daemon Project
* http://www.musicpd.org * http://www.musicpd.org
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#ifndef PLAYLIST_PRINT_H #ifndef MPD_PLAYLIST_PRINT_HXX
#define PLAYLIST_PRINT_H #define MPD_PLAYLIST_PRINT_HXX
#include <glib.h> #include <glib.h>
#include <stdbool.h> #include <stdbool.h>

View File

@ -22,12 +22,12 @@
#include "CommandError.h" #include "CommandError.h"
#include "DatabaseQueue.hxx" #include "DatabaseQueue.hxx"
#include "SongFilter.hxx" #include "SongFilter.hxx"
#include "PlaylistPrint.hxx"
extern "C" { extern "C" {
#include "protocol/argparser.h" #include "protocol/argparser.h"
#include "protocol/result.h" #include "protocol/result.h"
#include "playlist.h" #include "playlist.h"
#include "playlist_print.h"
#include "ls.h" #include "ls.h"
#include "uri.h" #include "uri.h"
#include "client_internal.h" #include "client_internal.h"