2004-12-30 23:43:55 +01:00
|
|
|
/*
|
2010-12-02 09:57:17 +01:00
|
|
|
* $Id: streamdev-server.h,v 1.2 2010/07/19 13:49:32 schmirl Exp $
|
2004-12-30 23:43:55 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef VDR_STREAMDEVSERVER_H
|
|
|
|
#define VDR_STREAMDEVSERVER_H
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
2014-06-07 00:24:27 +02:00
|
|
|
#include <vdr/tools.h>
|
2004-12-30 23:43:55 +01:00
|
|
|
#include <vdr/plugin.h>
|
|
|
|
|
2014-06-07 00:24:27 +02:00
|
|
|
class cMainThreadHookSubscriber: public cListObject {
|
|
|
|
private:
|
|
|
|
static cList<cMainThreadHookSubscriber> m_Subscribers;
|
|
|
|
static cMutex m_Mutex;
|
|
|
|
public:
|
2016-03-21 00:28:02 +01:00
|
|
|
#if APIVERSNUM >= 20300
|
|
|
|
static cList<cMainThreadHookSubscriber>& Subscribers(cMutexLock& Lock);
|
|
|
|
#else
|
2014-06-07 00:24:27 +02:00
|
|
|
static const cList<cMainThreadHookSubscriber>& Subscribers(cMutexLock& Lock);
|
2016-03-21 00:28:02 +01:00
|
|
|
#endif
|
2014-06-07 00:24:27 +02:00
|
|
|
|
|
|
|
virtual void MainThreadHook() = 0;
|
|
|
|
|
|
|
|
cMainThreadHookSubscriber();
|
|
|
|
virtual ~cMainThreadHookSubscriber();
|
|
|
|
};
|
|
|
|
|
2004-12-30 23:43:55 +01:00
|
|
|
class cPluginStreamdevServer : public cPlugin {
|
|
|
|
private:
|
|
|
|
static const char *DESCRIPTION;
|
2013-11-02 16:58:17 +01:00
|
|
|
bool m_Suspend;
|
2004-12-30 23:43:55 +01:00
|
|
|
|
|
|
|
public:
|
2005-05-09 22:22:29 +02:00
|
|
|
cPluginStreamdevServer(void);
|
|
|
|
virtual ~cPluginStreamdevServer();
|
|
|
|
|
|
|
|
virtual const char *Version(void) { return VERSION; }
|
|
|
|
virtual const char *Description(void);
|
2007-02-19 13:08:16 +01:00
|
|
|
virtual const char *CommandLineHelp(void);
|
|
|
|
virtual bool ProcessArgs(int argc, char *argv[]);
|
2005-05-09 22:22:29 +02:00
|
|
|
virtual bool Start(void);
|
|
|
|
virtual void Stop(void);
|
2006-07-05 22:37:17 +02:00
|
|
|
virtual cString Active(void);
|
2005-05-09 22:22:29 +02:00
|
|
|
virtual const char *MainMenuEntry(void);
|
|
|
|
virtual cOsdObject *MainMenuAction(void);
|
2011-03-07 21:37:08 +01:00
|
|
|
virtual void MainThreadHook(void);
|
2005-05-09 22:22:29 +02:00
|
|
|
virtual cMenuSetupPage *SetupMenu(void);
|
|
|
|
virtual bool SetupParse(const char *Name, const char *Value);
|
2014-11-07 23:01:08 +01:00
|
|
|
virtual const char **SVDRPHelpPages(void);
|
|
|
|
virtual cString SVDRPCommand(const char *Command, const char *Option, int &ReplyCode);
|
2014-11-07 23:51:13 +01:00
|
|
|
virtual bool Service(const char *Id, void *Data = NULL);
|
2004-12-30 23:43:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // VDR_STREAMDEVSERVER_H
|