aboutsummaryrefslogtreecommitdiffstats
path: root/src/cue/cue_tag.h
diff options
context:
space:
mode:
authorJochen Keil <jochen.keil@gmail.com>2009-03-30 21:44:41 +0200
committerJochen Keil <jochen.keil@gmail.com>2009-03-31 22:17:56 +0200
commitd41e7f7cec3b4000ffc41d91ef1a612937a04625 (patch)
treed2de47b94cf42750425daf9118f053cced3b0a53 /src/cue/cue_tag.h
parent62a72a5e4d17b802aacda9fd3e5b86492c816804 (diff)
downloadmpd-d41e7f7cec3b4000ffc41d91ef1a612937a04625.tar.gz
mpd-d41e7f7cec3b4000ffc41d91ef1a612937a04625.tar.xz
mpd-d41e7f7cec3b4000ffc41d91ef1a612937a04625.zip
Build tags from information in cue sheets
With these methods a tag struct can be created from the cdtext information in a cue sheet. The methods depend on a cue parsing library. Reading from strings (char*) as well as from a file (FILE*) is supported.
Diffstat (limited to 'src/cue/cue_tag.h')
-rw-r--r--src/cue/cue_tag.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/cue/cue_tag.h b/src/cue/cue_tag.h
new file mode 100644
index 000000000..adc4c466e
--- /dev/null
+++ b/src/cue/cue_tag.h
@@ -0,0 +1,20 @@
+#ifndef MPD_CUE_TAG_H
+#define MPD_CUE_TAG_H
+
+#include "config.h"
+
+#ifdef HAVE_CUE /* libcue */
+
+#include <libcue/libcue.h>
+#include "../tag.h"
+
+struct tag*
+cue_tag_file( FILE*,
+ const unsigned int);
+
+struct tag*
+cue_tag_string( char*,
+ const unsigned int);
+
+#endif /* libcue */
+#endif