input_plugin: rename struct to "InputPlugin"
This commit is contained in:
@@ -83,7 +83,7 @@ input_archive_open(const char *pathname,
|
||||
return is;
|
||||
}
|
||||
|
||||
const struct input_plugin input_plugin_archive = {
|
||||
const InputPlugin input_plugin_archive = {
|
||||
"archive",
|
||||
nullptr,
|
||||
nullptr,
|
||||
|
||||
@@ -20,6 +20,6 @@
|
||||
#ifndef MPD_INPUT_ARCHIVE_HXX
|
||||
#define MPD_INPUT_ARCHIVE_HXX
|
||||
|
||||
extern const struct input_plugin input_plugin_archive;
|
||||
extern const struct InputPlugin input_plugin_archive;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -363,7 +363,7 @@ input_cdio_eof(struct input_stream *is)
|
||||
return (cis->lsn_from + cis->lsn_relofs > cis->lsn_to);
|
||||
}
|
||||
|
||||
const struct input_plugin input_plugin_cdio_paranoia = {
|
||||
const InputPlugin input_plugin_cdio_paranoia = {
|
||||
"cdio_paranoia",
|
||||
nullptr,
|
||||
nullptr,
|
||||
|
||||
@@ -23,6 +23,6 @@
|
||||
/**
|
||||
* An input plugin based on libcdio_paranoia library.
|
||||
*/
|
||||
extern const struct input_plugin input_plugin_cdio_paranoia;
|
||||
extern const struct InputPlugin input_plugin_cdio_paranoia;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -551,7 +551,7 @@ CurlSockets::DispatchSockets()
|
||||
}
|
||||
|
||||
/*
|
||||
* input_plugin methods
|
||||
* InputPlugin methods
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -1103,7 +1103,7 @@ input_curl_open(const char *url, Mutex &mutex, Cond &cond,
|
||||
return &c->base;
|
||||
}
|
||||
|
||||
const struct input_plugin input_plugin_curl = {
|
||||
const struct InputPlugin input_plugin_curl = {
|
||||
"curl",
|
||||
input_curl_init,
|
||||
input_curl_finish,
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_INPUT_CURL_HXX
|
||||
#define MPD_INPUT_CURL_HXX
|
||||
|
||||
struct input_stream;
|
||||
|
||||
extern const struct input_plugin input_plugin_curl;
|
||||
extern const struct InputPlugin input_plugin_curl;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -219,7 +219,7 @@ input_despotify_tag(struct input_stream *is)
|
||||
return tag;
|
||||
}
|
||||
|
||||
const struct input_plugin input_plugin_despotify = {
|
||||
const InputPlugin input_plugin_despotify = {
|
||||
"spt",
|
||||
nullptr,
|
||||
nullptr,
|
||||
|
||||
@@ -20,6 +20,6 @@
|
||||
#ifndef INPUT_DESPOTIFY_HXX
|
||||
#define INPUT_DESPOTIFY_HXX
|
||||
|
||||
extern const struct input_plugin input_plugin_despotify;
|
||||
extern const struct InputPlugin input_plugin_despotify;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -161,7 +161,7 @@ input_ffmpeg_seek(struct input_stream *is, goffset offset, int whence,
|
||||
}
|
||||
}
|
||||
|
||||
const struct input_plugin input_plugin_ffmpeg = {
|
||||
const InputPlugin input_plugin_ffmpeg = {
|
||||
"ffmpeg",
|
||||
input_ffmpeg_init,
|
||||
nullptr,
|
||||
|
||||
@@ -23,6 +23,6 @@
|
||||
/**
|
||||
* An input plugin based on libavformat's "avio" library.
|
||||
*/
|
||||
extern const struct input_plugin input_plugin_ffmpeg;
|
||||
extern const struct InputPlugin input_plugin_ffmpeg;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -143,7 +143,7 @@ input_file_eof(struct input_stream *is)
|
||||
return is->offset >= is->size;
|
||||
}
|
||||
|
||||
const struct input_plugin input_plugin_file = {
|
||||
const InputPlugin input_plugin_file = {
|
||||
"file",
|
||||
nullptr,
|
||||
nullptr,
|
||||
|
||||
@@ -20,6 +20,6 @@
|
||||
#ifndef MPD_INPUT_FILE_HXX
|
||||
#define MPD_INPUT_FILE_HXX
|
||||
|
||||
extern const struct input_plugin input_plugin_file;
|
||||
extern const struct InputPlugin input_plugin_file;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -115,7 +115,7 @@ input_mms_eof(struct input_stream *is)
|
||||
return m->eof;
|
||||
}
|
||||
|
||||
const struct input_plugin input_plugin_mms = {
|
||||
const InputPlugin input_plugin_mms = {
|
||||
"mms",
|
||||
nullptr,
|
||||
nullptr,
|
||||
|
||||
@@ -20,6 +20,6 @@
|
||||
#ifndef INPUT_MMS_H
|
||||
#define INPUT_MMS_H
|
||||
|
||||
extern const struct input_plugin input_plugin_mms;
|
||||
extern const struct InputPlugin input_plugin_mms;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
extern const struct input_plugin rewind_input_plugin;
|
||||
extern const InputPlugin rewind_input_plugin;
|
||||
|
||||
struct RewindInputStream {
|
||||
struct input_stream base;
|
||||
@@ -221,7 +221,7 @@ input_rewind_seek(struct input_stream *is, goffset offset, int whence,
|
||||
}
|
||||
}
|
||||
|
||||
const struct input_plugin rewind_input_plugin = {
|
||||
const InputPlugin rewind_input_plugin = {
|
||||
nullptr,
|
||||
nullptr,
|
||||
nullptr,
|
||||
|
||||
Reference in New Issue
Block a user