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
f6b982eb
Commit
f6b982eb
authored
Oct 27, 2006
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for: list file
This behaves the same as: list filename git-svn-id:
https://svn.musicpd.org/mpd/trunk@4952
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
a8a932a2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
dbUtils.c
src/dbUtils.c
+10
-4
song.c
src/song.c
+0
-2
song.h
src/song.h
+3
-0
No files found.
src/dbUtils.c
View file @
f6b982eb
...
...
@@ -22,12 +22,14 @@
#include "myfprintf.h"
#include "utils.h"
#include "playlist.h"
#include "song.h"
#include "tag.h"
#include "tagTracker.h"
#include "log.h"
#define LOCATE_TAG_FILE_TYPE TAG_NUM_OF_ITEM_TYPES+10
#define LOCATE_TAG_FILE_KEY "filename"
#define LOCATE_TAG_FILE_KEY SONG_FILE
#define LOCATE_TAG_FILE_KEY_OLD "filename"
#define LOCATE_TAG_ANY_TYPE TAG_NUM_OF_ITEM_TYPES+20
#define LOCATE_TAG_ANY_KEY "any"
...
...
@@ -46,15 +48,19 @@ int getLocateTagItemType(char *str)
{
int
i
;
if
(
0
==
strcasecmp
(
str
,
LOCATE_TAG_FILE_KEY
))
{
if
(
0
==
strcasecmp
(
str
,
LOCATE_TAG_FILE_KEY
)
||
0
==
strcasecmp
(
str
,
LOCATE_TAG_FILE_KEY_OLD
))
{
return
LOCATE_TAG_FILE_TYPE
;
}
if
(
0
==
strcasecmp
(
str
,
LOCATE_TAG_ANY_KEY
))
{
if
(
0
==
strcasecmp
(
str
,
LOCATE_TAG_ANY_KEY
))
{
return
LOCATE_TAG_ANY_TYPE
;
}
for
(
i
=
0
;
i
<
TAG_NUM_OF_ITEM_TYPES
;
i
++
)
{
for
(
i
=
0
;
i
<
TAG_NUM_OF_ITEM_TYPES
;
i
++
)
{
if
(
0
==
strcasecmp
(
str
,
mpdTagItemKeys
[
i
]))
return
i
;
}
...
...
src/song.c
View file @
f6b982eb
...
...
@@ -28,8 +28,6 @@
#include "myfprintf.h"
#define SONG_KEY "key: "
#define SONG_FILE "file: "
#define SONG_TIME "Time: "
#define SONG_MTIME "mtime: "
#include <stdlib.h>
...
...
src/song.h
View file @
f6b982eb
...
...
@@ -33,6 +33,9 @@
#define SONG_TYPE_FILE 1
#define SONG_TYPE_URL 2
#define SONG_FILE "file: "
#define SONG_TIME "Time: "
typedef
struct
_Song
{
char
*
url
;
mpd_sint8
type
;
...
...
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