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
94786c5f
Commit
94786c5f
authored
May 30, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input plugin sheme
git-svn-id:
https://svn.musicpd.org/mpd/trunk@1233
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
b65ec79c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
input_plugin.h
src/input_plugin.h
+48
-0
No files found.
src/input_plugin.h
0 → 100644
View file @
94786c5f
#ifndef INPUT_PLUGIN_H
#define INPUT_PLUGIN_H
#define INPUT_PLUGIN_STREAM_FILE 0x01
#define INPUT_PLUGIN_STREAM_URL 0x02
#define INPUT_PLUGIN_NAME_LENGTH 64
typedef
int
(
*
InputPlugin_streamDecodeFunc
)
(
OutputBuffer
*
,
DecoderControl
*
,
InputStream
*
);
typedef
int
(
*
InputPlugin_fileDecodeFunc
)
(
OutputBuffer
*
,
DecoderControl
*
);
typedef
MpdTag
*
(
*
InputPlugin_tagDupFunc
)
(
char
*
utf8file
);
typedef
struct
_InputPlugin
{
char
name
[
INPUT_PLUGIN_NAME_LENGTH
];
InputPlugin_streamDecodeFunc
streamDecodeFunc
;
InputPlugin_fileDecodeFunc
fileDecodeFunc
;
InputPlugin_tagDupFunc
tagDupFunc
;
unsigned
char
streamTypes
;
char
**
suffixes
;
char
**
mimeTypes
;
}
InputPlugin
;
/* interface for adding and removing plugins */
InputPlugin
*
newInputPlugin
();
void
addSuffixToInputPlugin
(
InputPlugin
*
inPlugin
,
char
*
suffix
);
void
addMimeTypeToInputPlugin
(
InputPlugin
*
inPlugin
,
char
*
suffix
);
void
freeInputPlugin
(
InputPlugin
*
inputPlugin
);
/* interface for using plugins */
InputPlugin
*
getInputPluginFromSuffix
(
char
*
suffix
);
InputPlugin
*
getInputPluginFromMimeTypes
(
char
*
mimeType
);
InputPlugin
*
getInputPluginFromName
(
char
*
name
);
/* this is needed b/c shoutcast and such don't indicate the proper mime type
and don't have a suffix in the url! */
InputPlugin
*
getDefaultInputPlugin
();
#endif
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