vdr 2.6.1
Public Member Functions | Private Attributes | List of all members
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)
 
 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)
 
 cList (const char *NeedsLocking=NULL)
 
const cCiResourceHandlerGet (int Index) const
 
cCiResourceHandlerGet (int Index)
 
const cCiResourceHandlerGet (int Index) const
 
cCiResourceHandlerGet (int Index)
 
const cCiResourceHandlerFirst (void) const
 
cCiResourceHandlerFirst (void)
 
const cCiResourceHandlerFirst (void) const
 
cCiResourceHandlerFirst (void)
 
const cCiResourceHandlerLast (void) const
 
cCiResourceHandlerLast (void)
 
const cCiResourceHandlerLast (void) const
 
cCiResourceHandlerLast (void)
 
const cCiResourceHandlerPrev (const cCiResourceHandler *Object) const
 
cCiResourceHandlerPrev (const cCiResourceHandler *Object)
 
const cCiResourceHandlerPrev (const cCiResourceHandler *Object) const
 
cCiResourceHandlerPrev (const cCiResourceHandler *Object)
 
const cCiResourceHandlerNext (const cCiResourceHandler *Object) const
 
cCiResourceHandlerNext (const cCiResourceHandler *Object)
 
const cCiResourceHandlerNext (const cCiResourceHandler *Object) const
 
cCiResourceHandlerNext (const cCiResourceHandler *Object)
 
- 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)
 
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)
 
 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() [1/2]

cCiResourceHandlers::cCiResourceHandlers ( void  )

Creates the default list of resourceIds.

Definition at line 1779 of file ci.c.

References Register().

◆ cCiResourceHandlers() [2/2]

cCiResourceHandlers::cCiResourceHandlers ( void  )

Creates the default list of resourceIds.

Member Function Documentation

◆ GetNewCiSession() [1/2]

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

◆ GetNewCiSession() [2/2]

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

◆ Ids() [1/2]

const uint32_t * cCiResourceHandlers::Ids ( void  )
inline

Definition at line 110 of file ci.h.

References resourceIds.

Referenced by cCiResourceManager::Process().

◆ Ids() [2/2]

const uint32_t * cCiResourceHandlers::Ids ( void  )
inline

Definition at line 110 of file include/vdr/ci.h.

References resourceIds.

◆ NumIds() [1/2]

int cCiResourceHandlers::NumIds ( void  )
inline

Definition at line 111 of file ci.h.

References resourceIds, and cVector< T >::Size().

Referenced by cCiResourceManager::Process().

◆ NumIds() [2/2]

int cCiResourceHandlers::NumIds ( void  )
inline

Definition at line 111 of file include/vdr/ci.h.

References resourceIds, and cVector< T >::Size().

◆ Register() [1/2]

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(), cVector< T >::Append(), cCiResourceHandler::ResourceIds(), and resourceIds.

Referenced by cCiResourceHandlers().

◆ Register() [2/2]

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.

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: