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
ed475718
Commit
ed475718
authored
Jun 03, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder_plugin: corrected outdated API documentation
parent
70d7c795
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
21 deletions
+22
-21
decoder_plugin.h
src/decoder_plugin.h
+22
-21
No files found.
src/decoder_plugin.h
View file @
ed475718
...
...
@@ -37,43 +37,44 @@ struct decoder_plugin {
const
char
*
name
;
/**
* optional, set this to NULL if the InputPlugin doesn't
* have/need one this must return < 0 if there is an error and
* >= 0 otherwise
* Initialize the decoder plugin. Optional method.
*
* @param param a configuration block for this plugin, or NULL
* if none is configured
* @return true if the plugin was initialized successfully,
* false if the plugin is not available
*/
bool
(
*
init
)(
const
struct
config_param
*
param
);
/**
* optional, set this to NULL if the InputPlugin doesn't have/need one
* Deinitialize a decoder plugin which was initialized
* successfully. Optional method.
*/
void
(
*
finish
)(
void
);
/**
* this will be used to decode InputStreams, and is
* recommended for files and networked (HTTP) connections.
* Decode a stream (data read from an #input_stream object).
*
*
@return false if the plugin cannot decode the stream, and
*
true if it was able to do so (even if an error occured
*
during playback)
*
Either implement this method or file_decode(). If
*
possible, it is recommended to implement this method,
*
because it is more versatile.
*/
void
(
*
stream_decode
)(
struct
decoder
*
,
struct
input_stream
*
);
void
(
*
stream_decode
)(
struct
decoder
*
decoder
,
struct
input_stream
*
is
);
/**
* use this if and only if your InputPlugin can only be passed
* a filename or handle as input, and will not allow callbacks
* to be set (like Ogg-Vorbis and FLAC libraries allow)
* Decode a local file.
*
* @return false if the plugin cannot decode the file, and
* true if it was able to do so (even if an error occured
* during playback)
* Either implement this method or stream_decode().
*/
void
(
*
file_decode
)(
struct
decoder
*
,
const
char
*
path
);
void
(
*
file_decode
)(
struct
decoder
*
decoder
,
const
char
*
path_fs
);
/**
* file should be the full path! Returns NULL if a tag cannot
* be found or read
* Read the tags of a local file.
*
* @return NULL if the operation has failed
*/
struct
tag
*
(
*
tag_dup
)(
const
char
*
file
);
struct
tag
*
(
*
tag_dup
)(
const
char
*
path_fs
);
/**
* @brief Return a "virtual" filename for subtracks in
...
...
@@ -85,7 +86,7 @@ struct decoder_plugin {
* a filename for every single track according to tnum (param 2)
* do not include full pathname here, just the "virtual" file
*/
char
*
(
*
container_scan
)(
const
char
*
pathname
,
const
unsigned
int
tnum
);
char
*
(
*
container_scan
)(
const
char
*
path_fs
,
const
unsigned
int
tnum
);
/* last element in these arrays must always be a NULL: */
const
char
*
const
*
suffixes
;
...
...
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