Files
recycled-ni-libstb-hal/common/ca.cpp
BPanther 6ce79914d8 include/ca.h: add missing SetCIOperator()
Origin commit data
------------------
Branch: master
Commit: e0a68912b8
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2025-05-01 (Thu, 01 May 2025)

Origin message was:
------------------
- include/ca.h: add missing SetCIOperator()

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2025-07-23 19:18:07 +02:00

111 lines
2.0 KiB
C++

#include <stdio.h>
#include "ca_hal.h"
#include "hal_debug.h"
#define hal_debug(args...) _hal_debug(HAL_DEBUG_CA, this, args)
static cCA *inst = NULL;
/* those are all dummies for now.. */
cCA::cCA(void)
{
hal_debug("%s\n", __FUNCTION__);
}
cCA::~cCA()
{
hal_debug("%s\n", __FUNCTION__);
}
cCA *cCA::GetInstance()
{
_hal_debug(HAL_DEBUG_CA, NULL, "%s\n", __FUNCTION__);
if (inst == NULL)
inst = new cCA();
return inst;
}
void cCA::MenuEnter(enum CA_SLOT_TYPE, uint32_t p)
{
hal_debug("%s param:%d\n", __FUNCTION__, (int)p);
}
void cCA::MenuAnswer(enum CA_SLOT_TYPE, uint32_t p, uint32_t /*choice*/)
{
hal_debug("%s param:%d\n", __FUNCTION__, (int)p);
}
void cCA::InputAnswer(enum CA_SLOT_TYPE, uint32_t p, uint8_t * /*Data*/, int /*Len*/)
{
hal_debug("%s param:%d\n", __FUNCTION__, (int)p);
}
void cCA::MenuClose(enum CA_SLOT_TYPE, uint32_t p)
{
hal_debug("%s param:%d\n", __FUNCTION__, (int)p);
}
uint32_t cCA::GetNumberCISlots(void)
{
hal_debug("%s\n", __FUNCTION__);
return 0;
}
uint32_t cCA::GetNumberSmartCardSlots(void)
{
hal_debug("%s\n", __FUNCTION__);
return 0;
}
void cCA::ModuleName(enum CA_SLOT_TYPE, uint32_t p, char * /*Name*/)
{
/* TODO: what to do with *Name? */
hal_debug("%s param:%d\n", __FUNCTION__, (int)p);
}
bool cCA::ModulePresent(enum CA_SLOT_TYPE, uint32_t p)
{
hal_debug("%s param:%d\n", __FUNCTION__, (int)p);
return false;
}
void cCA::ModuleReset(enum CA_SLOT_TYPE, uint32_t p)
{
hal_debug("%s param:%d\n", __FUNCTION__, (int)p);
}
bool cCA::SendPMT(int, unsigned char *, int, CA_SLOT_TYPE)
{
hal_debug("%s\n", __FUNCTION__);
return true;
}
bool cCA::SendMessage(const CA_MESSAGE *)
{
hal_debug("%s\n", __FUNCTION__);
return true;
}
bool cCA::Start(void)
{
hal_debug("%s\n", __FUNCTION__);
return true;
}
void cCA::Stop(void)
{
hal_debug("%s\n", __FUNCTION__);
}
void cCA::Ready(bool p)
{
hal_debug("%s param:%d\n", __FUNCTION__, (int)p);
}
void cCA::SetInitMask(enum CA_INIT_MASK p)
{
hal_debug("%s param:%d\n", __FUNCTION__, (int)p);
}