// Custom includes
#include <string>
#include <linux/dvb/frontend.h>
-#include <senf/Scheduler/Scheduler.hh>
+#include "senf/Scheduler/Scheduler.hh"
#include "DVBConfigParser.hh"
-#include <senf/Console.hh>
+#include "senf/Console.hh"
+
+#define MPE_TABLEID 62
+
namespace senf {
std::string status2String(fe_status_t status);
class DVBSocketController : boost::noncopyable
DVBSocketController(DVBFrontendHandle frontendHandle_ = DVBFrontendHandle(0,0), DVBDemuxSectionHandle sectionHandle_ = DVBDemuxSectionHandle(0,0), const Callback & cb = NULL);
~DVBSocketController();
- std::string tuneToCMD( const std::string & channel, const std::string & mode = "async");
+ void tuneToCMD( const std::string & channel, const std::string & mode = "async");
void tuneTo(const std::string & channel);
unsigned int signalStrength();
void setSectionFilter(unsigned short int pid,
- unsigned char filter = 62,
+ u_int8_t filter = MPE_TABLEID,
unsigned int flags = DMX_IMMEDIATE_START | DMX_CHECK_CRC,
- unsigned char mask = 0xff,
- unsigned char mode = 0,
+ u_int8_t mask = 0xff,
+ u_int8_t mode = 0,
unsigned int timeout = 0);
void setBufferSize(unsigned long size);