vdr
2.4.1
|
#include <ci.h>
Public Member Functions | |
cCiResourceHandlers (void) | |
void | Register (cCiResourceHandler *ResourceHandler) |
const uint32_t * | Ids (void) |
int | NumIds (void) |
cCiSession * | GetNewCiSession (uint32_t ResourceId, uint16_t SessionId, cCiTransportConnection *Tc) |
![]() | |
cList (const char *NeedsLocking=NULL) | |
const cCiResourceHandler * | Get (int Index) const |
cCiResourceHandler * | Get (int Index) |
const cCiResourceHandler * | First (void) const |
cCiResourceHandler * | First (void) |
const cCiResourceHandler * | Last (void) const |
cCiResourceHandler * | Last (void) |
const cCiResourceHandler * | Prev (const cCiResourceHandler *Object) const |
cCiResourceHandler * | Prev (const cCiResourceHandler *Object) |
const cCiResourceHandler * | Next (const cCiResourceHandler *Object) const |
cCiResourceHandler * | Next (const cCiResourceHandler *Object) |
![]() | |
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 cListObject * | Get (int Index) const |
cListObject * | Get (int Index) |
int | Count (void) const |
void | Sort (void) |
Private Attributes | |
cVector< uint32_t > | resourceIds |
Additional Inherited Members | |
![]() | |
cListBase (const char *NeedsLocking=NULL) | |
![]() | |
cListObject * | objects |
cListObject * | lastObject |
int | count |
cStateLock | stateLock |
const char * | needsLocking |
bool | useGarbageCollector |
cCiResourceHandlers::cCiResourceHandlers | ( | void | ) |
Creates the default list of resourceIds.
Definition at line 1754 of file ci.c.
References Register().
cCiSession * cCiResourceHandlers::GetNewCiSession | ( | uint32_t | ResourceId, |
uint16_t | SessionId, | ||
cCiTransportConnection * | Tc | ||
) |
Definition at line 1772 of file ci.c.
References cList< cCiResourceHandler >::Last(), and cList< cCiResourceHandler >::Prev().
Referenced by cCiTransportConnection::OpenSession().
|
inline |
Definition at line 110 of file ci.h.
References resourceIds.
Referenced by cCiResourceManager::Process().
|
inline |
Definition at line 111 of file ci.h.
References resourceIds, and cVector< T >::Size().
Referenced by cCiResourceManager::Process().
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 1759 of file ci.c.
References cListBase::Add(), cVector< T >::Append(), cCiResourceHandler::ResourceIds(), and resourceIds.
Referenced by cCiResourceHandlers().
|
private |
Definition at line 101 of file ci.h.
Referenced by Ids(), NumIds(), and Register().