aboutsummaryrefslogtreecommitdiff
path: root/Src/playlist/M3ULoader.h
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/playlist/M3ULoader.h
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/playlist/M3ULoader.h')
-rw-r--r--Src/playlist/M3ULoader.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/Src/playlist/M3ULoader.h b/Src/playlist/M3ULoader.h
new file mode 100644
index 00000000..9dd93edf
--- /dev/null
+++ b/Src/playlist/M3ULoader.h
@@ -0,0 +1,31 @@
+#ifndef NULLSOFT_PLAYLIST_M3U_LOADER_H
+#define NULLSOFT_PLAYLIST_M3U_LOADER_H
+
+#include "ifc_playlistloader.h"
+#include "ifc_playlistloadercallback.h"
+#include <stdio.h>
+
+static wchar_t *_INFO_NAME_MEDIA_HASH = L"mediahash";
+static wchar_t *_INFO_NAME_META_HASH = L"metahash";
+static wchar_t *_INFO_NAME_CLOUD_ID = L"cloud_id";
+static wchar_t *_INFO_NAME_CLOUD_STATUS = L"cloud_status";
+static wchar_t *_INFO_NAME_CLOUD_DEVICES = L"cloud_devices";
+
+class M3ULoader : public ifc_playlistloader
+{
+public:
+ M3ULoader();
+ virtual ~M3ULoader( void );
+
+ int Load( const wchar_t *filename, ifc_playlistloadercallback *playlist );
+ int OnFileHelper( ifc_playlistloadercallback *playlist, const wchar_t *trackName, const wchar_t *title, int length, const wchar_t *rootPath, ifc_plentryinfo *extraInfo );
+
+
+protected:
+ RECVS_DISPATCH;
+
+ bool _utf8;
+ wchar_t wideFilename[ FILENAME_SIZE ];
+ wchar_t wideTitle[ FILETITLE_SIZE ];
+};
+#endif \ No newline at end of file