mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
zapit/src/transponder.cpp: add ddump - print if zapit_debug is set
Origin commit data
------------------
Branch: ni/coolstream
Commit: 343e58c033
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-04-15 (Sun, 15 Apr 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -44,8 +44,9 @@ public:
|
||||
|
||||
bool operator==(const transponder& t) const;
|
||||
bool compare (const transponder& t) const;
|
||||
void dump(std::string label = "tp");
|
||||
void dumpServiceXml(FILE * fd);
|
||||
void dump(std::string label = "tp");
|
||||
void ddump(std::string label = "tp");
|
||||
};
|
||||
|
||||
typedef std::map <transponder_id_t, transponder> transponder_list_t;
|
||||
|
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <zapit/transponder.h>
|
||||
#include <zapit/debug.h>
|
||||
|
||||
transponder::transponder(fe_type_t fType, const transponder_id_t t_id, const struct dvb_frontend_parameters p_feparams, const uint8_t p_polarization)
|
||||
{
|
||||
@@ -101,3 +102,9 @@ void transponder::dump(std::string label)
|
||||
transponder_id, feparams.frequency, feparams.u.qpsk.symbol_rate,
|
||||
feparams.u.qpsk.fec_inner, polarization);
|
||||
}
|
||||
|
||||
void transponder::ddump(std::string label)
|
||||
{
|
||||
if(zapit_debug)
|
||||
dump(label);
|
||||
}
|
||||
|
Reference in New Issue
Block a user