mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
libtriple: add usable dummy cCA class
Origin commit data
------------------
Branch: ni/coolstream
Commit: 000fbfe74b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2010-12-25 (Sat, 25 Dec 2010)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
110
lib/libtriple/ca.cpp
Normal file
110
lib/libtriple/ca.cpp
Normal file
@@ -0,0 +1,110 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "ca.h"
|
||||
#include "lt_debug.h"
|
||||
|
||||
static const char *FILENAME = "ca.cpp";
|
||||
|
||||
static cCA *inst = NULL;
|
||||
|
||||
/* those are all dummies for now.. */
|
||||
cCA::cCA(void)
|
||||
{
|
||||
lt_debug("%s:%s\n", FILENAME, __FUNCTION__);
|
||||
}
|
||||
|
||||
cCA::~cCA()
|
||||
{
|
||||
lt_debug("%s:%s\n", FILENAME, __FUNCTION__);
|
||||
}
|
||||
|
||||
cCA *cCA::GetInstance()
|
||||
{
|
||||
lt_debug("%s:%s\n", FILENAME, __FUNCTION__);
|
||||
if (inst == NULL)
|
||||
inst = new cCA();
|
||||
|
||||
return inst;
|
||||
}
|
||||
|
||||
void cCA::MenuEnter(enum CA_SLOT_TYPE, uint32_t p)
|
||||
{
|
||||
lt_debug("%s:%s param:%d\n", FILENAME, __FUNCTION__, (int)p);
|
||||
}
|
||||
|
||||
void cCA::MenuAnswer(enum CA_SLOT_TYPE, uint32_t p, uint32_t /*choice*/)
|
||||
{
|
||||
lt_debug("%s:%s param:%d\n", FILENAME, __FUNCTION__, (int)p);
|
||||
}
|
||||
|
||||
void cCA::InputAnswer(enum CA_SLOT_TYPE, uint32_t p, uint8_t * /*Data*/, int /*Len*/)
|
||||
{
|
||||
lt_debug("%s:%s param:%d\n", FILENAME, __FUNCTION__, (int)p);
|
||||
}
|
||||
|
||||
void cCA::MenuClose(enum CA_SLOT_TYPE, uint32_t p)
|
||||
{
|
||||
lt_debug("%s:%s param:%d\n", FILENAME, __FUNCTION__, (int)p);
|
||||
}
|
||||
|
||||
uint32_t cCA::GetNumberCISlots(void)
|
||||
{
|
||||
lt_debug("%s:%s\n", FILENAME, __FUNCTION__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint32_t cCA::GetNumberSmartCardSlots(void)
|
||||
{
|
||||
lt_debug("%s:%s\n", FILENAME, __FUNCTION__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void cCA::ModuleName(enum CA_SLOT_TYPE, uint32_t p, char * /*Name*/)
|
||||
{
|
||||
/* TODO: waht to do with *Name? */
|
||||
lt_debug("%s:%s param:%d\n", FILENAME, __FUNCTION__, (int)p);
|
||||
}
|
||||
|
||||
bool cCA::ModulePresent(enum CA_SLOT_TYPE, uint32_t p)
|
||||
{
|
||||
lt_debug("%s:%s param:%d\n", FILENAME, __FUNCTION__, (int)p);
|
||||
return false;
|
||||
}
|
||||
|
||||
void cCA::ModuleReset(enum CA_SLOT_TYPE, uint32_t p)
|
||||
{
|
||||
lt_debug("%s:%s param:%d\n", FILENAME, __FUNCTION__, (int)p);
|
||||
}
|
||||
|
||||
bool cCA::SendPMT(int, unsigned char *, int, CA_SLOT_TYPE)
|
||||
{
|
||||
lt_debug("%s:%s\n", FILENAME, __FUNCTION__);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool cCA::SendMessage(const CA_MESSAGE *)
|
||||
{
|
||||
lt_debug("%s:%s\n", FILENAME, __FUNCTION__);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool cCA::Start(void)
|
||||
{
|
||||
lt_debug("%s:%s\n", FILENAME, __FUNCTION__);
|
||||
return true;
|
||||
}
|
||||
|
||||
void cCA::Stop(void)
|
||||
{
|
||||
lt_debug("%s:%s\n", FILENAME, __FUNCTION__);
|
||||
}
|
||||
|
||||
void cCA::Ready(bool p)
|
||||
{
|
||||
lt_debug("%s:%s param:%d\n", FILENAME, __FUNCTION__, (int)p);
|
||||
}
|
||||
|
||||
void cCA::SetInitMask(enum CA_INIT_MASK p)
|
||||
{
|
||||
lt_debug("%s:%s param:%d\n", FILENAME, __FUNCTION__, (int)p);
|
||||
}
|
Reference in New Issue
Block a user