dvbo.h
来自「Example Dreambox CAM source code」· C头文件 代码 · 共 37 行
H
37 行
//========================//Header file for dvb.cpp//========================typedef struct ECMPIDS{ int CA_PID; int CA_System_ID;} ECMPIDSTYPE;class dvbo_handler{ public: //Properties (variables) int dbg; //Show debug info on the console, 0=no, other=yes int fd; //Demultiplexer device file handle ECMPIDSTYPE ECMpids[20]; //expect no more than 20 ECMs, an array is an ugly solution but easy to manage :-) int ECMpidcount; //Amount of ECM pids found in the PMT unsigned char ECMbuffer[4096]; //Buffer with encrypted ECM data to be forwarded to the cardserver or whatever EMU you would like to develop yourself!!!! int ECMbufsize; //Size of the ECM data, needed for ncc->SendECM function! int lock; //Valid (CAid, Providerid) pair found; use this to speed up ECM handling after initial scan of all CAid's, provider ids etc etc.... //Methods (functions) public: //lets just make all public, I don't like security :-) dvbo_handler(int progid, int dmx_fd, int debug); //The currently selected channel id and the required debuglevel are the inputs //~dvbo_handler(void); //Cleanup. Called at every channel change (zapping with the remote control of the Dreambox) int Set_Filter(int pid, char filt, char mask); //Start the demux filtering int Stop_Filter(void); //Stop the demux filtering int Parse_PAT(int prognr); //PAT table analysis void Parse_CA_Descriptor_Section(char *buf, int cplen); //Helper function for the PMT table parser, retrieve the CAid from the PMT table int Parse_PMT(int prognr); //PMT table analysis int Parse_ECM(int capid); //Small function to retrieve the content of an ECM table, returns the provider id};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?