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
57446340
Commit
57446340
authored
Nov 04, 2009
by
Romain Bignon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sticker comments in code and example configuration file
Signed-off-by:
Romain Bignon
<
romain@peerfuse.org
>
parent
4dc25d39
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
mpdconf.example
doc/mpdconf.example
+5
-0
command.c
src/command.c
+5
-0
No files found.
doc/mpdconf.example
View file @
57446340
...
...
@@ -49,6 +49,11 @@
#
#state_file "~/.mpd/state"
#
# The location of the sticker database. This is a database which
# manages dynamic information attached to songs.
#
#sticker_file "~/.mpd/sticker.sql"
#
###############################################################################
...
...
src/command.c
View file @
57446340
...
...
@@ -1597,6 +1597,7 @@ sticker_song_find_print_cb(struct song *song, const char *value,
static
enum
command_return
handle_sticker_song
(
struct
client
*
client
,
int
argc
,
char
*
argv
[])
{
/* get song song_id key */
if
(
argc
==
5
&&
strcmp
(
argv
[
1
],
"get"
)
==
0
)
{
struct
song
*
song
;
char
*
value
;
...
...
@@ -1619,6 +1620,7 @@ handle_sticker_song(struct client *client, int argc, char *argv[])
g_free
(
value
);
return
COMMAND_RETURN_OK
;
/* list song song_id */
}
else
if
(
argc
==
4
&&
strcmp
(
argv
[
1
],
"list"
)
==
0
)
{
struct
song
*
song
;
struct
sticker
*
sticker
;
...
...
@@ -1641,6 +1643,7 @@ handle_sticker_song(struct client *client, int argc, char *argv[])
sticker_free
(
sticker
);
return
COMMAND_RETURN_OK
;
/* set song song_id id key */
}
else
if
(
argc
==
6
&&
strcmp
(
argv
[
1
],
"set"
)
==
0
)
{
struct
song
*
song
;
bool
ret
;
...
...
@@ -1660,6 +1663,7 @@ handle_sticker_song(struct client *client, int argc, char *argv[])
}
return
COMMAND_RETURN_OK
;
/* delete song song_id [key] */
}
else
if
((
argc
==
4
||
argc
==
5
)
&&
strcmp
(
argv
[
1
],
"delete"
)
==
0
)
{
struct
song
*
song
;
...
...
@@ -1682,6 +1686,7 @@ handle_sticker_song(struct client *client, int argc, char *argv[])
}
return
COMMAND_RETURN_OK
;
/* find song dir key */
}
else
if
(
argc
==
5
&&
strcmp
(
argv
[
1
],
"find"
)
==
0
)
{
/* "sticker find song a/directory name" */
struct
directory
*
directory
;
...
...
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