From 9b144d30e0ea8ce900c37b96ba2cbdda14b0ae88 Mon Sep 17 00:00:00 2001 From: kwacker Date: Sun, 11 Apr 2010 13:46:11 +0200 Subject: Burn 0.2.0-beta3 und Streamdev mit Paches aktualisiert --- plugins/streamdev/streamdev-cvs/common.h | 80 ++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 plugins/streamdev/streamdev-cvs/common.h (limited to 'plugins/streamdev/streamdev-cvs/common.h') diff --git a/plugins/streamdev/streamdev-cvs/common.h b/plugins/streamdev/streamdev-cvs/common.h new file mode 100644 index 0000000..ef6ef9e --- /dev/null +++ b/plugins/streamdev/streamdev-cvs/common.h @@ -0,0 +1,80 @@ +/* + * $Id: common.h,v 1.15 2009/09/18 10:41:41 schmirl Exp $ + */ + +#ifndef VDR_STREAMDEV_COMMON_H +#define VDR_STREAMDEV_COMMON_H + +/* FreeBSD has it's own version of isnumber(), + but VDR's version is incompatible */ +#ifdef __FreeBSD__ +#undef isnumber +#endif + +#include +#include + +#include "tools/socket.h" + +#ifdef DEBUG +# include +# define Dprintf(x...) fprintf(stderr, x) +#else +# define Dprintf(x...) +#endif + +#define TRANSPONDER(c1, c2) (c1->Transponder() == c2->Transponder()) + +#define MAXPARSEBUFFER KILOBYTE(16) + +/* Check if a channel is a radio station. */ +#define ISRADIO(x) ((x)->Vpid()==0||(x)->Vpid()==1||(x)->Vpid()==0x1fff) + +class cChannel; + +enum eStreamType { + stTS, + stPES, + stPS, + stES, + stExtern, + stTSPIDS, + st_Count +}; + +enum eSuspendMode { + smOffer, + smAlways, + smNever, + sm_Count +}; + +enum eSocketId { + siLive, + siReplay, + siLiveFilter, + siDataRespond, + si_Count +}; + +extern const char *VERSION; + +class cMenuEditIpItem: public cMenuEditItem { +private: + static const char IpCharacters[]; + char *value; + int curNum; + int pos; + bool step; + +protected: + virtual void Set(void); + +public: + cMenuEditIpItem(const char *Name, char *Value); // Value must be 16 bytes + ~cMenuEditIpItem(); + + virtual eOSState ProcessKey(eKeys Key); +}; + +#endif // VDR_STREAMDEV_COMMON_H -- cgit v1.2.3