vdr 2.7.5
cCiResourceHandlers Class Reference

#include <ci.h>

Public Member Functions

 cCiResourceHandlers (void)
void Register (cCiResourceHandler *ResourceHandler)
const uint32_t * Ids (void)
int NumIds (void)
cCiSessionGetNewCiSession (uint32_t ResourceId, uint16_t SessionId, cCiTransportConnection *Tc)
Public Member Functions inherited from cList< cCiResourceHandler >
 cList (const char *NeedsLocking=NULL)
const cCiResourceHandlerGet (int Index) const
const cCiResourceHandlerFirst (void) const
const cCiResourceHandlerLast (void) const
const cCiResourceHandlerPrev (const cCiResourceHandler *Object) const
const cCiResourceHandlerNext (const cCiResourceHandler *Object) const
Public Member Functions inherited from cListBase
virtual ~cListBase ()
bool Lock (cStateKey &StateKey, bool Write=false, int TimeoutMs=0) const
void SetSyncStateKey (cStateKey &StateKey)
void SetUseGarbageCollector (void)
void SetExplicitModify (void)
void SetModified (void)
void Add (cListObject *Object, cListObject *After=NULL)
void Ins (cListObject *Object, cListObject *Before=NULL)
void Del (cListObject *Object, bool DeleteObject=true)
virtual void Move (int From, int To)
void Move (cListObject *From, cListObject *To)
virtual void Clear (void)
bool Contains (const cListObject *Object) const
const cListObjectGet (int Index) const
cListObjectGet (int Index)
int Count (void) const
void Sort (void)

Private Attributes

cVector< uint32_t > resourceIds

Additional Inherited Members

Protected Member Functions inherited from cListBase
 cListBase (const char *NeedsLocking=NULL)
Protected Attributes inherited from cListBase
cListObjectobjects
cListObjectlastObject
int count
cStateLock stateLock
const char * needsLocking
bool useGarbageCollector

Detailed Description

Definition at line 99 of file ci.h.

Constructor & Destructor Documentation

◆ cCiResourceHandlers()

cCiResourceHandlers::cCiResourceHandlers ( void )

Creates the default list of resourceIds.

Definition at line 1779 of file ci.c.

References Register().

Member Function Documentation

◆ GetNewCiSession()

cCiSession * cCiResourceHandlers::GetNewCiSession ( uint32_t ResourceId,
uint16_t SessionId,
cCiTransportConnection * Tc )

◆ Ids()

const uint32_t * cCiResourceHandlers::Ids ( void )
inline

Definition at line 110 of file ci.h.

References resourceIds.

◆ NumIds()

int cCiResourceHandlers::NumIds ( void )
inline

Definition at line 111 of file ci.h.

References resourceIds.

◆ Register()

void cCiResourceHandlers::Register ( cCiResourceHandler * ResourceHandler)

Adds the given ResourceHandler to the list of resource handlers and appends its ResourceIds to the global resourceIds.

A plugin that implements additional CAM capabilities must call this function to register its resources.

Definition at line 1784 of file ci.c.

References cListBase::Add(), cCiResourceHandler::ResourceIds(), and resourceIds.

Referenced by cCiResourceHandlers().

Member Data Documentation

◆ resourceIds

cVector<uint32_t> cCiResourceHandlers::resourceIds
private

Definition at line 101 of file ci.h.

Referenced by Ids(), NumIds(), and Register().


The documentation for this class was generated from the following files: