aboutsummaryrefslogtreecommitdiff
path: root/Src/Winamp/VideoFeedFactory.h
diff options
context:
space:
mode:
authorJean-Francois Mauguit <jfmauguit@mac.com>2024-09-24 09:03:25 -0400
committerGitHub <noreply@github.com>2024-09-24 09:03:25 -0400
commitbab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Winamp/VideoFeedFactory.h
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Winamp/VideoFeedFactory.h')
-rw-r--r--Src/Winamp/VideoFeedFactory.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/Src/Winamp/VideoFeedFactory.h b/Src/Winamp/VideoFeedFactory.h
new file mode 100644
index 00000000..748cf0b9
--- /dev/null
+++ b/Src/Winamp/VideoFeedFactory.h
@@ -0,0 +1,35 @@
+#ifndef NULLSOFT_WINAMP_VIDEOFEEDFACTORY_H
+#define NULLSOFT_WINAMP_VIDEOFEEDFACTORY_H
+
+#include <api/service/waservicefactorybase.h>
+#include <api/service/services.h>
+#include <api/skin/feeds/api_textfeed.h>
+#include "api.h"
+
+// {BD838BA9-1CE8-4f73-BBC0-58DA5168517F}
+static const GUID videoFeedFactoryGUID =
+{ 0xbd838ba9, 0x1ce8, 0x4f73, { 0xbb, 0xc0, 0x58, 0xda, 0x51, 0x68, 0x51, 0x7f } };
+
+
+class VideoTextFeedFactory : public waServiceBase<svc_textFeed, VideoTextFeedFactory> {
+public:
+ VideoTextFeedFactory() : waServiceBase<svc_textFeed, VideoTextFeedFactory>(videoFeedFactoryGUID) {}
+ static const char *getServiceName() { return "Video Text Feed"; }
+ svc_textFeed *getService() { return videoTextFeed; }
+ static FOURCC getServiceType() { return WaSvc::TEXTFEED; }
+};
+
+// {87291C37-EC56-476b-B813-ED0F6F90C3B7}
+static const GUID playlistFeedFactory =
+{ 0x87291c37, 0xec56, 0x476b, { 0xb8, 0x13, 0xed, 0xf, 0x6f, 0x90, 0xc3, 0xb7 } };
+
+
+class PlaylistTextFeedFactory : public waServiceBase<svc_textFeed, PlaylistTextFeedFactory> {
+public:
+ PlaylistTextFeedFactory() : waServiceBase<svc_textFeed, PlaylistTextFeedFactory>(playlistFeedFactory) {}
+ static const char *getServiceName() { return "Playlist Text Feed"; }
+ svc_textFeed *getService() { return playlistTextFeed; }
+ static FOURCC getServiceType() { return WaSvc::TEXTFEED; }
+};
+
+#endif \ No newline at end of file