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
491027a5
Commit
491027a5
authored
Jun 10, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
todo update
git-svn-id:
https://svn.musicpd.org/mpd/trunk@1433
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
051cfc22
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
TODO
TODO
+0
-4
command.c
src/command.c
+13
-0
No files found.
TODO
View file @
491027a5
...
...
@@ -2,14 +2,10 @@
*) Fix charset errors so they don't goto stderr/out
*) Add a timeout for streams (how long? 1 minutes?)
*) compute time of vorbis from actual number of samples played
*) remove previous hack for streams
*) add "plversion" and "currentsong" commands
Post-1.0
--------
1) crosslink "list" stuff, for example, artists are crosslinked to alubms and
...
...
src/command.c
View file @
491027a5
...
...
@@ -81,6 +81,7 @@
#define COMMAND_CROSSFADE "crossfade"
#define COMMAND_URL_HANDLERS "urlhandlers"
#define COMMAND_PLCHANGES "plchanges"
#define COMMAND_CURRENT "current"
#define COMMAND_STATUS_VOLUME "volume"
#define COMMAND_STATUS_STATE "state"
...
...
@@ -193,6 +194,17 @@ int handleStop(FILE * fp, unsigned int * permission, int argArrayLength,
return
stopPlaylist
(
fp
);
}
int
handleCurrent
(
FILE
*
fp
,
unsigned
int
*
permission
,
int
argArrayLength
,
char
**
argArray
)
{
int
song
=
getPlaylistCurrentSong
();
if
(
song
>=
0
)
{
return
playlistInfo
(
fp
,
song
);
}
else
return
0
;
}
int
handlePause
(
FILE
*
fp
,
unsigned
int
*
permission
,
int
argArrayLength
,
char
**
argArray
)
{
...
...
@@ -749,6 +761,7 @@ void initCommands() {
addCommand
(
COMMAND_PLAY
,
PERMISSION_CONTROL
,
0
,
1
,
handlePlay
,
NULL
);
addCommand
(
COMMAND_PLAYID
,
PERMISSION_CONTROL
,
0
,
1
,
handlePlayId
,
NULL
);
addCommand
(
COMMAND_STOP
,
PERMISSION_CONTROL
,
0
,
0
,
handleStop
,
NULL
);
addCommand
(
COMMAND_CURRENT
,
PERMISSION_READ
,
0
,
0
,
handleCurrent
,
NULL
);
addCommand
(
COMMAND_PAUSE
,
PERMISSION_CONTROL
,
0
,
1
,
handlePause
,
NULL
);
addCommand
(
COMMAND_STATUS
,
PERMISSION_READ
,
0
,
0
,
commandStatus
,
NULL
);
addCommand
(
COMMAND_KILL
,
PERMISSION_ADMIN
,
-
1
,
-
1
,
handleKill
,
NULL
);
...
...
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