summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2006-12-17 22:09:47 +0000
committerphintuka <phintuka>2006-12-17 22:09:47 +0000
commitce1672e7192d4129f3132b3585973dfdd13257be (patch)
treeb6c1f33d467498828b7ca281a50adf297cf6323d
parent8c47791c6e2e57c029693d657f1fea76d10f5cbb (diff)
downloadxineliboutput-ce1672e7192d4129f3132b3585973dfdd13257be.tar.gz
xineliboutput-ce1672e7192d4129f3132b3585973dfdd13257be.tar.bz2
Get/Set metainfo
-rw-r--r--device.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/device.h b/device.h
index ef4a6048..f82cea7b 100644
--- a/device.h
+++ b/device.h
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: device.h,v 1.15 2006-12-15 22:59:33 phintuka Exp $
+ * $Id: device.h,v 1.16 2006-12-17 22:09:47 phintuka Exp $
*
*/
@@ -20,6 +20,15 @@ class cXinelibThread;
class cChannel;
class cFunctor;
+typedef enum {
+ miTrack = 0,
+ miArtist = 1,
+ miAlbum = 2,
+ mi_Count = 3
+} eMetainfoType;
+
+#define MAX_METAINFO_LEN 63
+
class cXinelibDevice : public cDevice
{
@@ -113,6 +122,8 @@ class cXinelibDevice : public cDevice
tTrackId m_DvdSpuTrack[64];
int m_CurrentDvdSpuTrack;
+ char m_MetaInfo[mi_Count][MAX_METAINFO_LEN+1];
+
public:
void ClrAvailableDvdSpuTracks(bool NotifyFrontend = true);
bool SetAvailableDvdSpuTrack(int Type, const char *lang = NULL, bool Current = false);
@@ -124,6 +135,8 @@ class cXinelibDevice : public cDevice
int GetCurrentDvdSpuTrack(void) const { return m_CurrentDvdSpuTrack; }
bool SetCurrentDvdSpuTrack(int Type);
+ const char *GetMetaInfo(eMetainfoType Type);
+ void SetMetaInfo(eMetainfoType Type, const char *Value);
// Audio facilities