Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
24780d99
Commit
24780d99
authored
Oct 17, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input_plugin: rename struct to "InputPlugin"
parent
7c1cf617
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
31 additions
and
32 deletions
+31
-32
InputInit.cxx
src/InputInit.cxx
+1
-1
InputPlugin.hxx
src/InputPlugin.hxx
+1
-1
InputRegistry.cxx
src/InputRegistry.cxx
+1
-1
InputRegistry.hxx
src/InputRegistry.hxx
+2
-2
InputStream.hxx
src/InputStream.hxx
+3
-2
Bzip2ArchivePlugin.cxx
src/archive/Bzip2ArchivePlugin.cxx
+2
-2
Iso9660ArchivePlugin.cxx
src/archive/Iso9660ArchivePlugin.cxx
+2
-2
ZzipArchivePlugin.cxx
src/archive/ZzipArchivePlugin.cxx
+2
-2
ArchiveInputPlugin.cxx
src/input/ArchiveInputPlugin.cxx
+1
-1
ArchiveInputPlugin.hxx
src/input/ArchiveInputPlugin.hxx
+1
-1
CdioParanoiaInputPlugin.cxx
src/input/CdioParanoiaInputPlugin.cxx
+1
-1
CdioParanoiaInputPlugin.hxx
src/input/CdioParanoiaInputPlugin.hxx
+1
-1
CurlInputPlugin.cxx
src/input/CurlInputPlugin.cxx
+2
-2
CurlInputPlugin.hxx
src/input/CurlInputPlugin.hxx
+1
-3
DespotifyInputPlugin.cxx
src/input/DespotifyInputPlugin.cxx
+1
-1
DespotifyInputPlugin.hxx
src/input/DespotifyInputPlugin.hxx
+1
-1
FfmpegInputPlugin.cxx
src/input/FfmpegInputPlugin.cxx
+1
-1
FfmpegInputPlugin.hxx
src/input/FfmpegInputPlugin.hxx
+1
-1
FileInputPlugin.cxx
src/input/FileInputPlugin.cxx
+1
-1
FileInputPlugin.hxx
src/input/FileInputPlugin.hxx
+1
-1
MmsInputPlugin.cxx
src/input/MmsInputPlugin.cxx
+1
-1
MmsInputPlugin.hxx
src/input/MmsInputPlugin.hxx
+1
-1
RewindInputPlugin.cxx
src/input/RewindInputPlugin.cxx
+2
-2
No files found.
src/InputInit.cxx
View file @
24780d99
...
...
@@ -65,7 +65,7 @@ input_stream_global_init(Error &error)
const
config_param
empty
;
for
(
unsigned
i
=
0
;
input_plugins
[
i
]
!=
NULL
;
++
i
)
{
const
struct
input_p
lugin
*
plugin
=
input_plugins
[
i
];
const
InputP
lugin
*
plugin
=
input_plugins
[
i
];
assert
(
plugin
->
name
!=
NULL
);
assert
(
*
plugin
->
name
!=
0
);
...
...
src/InputPlugin.hxx
View file @
24780d99
...
...
@@ -32,7 +32,7 @@ struct input_stream;
class
Error
;
struct
Tag
;
struct
input_p
lugin
{
struct
InputP
lugin
{
const
char
*
name
;
/**
...
...
src/InputRegistry.cxx
View file @
24780d99
...
...
@@ -46,7 +46,7 @@
#include "input/DespotifyInputPlugin.hxx"
#endif
const
struct
input_p
lugin
*
const
input_plugins
[]
=
{
const
InputP
lugin
*
const
input_plugins
[]
=
{
&
input_plugin_file
,
#ifdef ENABLE_ARCHIVE
&
input_plugin_archive
,
...
...
src/InputRegistry.hxx
View file @
24780d99
...
...
@@ -26,12 +26,12 @@
* NULL terminated list of all input plugins which were enabled at
* compile time.
*/
extern
const
struct
input_p
lugin
*
const
input_plugins
[];
extern
const
struct
InputP
lugin
*
const
input_plugins
[];
extern
bool
input_plugins_enabled
[];
#define input_plugins_for_each(plugin) \
for (const
struct input_p
lugin *plugin, \
for (const
InputP
lugin *plugin, \
*const*input_plugin_iterator = &input_plugins[0]; \
(plugin = *input_plugin_iterator) != NULL; \
++input_plugin_iterator)
...
...
src/InputStream.hxx
View file @
24780d99
...
...
@@ -33,12 +33,13 @@
class
Cond
;
class
Error
;
struct
Tag
;
struct
InputPlugin
;
struct
input_stream
{
/**
* the plugin which implements this input stream
*/
const
struct
input_p
lugin
&
plugin
;
const
InputP
lugin
&
plugin
;
/**
* The absolute URI which was used to open this stream.
...
...
@@ -91,7 +92,7 @@ struct input_stream {
*/
std
::
string
mime
;
input_stream
(
const
input_p
lugin
&
_plugin
,
input_stream
(
const
InputP
lugin
&
_plugin
,
const
char
*
_uri
,
Mutex
&
_mutex
,
Cond
&
_cond
)
:
plugin
(
_plugin
),
uri
(
_uri
),
mutex
(
_mutex
),
cond
(
_cond
),
...
...
src/archive/Bzip2ArchivePlugin.cxx
View file @
24780d99
...
...
@@ -109,7 +109,7 @@ struct Bzip2InputStream {
void
Close
();
};
extern
const
struct
input_p
lugin
bz2_inputplugin
;
extern
const
InputP
lugin
bz2_inputplugin
;
static
constexpr
Domain
bz2_domain
(
"bz2"
);
...
...
@@ -276,7 +276,7 @@ static const char *const bz2_extensions[] = {
NULL
};
const
struct
input_p
lugin
bz2_inputplugin
=
{
const
InputP
lugin
bz2_inputplugin
=
{
nullptr
,
nullptr
,
nullptr
,
...
...
src/archive/Iso9660ArchivePlugin.cxx
View file @
24780d99
...
...
@@ -72,7 +72,7 @@ public:
Error
&
error
)
override
;
};
extern
const
struct
input_p
lugin
iso9660_input_plugin
;
extern
const
InputP
lugin
iso9660_input_plugin
;
static
constexpr
Domain
iso9660_domain
(
"iso9660"
);
...
...
@@ -239,7 +239,7 @@ static const char *const iso9660_archive_extensions[] = {
NULL
};
const
struct
input_p
lugin
iso9660_input_plugin
=
{
const
InputP
lugin
iso9660_input_plugin
=
{
nullptr
,
nullptr
,
nullptr
,
...
...
src/archive/ZzipArchivePlugin.cxx
View file @
24780d99
...
...
@@ -66,7 +66,7 @@ public:
Error
&
error
)
override
;
};
extern
const
struct
input_p
lugin
zzip_input_plugin
;
extern
const
InputP
lugin
zzip_input_plugin
;
static
constexpr
Domain
zzip_domain
(
"zzip"
);
...
...
@@ -202,7 +202,7 @@ static const char *const zzip_archive_extensions[] = {
NULL
};
const
struct
input_p
lugin
zzip_input_plugin
=
{
const
InputP
lugin
zzip_input_plugin
=
{
nullptr
,
nullptr
,
nullptr
,
...
...
src/input/ArchiveInputPlugin.cxx
View file @
24780d99
...
...
@@ -83,7 +83,7 @@ input_archive_open(const char *pathname,
return
is
;
}
const
struct
input_p
lugin
input_plugin_archive
=
{
const
InputP
lugin
input_plugin_archive
=
{
"archive"
,
nullptr
,
nullptr
,
...
...
src/input/ArchiveInputPlugin.hxx
View file @
24780d99
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_INPUT_ARCHIVE_HXX
#define MPD_INPUT_ARCHIVE_HXX
extern
const
struct
input_p
lugin
input_plugin_archive
;
extern
const
struct
InputP
lugin
input_plugin_archive
;
#endif
src/input/CdioParanoiaInputPlugin.cxx
View file @
24780d99
...
...
@@ -363,7 +363,7 @@ input_cdio_eof(struct input_stream *is)
return
(
cis
->
lsn_from
+
cis
->
lsn_relofs
>
cis
->
lsn_to
);
}
const
struct
input_p
lugin
input_plugin_cdio_paranoia
=
{
const
InputP
lugin
input_plugin_cdio_paranoia
=
{
"cdio_paranoia"
,
nullptr
,
nullptr
,
...
...
src/input/CdioParanoiaInputPlugin.hxx
View file @
24780d99
...
...
@@ -23,6 +23,6 @@
/**
* An input plugin based on libcdio_paranoia library.
*/
extern
const
struct
input_p
lugin
input_plugin_cdio_paranoia
;
extern
const
struct
InputP
lugin
input_plugin_cdio_paranoia
;
#endif
src/input/CurlInputPlugin.cxx
View file @
24780d99
...
...
@@ -551,7 +551,7 @@ CurlSockets::DispatchSockets()
}
/*
*
input_p
lugin methods
*
InputP
lugin methods
*
*/
...
...
@@ -1103,7 +1103,7 @@ input_curl_open(const char *url, Mutex &mutex, Cond &cond,
return
&
c
->
base
;
}
const
struct
input_p
lugin
input_plugin_curl
=
{
const
struct
InputP
lugin
input_plugin_curl
=
{
"curl"
,
input_curl_init
,
input_curl_finish
,
...
...
src/input/CurlInputPlugin.hxx
View file @
24780d99
...
...
@@ -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
src/input/DespotifyInputPlugin.cxx
View file @
24780d99
...
...
@@ -219,7 +219,7 @@ input_despotify_tag(struct input_stream *is)
return
tag
;
}
const
struct
input_p
lugin
input_plugin_despotify
=
{
const
InputP
lugin
input_plugin_despotify
=
{
"spt"
,
nullptr
,
nullptr
,
...
...
src/input/DespotifyInputPlugin.hxx
View file @
24780d99
...
...
@@ -20,6 +20,6 @@
#ifndef INPUT_DESPOTIFY_HXX
#define INPUT_DESPOTIFY_HXX
extern
const
struct
input_p
lugin
input_plugin_despotify
;
extern
const
struct
InputP
lugin
input_plugin_despotify
;
#endif
src/input/FfmpegInputPlugin.cxx
View file @
24780d99
...
...
@@ -161,7 +161,7 @@ input_ffmpeg_seek(struct input_stream *is, goffset offset, int whence,
}
}
const
struct
input_p
lugin
input_plugin_ffmpeg
=
{
const
InputP
lugin
input_plugin_ffmpeg
=
{
"ffmpeg"
,
input_ffmpeg_init
,
nullptr
,
...
...
src/input/FfmpegInputPlugin.hxx
View file @
24780d99
...
...
@@ -23,6 +23,6 @@
/**
* An input plugin based on libavformat's "avio" library.
*/
extern
const
struct
input_p
lugin
input_plugin_ffmpeg
;
extern
const
struct
InputP
lugin
input_plugin_ffmpeg
;
#endif
src/input/FileInputPlugin.cxx
View file @
24780d99
...
...
@@ -143,7 +143,7 @@ input_file_eof(struct input_stream *is)
return
is
->
offset
>=
is
->
size
;
}
const
struct
input_p
lugin
input_plugin_file
=
{
const
InputP
lugin
input_plugin_file
=
{
"file"
,
nullptr
,
nullptr
,
...
...
src/input/FileInputPlugin.hxx
View file @
24780d99
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_INPUT_FILE_HXX
#define MPD_INPUT_FILE_HXX
extern
const
struct
input_p
lugin
input_plugin_file
;
extern
const
struct
InputP
lugin
input_plugin_file
;
#endif
src/input/MmsInputPlugin.cxx
View file @
24780d99
...
...
@@ -115,7 +115,7 @@ input_mms_eof(struct input_stream *is)
return
m
->
eof
;
}
const
struct
input_p
lugin
input_plugin_mms
=
{
const
InputP
lugin
input_plugin_mms
=
{
"mms"
,
nullptr
,
nullptr
,
...
...
src/input/MmsInputPlugin.hxx
View file @
24780d99
...
...
@@ -20,6 +20,6 @@
#ifndef INPUT_MMS_H
#define INPUT_MMS_H
extern
const
struct
input_p
lugin
input_plugin_mms
;
extern
const
struct
InputP
lugin
input_plugin_mms
;
#endif
src/input/RewindInputPlugin.cxx
View file @
24780d99
...
...
@@ -28,7 +28,7 @@
#include <string.h>
#include <stdio.h>
extern
const
struct
input_p
lugin
rewind_input_plugin
;
extern
const
InputP
lugin
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_p
lugin
rewind_input_plugin
=
{
const
InputP
lugin
rewind_input_plugin
=
{
nullptr
,
nullptr
,
nullptr
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment