playlist/*: convert to C++
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#include "DespotifyPlaylistPlugin.hxx"
|
||||
#include "DespotifyUtils.hxx"
|
||||
#include "playlist_plugin.h"
|
||||
#include "playlist_list.h"
|
||||
#include "PlaylistRegistry.hxx"
|
||||
#include "conf.h"
|
||||
#include "uri.h"
|
||||
#include "tag.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 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
|
||||
@@ -24,15 +24,18 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "playlist/embcue_playlist_plugin.h"
|
||||
#include "EmbeddedCuePlaylistPlugin.hxx"
|
||||
#include "playlist_plugin.h"
|
||||
#include "tag.h"
|
||||
#include "tag_handler.h"
|
||||
#include "song.h"
|
||||
|
||||
extern "C" {
|
||||
#include "tag_file.h"
|
||||
#include "tag_ape.h"
|
||||
#include "tag_id3.h"
|
||||
#include "song.h"
|
||||
#include "cue/cue_parser.h"
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
#include <assert.h>
|
||||
@@ -67,7 +70,7 @@ struct embcue_playlist {
|
||||
static void
|
||||
embcue_tag_pair(const char *name, const char *value, void *ctx)
|
||||
{
|
||||
struct embcue_playlist *playlist = ctx;
|
||||
struct embcue_playlist *playlist = (struct embcue_playlist *)ctx;
|
||||
|
||||
if (playlist->cuesheet == NULL &&
|
||||
g_ascii_strcasecmp(name, "cuesheet") == 0)
|
||||
@@ -75,7 +78,9 @@ embcue_tag_pair(const char *name, const char *value, void *ctx)
|
||||
}
|
||||
|
||||
static const struct tag_handler embcue_tag_handler = {
|
||||
.pair = embcue_tag_pair,
|
||||
nullptr,
|
||||
nullptr,
|
||||
embcue_tag_pair,
|
||||
};
|
||||
|
||||
static struct playlist_provider *
|
||||
@@ -170,12 +175,16 @@ static const char *const embcue_playlist_suffixes[] = {
|
||||
};
|
||||
|
||||
const struct playlist_plugin embcue_playlist_plugin = {
|
||||
.name = "cue",
|
||||
"cue",
|
||||
|
||||
.open_uri = embcue_playlist_open_uri,
|
||||
.close = embcue_playlist_close,
|
||||
.read = embcue_playlist_read,
|
||||
nullptr,
|
||||
nullptr,
|
||||
embcue_playlist_open_uri,
|
||||
nullptr,
|
||||
embcue_playlist_close,
|
||||
embcue_playlist_read,
|
||||
|
||||
.suffixes = embcue_playlist_suffixes,
|
||||
.mime_types = NULL,
|
||||
embcue_playlist_suffixes,
|
||||
nullptr,
|
||||
nullptr,
|
||||
};
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 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,8 +17,8 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef MPD_PLAYLIST_EMBCUE_PLAYLIST_PLUGIN_H
|
||||
#define MPD_PLAYLIST_EMBCUE_PLAYLIST_PLUGIN_H
|
||||
#ifndef MPD_EMBCUE_PLAYLIST_PLUGIN_HXX
|
||||
#define MPD_EMBCUE_PLAYLIST_PLUGIN_HXX
|
||||
|
||||
extern const struct playlist_plugin embcue_playlist_plugin;
|
||||
|
@@ -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
|
||||
@@ -18,9 +18,9 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "playlist/lastfm_playlist_plugin.h"
|
||||
#include "LastFMPlaylistPlugin.hxx"
|
||||
#include "playlist_plugin.h"
|
||||
#include "playlist_list.h"
|
||||
#include "PlaylistRegistry.hxx"
|
||||
#include "conf.h"
|
||||
#include "uri.h"
|
||||
#include "song.h"
|
||||
@@ -284,13 +284,16 @@ static const char *const lastfm_schemes[] = {
|
||||
};
|
||||
|
||||
const struct playlist_plugin lastfm_playlist_plugin = {
|
||||
.name = "lastfm",
|
||||
"lastfm",
|
||||
|
||||
.init = lastfm_init,
|
||||
.finish = lastfm_finish,
|
||||
.open_uri = lastfm_open_uri,
|
||||
.close = lastfm_close,
|
||||
.read = lastfm_read,
|
||||
lastfm_init,
|
||||
lastfm_finish,
|
||||
lastfm_open_uri,
|
||||
nullptr,
|
||||
lastfm_close,
|
||||
lastfm_read,
|
||||
|
||||
.schemes = lastfm_schemes,
|
||||
lastfm_schemes,
|
||||
nullptr,
|
||||
nullptr,
|
||||
};
|
@@ -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,8 +17,8 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef MPD_PLAYLIST_LASTFM_PLAYLIST_PLUGIN_H
|
||||
#define MPD_PLAYLIST_LASTFM_PLAYLIST_PLUGIN_H
|
||||
#ifndef MPD_LASTFM_PLAYLIST_PLUGIN_HXX
|
||||
#define MPD_LASTFM_PLAYLIST_PLUGIN_HXX
|
||||
|
||||
extern const struct playlist_plugin lastfm_playlist_plugin;
|
||||
|
@@ -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
|
||||
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "playlist/soundcloud_playlist_plugin.h"
|
||||
#include "SoundCloudPlaylistPlugin.hxx"
|
||||
#include "conf.h"
|
||||
#include "input_stream.h"
|
||||
#include "playlist_plugin.h"
|
||||
@@ -434,15 +434,18 @@ static const char *const soundcloud_schemes[] = {
|
||||
};
|
||||
|
||||
const struct playlist_plugin soundcloud_playlist_plugin = {
|
||||
.name = "soundcloud",
|
||||
"soundcloud",
|
||||
|
||||
.init = soundcloud_init,
|
||||
.finish = soundcloud_finish,
|
||||
.open_uri = soundcloud_open_uri,
|
||||
.close = soundcloud_close,
|
||||
.read = soundcloud_read,
|
||||
soundcloud_init,
|
||||
soundcloud_finish,
|
||||
soundcloud_open_uri,
|
||||
nullptr,
|
||||
soundcloud_close,
|
||||
soundcloud_read,
|
||||
|
||||
.schemes = soundcloud_schemes,
|
||||
soundcloud_schemes,
|
||||
nullptr,
|
||||
nullptr,
|
||||
};
|
||||
|
||||
|
@@ -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,8 +17,8 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef MPD_PLAYLIST_SOUNDCLOUD_PLAYLIST_PLUGIN_H
|
||||
#define MPD_PLAYLIST_SOUNDCLOUD_PLAYLIST_PLUGIN_H
|
||||
#ifndef MPD_SOUNDCLOUD_PLAYLIST_PLUGIN_HXX
|
||||
#define MPD_SOUNDCLOUD_PLAYLIST_PLUGIN_HXX
|
||||
|
||||
extern const struct playlist_plugin soundcloud_playlist_plugin;
|
||||
|
Reference in New Issue
Block a user