summaryrefslogtreecommitdiff
path: root/playlist.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-07-28 08:26:09 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-07-28 08:26:09 +0200
commitf878eab77b94a69bd3068a92b9f2ca6d59f89400 (patch)
tree261b62a055257b01e015d48e9f6769b39260b803 /playlist.h
parent526003dcf23e8598456de86911a10c4d2a88f26d (diff)
reduced playlist memory usage by ~3/4
Diffstat (limited to 'playlist.h')
-rw-r--r--playlist.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/playlist.h b/playlist.h
index 52572835..f09469f9 100644
--- a/playlist.h
+++ b/playlist.h
@@ -1,18 +1,14 @@
#ifndef __PLAYLIST_H
#define __PLAYLIST_H
-#define META_FIELD_SIZE 256
-#define MAX_DISPLAY_NAME 512
-
typedef struct metaInfo_s {
const char *key;
- char value[META_FIELD_SIZE];
+ char *value;
struct metaInfo_s *next;
} metaInfo_t;
typedef struct playItem_s {
char *fname; // full pathname
- char displayname[MAX_DISPLAY_NAME];
struct codec_s *codec; // codec to use with this file
int tracknum; // used for stuff like sid, nsf, cue (will be ignored by most codecs)
float timestart; // start time of cue track, or -1
@@ -73,7 +69,7 @@ void
ps_add_meta (playItem_t *it, const char *key, const char *value);
void
-ps_format_item_display_name (playItem_t *it);
+ps_format_item_display_name (playItem_t *it, char *str, int len);
const char *
ps_find_meta (playItem_t *it, const char *key);