File: dvbci.h

package info (click to toggle)
vdr 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,200 kB
  • sloc: ansic: 60,013; perl: 965; makefile: 693; sh: 656; python: 86
file content (31 lines) | stat: -rw-r--r-- 766 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * dvbci.h: Common Interface for DVB devices
 *
 * See the main source file 'vdr.c' for copyright information and
 * how to reach the author.
 *
 * $Id: dvbci.h 4.0 2006/11/26 11:19:42 kls Exp $
 */

#ifndef __DVBCI_H
#define __DVBCI_H

#include "ci.h"

class cDvbCiAdapter : public cCiAdapter {
private:
  cDevice *device;
  int fd;
protected:
  virtual int Read(uint8_t *Buffer, int MaxLength);
  virtual void Write(const uint8_t *Buffer, int Length);
  virtual bool Reset(int Slot);
  virtual eModuleStatus ModuleStatus(int Slot);
  virtual bool Assign(cDevice *Device, bool Query = false);
  cDvbCiAdapter(cDevice *Device, int Fd);
public:
  virtual ~cDvbCiAdapter();
  static cDvbCiAdapter *CreateCiAdapter(cDevice *Device, int Fd);
  };

#endif //__DVBCI_H