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
f1a014d0
Commit
f1a014d0
authored
Aug 26, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed the InputPlugin function types
Continuing the effort to rename InputPlugin to decoder_plugin...
parent
41c5fbbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
decoder_api.h
src/decoder_api.h
+13
-14
No files found.
src/decoder_api.h
View file @
f1a014d0
...
...
@@ -42,42 +42,41 @@ struct decoder;
/* 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 */
typedef
int
(
*
InputPlugin_initF
unc
)
(
void
);
typedef
int
(
*
decoder_init_f
unc
)
(
void
);
/* optional, set this to NULL if the InputPlugin doesn't have/need one */
typedef
void
(
*
InputPlugin_finishF
unc
)
(
void
);
typedef
void
(
*
decoder_finish_f
unc
)
(
void
);
/* boolean return value, returns 1 if the InputStream is decodable by
* the InputPlugin, 0 if not */
typedef
unsigned
int
(
*
InputPlugin_tryDecodeF
unc
)
(
InputStream
*
);
typedef
unsigned
int
(
*
decoder_try_decode_f
unc
)
(
InputStream
*
);
/* this will be used to decode InputStreams, and is recommended for files
* and networked (HTTP) connections.
*
* returns -1 on error, 0 on success */
typedef
int
(
*
InputPlugin_streamDecodeFunc
)
(
struct
decoder
*
,
InputStream
*
);
typedef
int
(
*
decoder_stream_decode_func
)
(
struct
decoder
*
,
InputStream
*
);
/* 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)
*
* returns -1 on error, 0 on success */
typedef
int
(
*
InputPlugin_fileDecodeFunc
)
(
struct
decoder
*
,
char
*
path
);
typedef
int
(
*
decoder_file_decode_func
)
(
struct
decoder
*
,
char
*
path
);
/* file should be the full path! Returns NULL if a tag cannot be found
* or read */
typedef
MpdTag
*
(
*
InputPlugin_tagDupF
unc
)
(
char
*
file
);
typedef
MpdTag
*
(
*
decoder_tag_dup_f
unc
)
(
char
*
file
);
struct
decoder_plugin
{
const
char
*
name
;
InputPlugin_initFunc
initFunc
;
InputPlugin_finishFunc
finishFunc
;
InputPlugin_tryDecodeFunc
tryDecodeFunc
;
InputPlugin_streamDecodeFunc
streamDecodeFunc
;
InputPlugin_fileDecodeFunc
fileDecodeFunc
;
InputPlugin_tagDupFunc
tagDupFunc
;
decoder_init_func
initFunc
;
decoder_finish_func
finishFunc
;
decoder_try_decode_func
tryDecodeFunc
;
decoder_stream_decode_func
streamDecodeFunc
;
decoder_file_decode_func
fileDecodeFunc
;
decoder_tag_dup_func
tagDupFunc
;
/* one or more of the INPUT_PLUGIN_STREAM_* values OR'd together */
unsigned
char
streamTypes
;
...
...
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