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
72af3c04
Commit
72af3c04
authored
Oct 21, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder_plugin: rename struct to DecoderPlugin
parent
65e54f6e
Hide whitespace changes
Inline
Side-by-side
Showing
55 changed files
with
93 additions
and
93 deletions
+93
-93
DecoderList.cxx
src/DecoderList.cxx
+9
-9
DecoderList.hxx
src/DecoderList.hxx
+7
-7
DecoderPlugin.cxx
src/DecoderPlugin.cxx
+2
-2
DecoderPlugin.hxx
src/DecoderPlugin.hxx
+10
-10
DecoderPrint.cxx
src/DecoderPrint.cxx
+1
-1
DecoderThread.cxx
src/DecoderThread.cxx
+8
-8
SongUpdate.cxx
src/SongUpdate.cxx
+2
-2
TagFile.cxx
src/TagFile.cxx
+1
-1
UpdateContainer.cxx
src/UpdateContainer.cxx
+1
-1
UpdateContainer.hxx
src/UpdateContainer.hxx
+2
-2
UpdateSong.cxx
src/UpdateSong.cxx
+2
-2
AdPlugDecoderPlugin.cxx
src/decoder/AdPlugDecoderPlugin.cxx
+1
-1
AdPlugDecoderPlugin.h
src/decoder/AdPlugDecoderPlugin.h
+1
-1
AudiofileDecoderPlugin.cxx
src/decoder/AudiofileDecoderPlugin.cxx
+1
-1
AudiofileDecoderPlugin.hxx
src/decoder/AudiofileDecoderPlugin.hxx
+1
-1
DsdiffDecoderPlugin.cxx
src/decoder/DsdiffDecoderPlugin.cxx
+1
-1
DsdiffDecoderPlugin.hxx
src/decoder/DsdiffDecoderPlugin.hxx
+1
-1
DsfDecoderPlugin.cxx
src/decoder/DsfDecoderPlugin.cxx
+1
-1
DsfDecoderPlugin.hxx
src/decoder/DsfDecoderPlugin.hxx
+1
-1
FaadDecoderPlugin.cxx
src/decoder/FaadDecoderPlugin.cxx
+1
-1
FaadDecoderPlugin.hxx
src/decoder/FaadDecoderPlugin.hxx
+1
-1
FfmpegDecoderPlugin.cxx
src/decoder/FfmpegDecoderPlugin.cxx
+1
-1
FfmpegDecoderPlugin.hxx
src/decoder/FfmpegDecoderPlugin.hxx
+1
-1
FlacDecoderPlugin.cxx
src/decoder/FlacDecoderPlugin.cxx
+2
-2
FlacDecoderPlugin.h
src/decoder/FlacDecoderPlugin.h
+2
-2
FluidsynthDecoderPlugin.cxx
src/decoder/FluidsynthDecoderPlugin.cxx
+1
-1
FluidsynthDecoderPlugin.hxx
src/decoder/FluidsynthDecoderPlugin.hxx
+1
-1
GmeDecoderPlugin.cxx
src/decoder/GmeDecoderPlugin.cxx
+2
-2
GmeDecoderPlugin.hxx
src/decoder/GmeDecoderPlugin.hxx
+1
-1
MadDecoderPlugin.cxx
src/decoder/MadDecoderPlugin.cxx
+1
-1
MadDecoderPlugin.hxx
src/decoder/MadDecoderPlugin.hxx
+1
-1
MikmodDecoderPlugin.cxx
src/decoder/MikmodDecoderPlugin.cxx
+1
-1
MikmodDecoderPlugin.hxx
src/decoder/MikmodDecoderPlugin.hxx
+1
-1
ModplugDecoderPlugin.cxx
src/decoder/ModplugDecoderPlugin.cxx
+1
-1
ModplugDecoderPlugin.hxx
src/decoder/ModplugDecoderPlugin.hxx
+1
-1
MpcdecDecoderPlugin.cxx
src/decoder/MpcdecDecoderPlugin.cxx
+1
-1
MpcdecDecoderPlugin.hxx
src/decoder/MpcdecDecoderPlugin.hxx
+1
-1
Mpg123DecoderPlugin.cxx
src/decoder/Mpg123DecoderPlugin.cxx
+1
-1
Mpg123DecoderPlugin.hxx
src/decoder/Mpg123DecoderPlugin.hxx
+1
-1
OpusDecoderPlugin.cxx
src/decoder/OpusDecoderPlugin.cxx
+1
-1
OpusDecoderPlugin.h
src/decoder/OpusDecoderPlugin.h
+1
-1
PcmDecoderPlugin.cxx
src/decoder/PcmDecoderPlugin.cxx
+1
-1
PcmDecoderPlugin.hxx
src/decoder/PcmDecoderPlugin.hxx
+1
-1
SidplayDecoderPlugin.cxx
src/decoder/SidplayDecoderPlugin.cxx
+2
-2
SidplayDecoderPlugin.hxx
src/decoder/SidplayDecoderPlugin.hxx
+1
-1
SndfileDecoderPlugin.cxx
src/decoder/SndfileDecoderPlugin.cxx
+1
-1
SndfileDecoderPlugin.hxx
src/decoder/SndfileDecoderPlugin.hxx
+1
-1
VorbisDecoderPlugin.cxx
src/decoder/VorbisDecoderPlugin.cxx
+1
-1
VorbisDecoderPlugin.h
src/decoder/VorbisDecoderPlugin.h
+1
-1
WavpackDecoderPlugin.cxx
src/decoder/WavpackDecoderPlugin.cxx
+1
-1
WavpackDecoderPlugin.hxx
src/decoder/WavpackDecoderPlugin.hxx
+1
-1
WildmidiDecoderPlugin.cxx
src/decoder/WildmidiDecoderPlugin.cxx
+1
-1
WildmidiDecoderPlugin.hxx
src/decoder/WildmidiDecoderPlugin.hxx
+1
-1
read_tags.cxx
test/read_tags.cxx
+1
-1
run_decoder.cxx
test/run_decoder.cxx
+1
-1
No files found.
src/DecoderList.cxx
View file @
72af3c04
...
...
@@ -48,7 +48,7 @@
#include <string.h>
const
struct
decoder_p
lugin
*
const
decoder_plugins
[]
=
{
const
struct
DecoderP
lugin
*
const
decoder_plugins
[]
=
{
#ifdef HAVE_MAD
&
mad_decoder_plugin
,
#endif
...
...
@@ -119,7 +119,7 @@ static constexpr unsigned num_decoder_plugins =
bool
decoder_plugins_enabled
[
num_decoder_plugins
];
static
unsigned
decoder_plugin_index
(
const
struct
decoder_p
lugin
*
plugin
)
decoder_plugin_index
(
const
struct
DecoderP
lugin
*
plugin
)
{
unsigned
i
=
0
;
...
...
@@ -130,16 +130,16 @@ decoder_plugin_index(const struct decoder_plugin *plugin)
}
static
unsigned
decoder_plugin_next_index
(
const
struct
decoder_p
lugin
*
plugin
)
decoder_plugin_next_index
(
const
struct
DecoderP
lugin
*
plugin
)
{
return
plugin
==
0
?
0
/* start with first plugin */
:
decoder_plugin_index
(
plugin
)
+
1
;
}
const
struct
decoder_p
lugin
*
const
struct
DecoderP
lugin
*
decoder_plugin_from_suffix
(
const
char
*
suffix
,
const
struct
decoder_p
lugin
*
plugin
)
const
struct
DecoderP
lugin
*
plugin
)
{
if
(
suffix
==
nullptr
)
return
nullptr
;
...
...
@@ -155,7 +155,7 @@ decoder_plugin_from_suffix(const char *suffix,
return
nullptr
;
}
const
struct
decoder_p
lugin
*
const
struct
DecoderP
lugin
*
decoder_plugin_from_mime_type
(
const
char
*
mimeType
,
unsigned
int
next
)
{
static
unsigned
i
=
num_decoder_plugins
;
...
...
@@ -166,7 +166,7 @@ decoder_plugin_from_mime_type(const char *mimeType, unsigned int next)
if
(
!
next
)
i
=
0
;
for
(;
decoder_plugins
[
i
]
!=
nullptr
;
++
i
)
{
const
struct
decoder_p
lugin
*
plugin
=
decoder_plugins
[
i
];
const
struct
DecoderP
lugin
*
plugin
=
decoder_plugins
[
i
];
if
(
decoder_plugins_enabled
[
i
]
&&
decoder_plugin_supports_mime_type
(
*
plugin
,
mimeType
))
{
++
i
;
...
...
@@ -177,7 +177,7 @@ decoder_plugin_from_mime_type(const char *mimeType, unsigned int next)
return
nullptr
;
}
const
struct
decoder_p
lugin
*
const
struct
DecoderP
lugin
*
decoder_plugin_from_name
(
const
char
*
name
)
{
decoder_plugins_for_each_enabled
(
plugin
)
...
...
@@ -216,7 +216,7 @@ void decoder_plugin_init_all(void)
struct
config_param
empty
;
for
(
unsigned
i
=
0
;
decoder_plugins
[
i
]
!=
nullptr
;
++
i
)
{
const
decoder_p
lugin
&
plugin
=
*
decoder_plugins
[
i
];
const
DecoderP
lugin
&
plugin
=
*
decoder_plugins
[
i
];
const
struct
config_param
*
param
=
decoder_plugin_config
(
plugin
.
name
);
...
...
src/DecoderList.hxx
View file @
72af3c04
...
...
@@ -20,13 +20,13 @@
#ifndef MPD_DECODER_LIST_HXX
#define MPD_DECODER_LIST_HXX
struct
decoder_p
lugin
;
struct
DecoderP
lugin
;
extern
const
struct
decoder_p
lugin
*
const
decoder_plugins
[];
extern
const
struct
DecoderP
lugin
*
const
decoder_plugins
[];
extern
bool
decoder_plugins_enabled
[];
#define decoder_plugins_for_each(plugin) \
for (const struct
decoder_p
lugin *plugin, \
for (const struct
DecoderP
lugin *plugin, \
*const*decoder_plugin_iterator = &decoder_plugins[0]; \
(plugin = *decoder_plugin_iterator) != nullptr; \
++decoder_plugin_iterator)
...
...
@@ -44,14 +44,14 @@ extern bool decoder_plugins_enabled[];
* @param plugin the previous plugin, or nullptr to find the first plugin
* @return a plugin, or nullptr if none matches
*/
const
struct
decoder_p
lugin
*
const
struct
DecoderP
lugin
*
decoder_plugin_from_suffix
(
const
char
*
suffix
,
const
struct
decoder_p
lugin
*
plugin
);
const
struct
DecoderP
lugin
*
plugin
);
const
struct
decoder_p
lugin
*
const
struct
DecoderP
lugin
*
decoder_plugin_from_mime_type
(
const
char
*
mimeType
,
unsigned
int
next
);
const
struct
decoder_p
lugin
*
const
struct
DecoderP
lugin
*
decoder_plugin_from_name
(
const
char
*
name
);
/* this is where we "load" all the "plugins" ;-) */
...
...
src/DecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -24,7 +24,7 @@
#include <assert.h>
bool
decoder_plugin_supports_suffix
(
const
decoder_p
lugin
&
plugin
,
decoder_plugin_supports_suffix
(
const
DecoderP
lugin
&
plugin
,
const
char
*
suffix
)
{
assert
(
suffix
!=
nullptr
);
...
...
@@ -35,7 +35,7 @@ decoder_plugin_supports_suffix(const decoder_plugin &plugin,
}
bool
decoder_plugin_supports_mime_type
(
const
decoder_p
lugin
&
plugin
,
decoder_plugin_supports_mime_type
(
const
DecoderP
lugin
&
plugin
,
const
char
*
mime_type
)
{
assert
(
mime_type
!=
nullptr
);
...
...
src/DecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -31,7 +31,7 @@ struct tag_handler;
*/
struct
decoder
;
struct
decoder_p
lugin
{
struct
DecoderP
lugin
{
const
char
*
name
;
/**
...
...
@@ -111,7 +111,7 @@ struct decoder_plugin {
* the plugin is not available
*/
static
inline
bool
decoder_plugin_init
(
const
decoder_p
lugin
&
plugin
,
decoder_plugin_init
(
const
DecoderP
lugin
&
plugin
,
const
config_param
&
param
)
{
return
plugin
.
init
!=
nullptr
...
...
@@ -123,7 +123,7 @@ decoder_plugin_init(const decoder_plugin &plugin,
* Deinitialize a decoder plugin which was initialized successfully.
*/
static
inline
void
decoder_plugin_finish
(
const
decoder_p
lugin
&
plugin
)
decoder_plugin_finish
(
const
DecoderP
lugin
&
plugin
)
{
if
(
plugin
.
finish
!=
nullptr
)
plugin
.
finish
();
...
...
@@ -133,7 +133,7 @@ decoder_plugin_finish(const decoder_plugin &plugin)
* Decode a stream.
*/
static
inline
void
decoder_plugin_stream_decode
(
const
decoder_p
lugin
&
plugin
,
decoder_plugin_stream_decode
(
const
DecoderP
lugin
&
plugin
,
struct
decoder
*
decoder
,
struct
input_stream
*
is
)
{
plugin
.
stream_decode
(
decoder
,
is
);
...
...
@@ -143,7 +143,7 @@ decoder_plugin_stream_decode(const decoder_plugin &plugin,
* Decode a file.
*/
static
inline
void
decoder_plugin_file_decode
(
const
decoder_p
lugin
&
plugin
,
decoder_plugin_file_decode
(
const
DecoderP
lugin
&
plugin
,
struct
decoder
*
decoder
,
const
char
*
path_fs
)
{
plugin
.
file_decode
(
decoder
,
path_fs
);
...
...
@@ -153,7 +153,7 @@ decoder_plugin_file_decode(const decoder_plugin &plugin,
* Read the tag of a file.
*/
static
inline
bool
decoder_plugin_scan_file
(
const
decoder_p
lugin
&
plugin
,
decoder_plugin_scan_file
(
const
DecoderP
lugin
&
plugin
,
const
char
*
path_fs
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
{
...
...
@@ -166,7 +166,7 @@ decoder_plugin_scan_file(const decoder_plugin &plugin,
* Read the tag of a stream.
*/
static
inline
bool
decoder_plugin_scan_stream
(
const
decoder_p
lugin
&
plugin
,
decoder_plugin_scan_stream
(
const
DecoderP
lugin
&
plugin
,
struct
input_stream
*
is
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
...
...
@@ -180,7 +180,7 @@ decoder_plugin_scan_stream(const decoder_plugin &plugin,
* return "virtual" tracks in a container
*/
static
inline
char
*
decoder_plugin_container_scan
(
const
decoder_p
lugin
&
plugin
,
decoder_plugin_container_scan
(
const
DecoderP
lugin
&
plugin
,
const
char
*
pathname
,
const
unsigned
int
tnum
)
{
...
...
@@ -191,14 +191,14 @@ decoder_plugin_container_scan( const decoder_plugin &plugin,
* Does the plugin announce the specified file name suffix?
*/
bool
decoder_plugin_supports_suffix
(
const
decoder_p
lugin
&
plugin
,
decoder_plugin_supports_suffix
(
const
DecoderP
lugin
&
plugin
,
const
char
*
suffix
);
/**
* Does the plugin announce the specified MIME type?
*/
bool
decoder_plugin_supports_mime_type
(
const
decoder_p
lugin
&
plugin
,
decoder_plugin_supports_mime_type
(
const
DecoderP
lugin
&
plugin
,
const
char
*
mime_type
);
#endif
src/DecoderPrint.cxx
View file @
72af3c04
...
...
@@ -27,7 +27,7 @@
static
void
decoder_plugin_print
(
Client
&
client
,
const
struct
decoder_p
lugin
*
plugin
)
const
struct
DecoderP
lugin
*
plugin
)
{
const
char
*
const
*
p
;
...
...
src/DecoderThread.cxx
View file @
72af3c04
...
...
@@ -111,7 +111,7 @@ decoder_input_stream_open(decoder_control &dc, const char *uri)
}
static
bool
decoder_stream_decode
(
const
decoder_p
lugin
&
plugin
,
decoder_stream_decode
(
const
DecoderP
lugin
&
plugin
,
struct
decoder
*
decoder
,
struct
input_stream
*
input_stream
)
{
...
...
@@ -144,7 +144,7 @@ decoder_stream_decode(const decoder_plugin &plugin,
}
static
bool
decoder_file_decode
(
const
decoder_p
lugin
&
plugin
,
decoder_file_decode
(
const
DecoderP
lugin
&
plugin
,
struct
decoder
*
decoder
,
const
char
*
path
)
{
assert
(
plugin
.
file_decode
!=
nullptr
);
...
...
@@ -176,9 +176,9 @@ decoder_file_decode(const decoder_plugin &plugin,
* Hack to allow tracking const decoder plugins in a GSList.
*/
static
inline
gpointer
deconst_plugin
(
const
struct
decoder_p
lugin
*
plugin
)
deconst_plugin
(
const
struct
DecoderP
lugin
*
plugin
)
{
return
const_cast
<
struct
decoder_p
lugin
*>
(
plugin
);
return
const_cast
<
struct
DecoderP
lugin
*>
(
plugin
);
}
/**
...
...
@@ -192,7 +192,7 @@ decoder_run_stream_mime_type(struct decoder *decoder, struct input_stream *is,
{
assert
(
tried_r
!=
nullptr
);
const
struct
decoder_p
lugin
*
plugin
;
const
struct
DecoderP
lugin
*
plugin
;
unsigned
int
next
=
0
;
if
(
is
->
mime
.
empty
())
...
...
@@ -229,7 +229,7 @@ decoder_run_stream_suffix(struct decoder *decoder, struct input_stream *is,
assert
(
tried_r
!=
nullptr
);
const
char
*
suffix
=
uri_get_suffix
(
uri
);
const
struct
decoder_p
lugin
*
plugin
=
nullptr
;
const
struct
DecoderP
lugin
*
plugin
=
nullptr
;
if
(
suffix
==
nullptr
)
return
false
;
...
...
@@ -257,7 +257,7 @@ decoder_run_stream_suffix(struct decoder *decoder, struct input_stream *is,
static
bool
decoder_run_stream_fallback
(
struct
decoder
*
decoder
,
struct
input_stream
*
is
)
{
const
struct
decoder_p
lugin
*
plugin
;
const
struct
DecoderP
lugin
*
plugin
;
plugin
=
decoder_plugin_from_name
(
"mad"
);
return
plugin
!=
nullptr
&&
plugin
->
stream_decode
!=
nullptr
&&
...
...
@@ -326,7 +326,7 @@ decoder_run_file(struct decoder *decoder, const char *path_fs)
{
decoder_control
&
dc
=
decoder
->
dc
;
const
char
*
suffix
=
uri_get_suffix
(
path_fs
);
const
struct
decoder_p
lugin
*
plugin
=
nullptr
;
const
struct
DecoderP
lugin
*
plugin
=
nullptr
;
if
(
suffix
==
nullptr
)
return
false
;
...
...
src/SongUpdate.cxx
View file @
72af3c04
...
...
@@ -83,7 +83,7 @@ bool
Song
::
UpdateFile
()
{
const
char
*
suffix
;
const
struct
decoder_p
lugin
*
plugin
;
const
struct
DecoderP
lugin
*
plugin
;
struct
stat
st
;
struct
input_stream
*
is
=
nullptr
;
...
...
@@ -168,7 +168,7 @@ bool
Song
::
UpdateFileInArchive
()
{
const
char
*
suffix
;
const
struct
decoder_p
lugin
*
plugin
;
const
struct
DecoderP
lugin
*
plugin
;
assert
(
IsFile
());
...
...
src/TagFile.cxx
View file @
72af3c04
...
...
@@ -42,7 +42,7 @@ tag_file_scan(const char *path_fs,
if
(
suffix
==
nullptr
)
return
false
;
const
struct
decoder_p
lugin
*
plugin
=
const
struct
DecoderP
lugin
*
plugin
=
decoder_plugin_from_suffix
(
suffix
,
nullptr
);
if
(
plugin
==
nullptr
)
return
false
;
...
...
src/UpdateContainer.cxx
View file @
72af3c04
...
...
@@ -68,7 +68,7 @@ bool
update_container_file
(
Directory
&
directory
,
const
char
*
name
,
const
struct
stat
*
st
,
const
decoder_p
lugin
&
plugin
)
const
DecoderP
lugin
&
plugin
)
{
if
(
plugin
.
container_scan
==
nullptr
)
return
false
;
...
...
src/UpdateContainer.hxx
View file @
72af3c04
...
...
@@ -25,12 +25,12 @@
#include <sys/stat.h>
struct
Directory
;
struct
decoder_p
lugin
;
struct
DecoderP
lugin
;
bool
update_container_file
(
Directory
&
directory
,
const
char
*
name
,
const
struct
stat
*
st
,
const
decoder_p
lugin
&
plugin
);
const
DecoderP
lugin
&
plugin
);
#endif
src/UpdateSong.cxx
View file @
72af3c04
...
...
@@ -36,7 +36,7 @@
static
void
update_song_file2
(
Directory
&
directory
,
const
char
*
name
,
const
struct
stat
*
st
,
const
decoder_p
lugin
&
plugin
)
const
DecoderP
lugin
&
plugin
)
{
db_lock
();
Song
*
song
=
directory
.
FindSong
(
name
);
...
...
@@ -106,7 +106,7 @@ update_song_file(Directory &directory,
const
char
*
name
,
const
char
*
suffix
,
const
struct
stat
*
st
)
{
const
struct
decoder_p
lugin
*
plugin
=
const
struct
DecoderP
lugin
*
plugin
=
decoder_plugin_from_suffix
(
suffix
,
nullptr
);
if
(
plugin
==
nullptr
)
return
false
;
...
...
src/decoder/AdPlugDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -127,7 +127,7 @@ static const char *const adplug_suffixes[] = {
nullptr
};
const
struct
decoder_p
lugin
adplug_decoder_plugin
=
{
const
struct
DecoderP
lugin
adplug_decoder_plugin
=
{
"adplug"
,
adplug_init
,
nullptr
,
...
...
src/decoder/AdPlugDecoderPlugin.h
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_ADPLUG_H
#define MPD_DECODER_ADPLUG_H
extern
const
struct
decoder_p
lugin
adplug_decoder_plugin
;
extern
const
struct
DecoderP
lugin
adplug_decoder_plugin
;
#endif
src/decoder/AudiofileDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -253,7 +253,7 @@ static const char *const audiofile_mime_types[] = {
nullptr
};
const
struct
decoder_p
lugin
audiofile_decoder_plugin
=
{
const
struct
DecoderP
lugin
audiofile_decoder_plugin
=
{
"audiofile"
,
nullptr
,
nullptr
,
...
...
src/decoder/AudiofileDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_AUDIOFILE_HXX
#define MPD_DECODER_AUDIOFILE_HXX
extern
const
struct
decoder_p
lugin
audiofile_decoder_plugin
;
extern
const
struct
DecoderP
lugin
audiofile_decoder_plugin
;
#endif
src/decoder/DsdiffDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -514,7 +514,7 @@ static const char *const dsdiff_mime_types[] = {
nullptr
};
const
struct
decoder_p
lugin
dsdiff_decoder_plugin
=
{
const
struct
DecoderP
lugin
dsdiff_decoder_plugin
=
{
"dsdiff"
,
dsdiff_init
,
nullptr
,
...
...
src/decoder/DsdiffDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_DSDIFF_H
#define MPD_DECODER_DSDIFF_H
extern
const
struct
decoder_p
lugin
dsdiff_decoder_plugin
;
extern
const
struct
DecoderP
lugin
dsdiff_decoder_plugin
;
#endif
src/decoder/DsfDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -345,7 +345,7 @@ static const char *const dsf_mime_types[] = {
NULL
};
const
struct
decoder_p
lugin
dsf_decoder_plugin
=
{
const
struct
DecoderP
lugin
dsf_decoder_plugin
=
{
"dsf"
,
nullptr
,
nullptr
,
...
...
src/decoder/DsfDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_DSF_H
#define MPD_DECODER_DSF_H
extern
const
struct
decoder_p
lugin
dsf_decoder_plugin
;
extern
const
struct
DecoderP
lugin
dsf_decoder_plugin
;
#endif
src/decoder/FaadDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -481,7 +481,7 @@ static const char *const faad_mime_types[] = {
"audio/aac"
,
"audio/aacp"
,
nullptr
};
const
struct
decoder_p
lugin
faad_decoder_plugin
=
{
const
struct
DecoderP
lugin
faad_decoder_plugin
=
{
"faad"
,
nullptr
,
nullptr
,
...
...
src/decoder/FaadDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_FAAD_DECODER_PLUGIN_HXX
#define MPD_FAAD_DECODER_PLUGIN_HXX
extern
const
struct
decoder_p
lugin
faad_decoder_plugin
;
extern
const
struct
DecoderP
lugin
faad_decoder_plugin
;
#endif
src/decoder/FfmpegDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -667,7 +667,7 @@ static const char *const ffmpeg_mime_types[] = {
nullptr
};
const
struct
decoder_p
lugin
ffmpeg_decoder_plugin
=
{
const
struct
DecoderP
lugin
ffmpeg_decoder_plugin
=
{
"ffmpeg"
,
ffmpeg_init
,
nullptr
,
...
...
src/decoder/FfmpegDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_FFMPEG_HXX
#define MPD_DECODER_FFMPEG_HXX
extern
const
struct
decoder_p
lugin
ffmpeg_decoder_plugin
;
extern
const
struct
DecoderP
lugin
ffmpeg_decoder_plugin
;
#endif
src/decoder/FlacDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -355,7 +355,7 @@ static const char *const oggflac_mime_types[] = {
nullptr
};
const
struct
decoder_p
lugin
oggflac_decoder_plugin
=
{
const
struct
DecoderP
lugin
oggflac_decoder_plugin
=
{
"oggflac"
,
oggflac_init
,
nullptr
,
...
...
@@ -377,7 +377,7 @@ static const char *const flac_mime_types[] = {
nullptr
};
const
struct
decoder_p
lugin
flac_decoder_plugin
=
{
const
struct
DecoderP
lugin
flac_decoder_plugin
=
{
"flac"
,
nullptr
,
nullptr
,
...
...
src/decoder/FlacDecoderPlugin.h
View file @
72af3c04
...
...
@@ -20,7 +20,7 @@
#ifndef MPD_DECODER_FLAC_H
#define MPD_DECODER_FLAC_H
extern
const
struct
decoder_p
lugin
flac_decoder_plugin
;
extern
const
struct
decoder_p
lugin
oggflac_decoder_plugin
;
extern
const
struct
DecoderP
lugin
flac_decoder_plugin
;
extern
const
struct
DecoderP
lugin
oggflac_decoder_plugin
;
#endif
src/decoder/FluidsynthDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -210,7 +210,7 @@ static const char *const fluidsynth_suffixes[] = {
nullptr
};
const
struct
decoder_p
lugin
fluidsynth_decoder_plugin
=
{
const
struct
DecoderP
lugin
fluidsynth_decoder_plugin
=
{
"fluidsynth"
,
fluidsynth_init
,
nullptr
,
...
...
src/decoder/FluidsynthDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_FLUIDSYNTH_HXX
#define MPD_DECODER_FLUIDSYNTH_HXX
extern
const
struct
decoder_p
lugin
fluidsynth_decoder_plugin
;
extern
const
struct
DecoderP
lugin
fluidsynth_decoder_plugin
;
#endif
src/decoder/GmeDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -279,8 +279,8 @@ static const char *const gme_suffixes[] = {
nullptr
};
extern
const
struct
decoder_p
lugin
gme_decoder_plugin
;
const
struct
decoder_p
lugin
gme_decoder_plugin
=
{
extern
const
struct
DecoderP
lugin
gme_decoder_plugin
;
const
struct
DecoderP
lugin
gme_decoder_plugin
=
{
"gme"
,
nullptr
,
nullptr
,
...
...
src/decoder/GmeDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_GME_HXX
#define MPD_DECODER_GME_HXX
extern
const
struct
decoder_p
lugin
gme_decoder_plugin
;
extern
const
struct
DecoderP
lugin
gme_decoder_plugin
;
#endif
src/decoder/MadDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -1171,7 +1171,7 @@ mad_decoder_scan_stream(struct input_stream *is,
static
const
char
*
const
mp3_suffixes
[]
=
{
"mp3"
,
"mp2"
,
nullptr
};
static
const
char
*
const
mp3_mime_types
[]
=
{
"audio/mpeg"
,
nullptr
};
const
struct
decoder_p
lugin
mad_decoder_plugin
=
{
const
struct
DecoderP
lugin
mad_decoder_plugin
=
{
"mad"
,
mp3_plugin_init
,
nullptr
,
...
...
src/decoder/MadDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_MAD_HXX
#define MPD_DECODER_MAD_HXX
extern
const
struct
decoder_p
lugin
mad_decoder_plugin
;
extern
const
struct
DecoderP
lugin
mad_decoder_plugin
;
#endif
src/decoder/MikmodDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -234,7 +234,7 @@ static const char *const mikmod_decoder_suffixes[] = {
nullptr
};
const
struct
decoder_p
lugin
mikmod_decoder_plugin
=
{
const
struct
DecoderP
lugin
mikmod_decoder_plugin
=
{
"mikmod"
,
mikmod_decoder_init
,
mikmod_decoder_finish
,
...
...
src/decoder/MikmodDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_MIKMOD_HXX
#define MPD_DECODER_MIKMOD_HXX
extern
const
struct
decoder_p
lugin
mikmod_decoder_plugin
;
extern
const
struct
DecoderP
lugin
mikmod_decoder_plugin
;
#endif
src/decoder/ModplugDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -200,7 +200,7 @@ static const char *const mod_suffixes[] = {
nullptr
};
const
struct
decoder_p
lugin
modplug_decoder_plugin
=
{
const
struct
DecoderP
lugin
modplug_decoder_plugin
=
{
"modplug"
,
modplug_decoder_init
,
nullptr
,
...
...
src/decoder/ModplugDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_MODPLUG_HXX
#define MPD_DECODER_MODPLUG_HXX
extern
const
struct
decoder_p
lugin
modplug_decoder_plugin
;
extern
const
struct
DecoderP
lugin
modplug_decoder_plugin
;
#endif
src/decoder/MpcdecDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -267,7 +267,7 @@ mpcdec_scan_stream(struct input_stream *is,
static
const
char
*
const
mpcdec_suffixes
[]
=
{
"mpc"
,
nullptr
};
const
struct
decoder_p
lugin
mpcdec_decoder_plugin
=
{
const
struct
DecoderP
lugin
mpcdec_decoder_plugin
=
{
"mpcdec"
,
nullptr
,
nullptr
,
...
...
src/decoder/MpcdecDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_MPCDEC_HXX
#define MPD_DECODER_MPCDEC_HXX
extern
const
struct
decoder_p
lugin
mpcdec_decoder_plugin
;
extern
const
struct
DecoderP
lugin
mpcdec_decoder_plugin
;
#endif
src/decoder/Mpg123DecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -241,7 +241,7 @@ static const char *const mpg123_suffixes[] = {
nullptr
};
const
struct
decoder_p
lugin
mpg123_decoder_plugin
=
{
const
struct
DecoderP
lugin
mpg123_decoder_plugin
=
{
"mpg123"
,
mpd_mpg123_init
,
mpd_mpg123_finish
,
...
...
src/decoder/Mpg123DecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_MPG123_HXX
#define MPD_DECODER_MPG123_HXX
extern
const
struct
decoder_p
lugin
mpg123_decoder_plugin
;
extern
const
struct
DecoderP
lugin
mpg123_decoder_plugin
;
#endif
src/decoder/OpusDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -389,7 +389,7 @@ static const char *const opus_mime_types[] = {
nullptr
};
const
struct
decoder_p
lugin
opus_decoder_plugin
=
{
const
struct
DecoderP
lugin
opus_decoder_plugin
=
{
"opus"
,
mpd_opus_init
,
nullptr
,
...
...
src/decoder/OpusDecoderPlugin.h
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_OPUS_H
#define MPD_DECODER_OPUS_H
extern
const
struct
decoder_p
lugin
opus_decoder_plugin
;
extern
const
struct
DecoderP
lugin
opus_decoder_plugin
;
#endif
src/decoder/PcmDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -100,7 +100,7 @@ static const char *const pcm_mime_types[] = {
nullptr
};
const
struct
decoder_p
lugin
pcm_decoder_plugin
=
{
const
struct
DecoderP
lugin
pcm_decoder_plugin
=
{
"pcm"
,
nullptr
,
nullptr
,
...
...
src/decoder/PcmDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -28,6 +28,6 @@
#ifndef MPD_DECODER_PCM_HXX
#define MPD_DECODER_PCM_HXX
extern
const
struct
decoder_p
lugin
pcm_decoder_plugin
;
extern
const
struct
DecoderP
lugin
pcm_decoder_plugin
;
#endif
src/decoder/SidplayDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -420,8 +420,8 @@ static const char *const sidplay_suffixes[] = {
nullptr
};
extern
const
struct
decoder_p
lugin
sidplay_decoder_plugin
;
const
struct
decoder_p
lugin
sidplay_decoder_plugin
=
{
extern
const
struct
DecoderP
lugin
sidplay_decoder_plugin
;
const
struct
DecoderP
lugin
sidplay_decoder_plugin
=
{
"sidplay"
,
sidplay_init
,
sidplay_finish
,
...
...
src/decoder/SidplayDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_SIDPLAY_HXX
#define MPD_DECODER_SIDPLAY_HXX
extern
const
struct
decoder_p
lugin
sidplay_decoder_plugin
;
extern
const
struct
DecoderP
lugin
sidplay_decoder_plugin
;
#endif
src/decoder/SndfileDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -246,7 +246,7 @@ static const char *const sndfile_mime_types[] = {
nullptr
};
const
struct
decoder_p
lugin
sndfile_decoder_plugin
=
{
const
struct
DecoderP
lugin
sndfile_decoder_plugin
=
{
"sndfile"
,
nullptr
,
nullptr
,
...
...
src/decoder/SndfileDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_SNDFILE_HXX
#define MPD_DECODER_SNDFILE_HXX
extern
const
struct
decoder_p
lugin
sndfile_decoder_plugin
;
extern
const
struct
DecoderP
lugin
sndfile_decoder_plugin
;
#endif
src/decoder/VorbisDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -338,7 +338,7 @@ static const char *const vorbis_mime_types[] = {
NULL
};
const
struct
decoder_p
lugin
vorbis_decoder_plugin
=
{
const
struct
DecoderP
lugin
vorbis_decoder_plugin
=
{
"vorbis"
,
nullptr
,
nullptr
,
...
...
src/decoder/VorbisDecoderPlugin.h
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_VORBIS_H
#define MPD_DECODER_VORBIS_H
extern
const
struct
decoder_p
lugin
vorbis_decoder_plugin
;
extern
const
struct
DecoderP
lugin
vorbis_decoder_plugin
;
#endif
src/decoder/WavpackDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -585,7 +585,7 @@ static char const *const wavpack_mime_types[] = {
nullptr
};
const
struct
decoder_p
lugin
wavpack_decoder_plugin
=
{
const
struct
DecoderP
lugin
wavpack_decoder_plugin
=
{
"wavpack"
,
nullptr
,
nullptr
,
...
...
src/decoder/WavpackDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_WAVPACK_HXX
#define MPD_DECODER_WAVPACK_HXX
extern
const
struct
decoder_p
lugin
wavpack_decoder_plugin
;
extern
const
struct
DecoderP
lugin
wavpack_decoder_plugin
;
#endif
src/decoder/WildmidiDecoderPlugin.cxx
View file @
72af3c04
...
...
@@ -144,7 +144,7 @@ static const char *const wildmidi_suffixes[] = {
nullptr
};
const
struct
decoder_p
lugin
wildmidi_decoder_plugin
=
{
const
struct
DecoderP
lugin
wildmidi_decoder_plugin
=
{
"wildmidi"
,
wildmidi_init
,
wildmidi_finish
,
...
...
src/decoder/WildmidiDecoderPlugin.hxx
View file @
72af3c04
...
...
@@ -20,6 +20,6 @@
#ifndef MPD_DECODER_WILDMIDI_HXX
#define MPD_DECODER_WILDMIDI_HXX
extern
const
struct
decoder_p
lugin
wildmidi_decoder_plugin
;
extern
const
struct
DecoderP
lugin
wildmidi_decoder_plugin
;
#endif
test/read_tags.cxx
View file @
72af3c04
...
...
@@ -145,7 +145,7 @@ static const struct tag_handler print_handler = {
int
main
(
int
argc
,
char
**
argv
)
{
const
char
*
decoder_name
,
*
path
;
const
struct
decoder_p
lugin
*
plugin
;
const
struct
DecoderP
lugin
*
plugin
;
#ifdef HAVE_LOCALE_H
/* initialize locale */
...
...
test/run_decoder.cxx
View file @
72af3c04
...
...
@@ -48,7 +48,7 @@ my_log_func(const gchar *log_domain, gcc_unused GLogLevelFlags log_level,
struct
decoder
{
const
char
*
uri
;
const
struct
decoder_p
lugin
*
plugin
;
const
struct
DecoderP
lugin
*
plugin
;
bool
initialized
;
};
...
...
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