From 3396316b8cecf7c7cae18c9d6dd7c731ea4c9c44 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 29 Jul 2012 13:06:21 +0200 Subject: [PATCH] ca.h: add dummy functions to sync up with libcoolstream libcoolstream has added the functions SendCAPMT(), GetCAIDS() and SetTSClock(). Add stubs to get compatibility. --- common/ca.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/common/ca.h b/common/ca.h index 8a29e56..2c4b85f 100644 --- a/common/ca.h +++ b/common/ca.h @@ -5,8 +5,11 @@ #define __CA_LIBTRIPLE_H_ #include -/* used in cam_menu.cpp */ -typedef uint32_t u32; +#include "cs_types.h" +#include +typedef std::vector CaIdVector; +typedef std::vector::iterator CaIdVectorIterator; +typedef std::vector::const_iterator CaIdVectorConstIterator; enum CA_INIT_MASK { CA_INIT_SC = 1, @@ -79,8 +82,10 @@ public: uint32_t GetNumberSmartCardSlots(void); static cCA *GetInstance(void); bool SendPMT(int Unit, unsigned char *Data, int Len, CA_SLOT_TYPE SlotType = CA_SLOT_TYPE_ALL); + bool SendCAPMT(u64 /*Source*/, u8 /*DemuxSource*/, u8 /*DemuxMask*/, const unsigned char * /*CAPMT*/, u32 /*CAPMTLen*/, const unsigned char * /*RawPMT*/, u32 /*RawPMTLen*/) { return true; }; bool SendMessage(const CA_MESSAGE *Msg); void SetInitMask(enum CA_INIT_MASK InitMask); + int GetCAIDS(CaIdVector & /*Caids*/) { return 0; }; bool Start(void); void Stop(void); void Ready(bool Set); @@ -91,6 +96,7 @@ public: void MenuAnswer(enum CA_SLOT_TYPE, uint32_t Slot, uint32_t choice); void InputAnswer(enum CA_SLOT_TYPE, uint32_t Slot, uint8_t * Data, int Len); void MenuClose(enum CA_SLOT_TYPE, uint32_t Slot); + void SetTSClock(u32 /*Speed*/) { return; }; virtual ~cCA(); };