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:
[CST] Focus
2012-04-15 20:36:59 +04:00
parent 96746f6671
commit 084db6dae3
2 changed files with 9 additions and 1 deletions

View File

@@ -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;

View File

@@ -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);
}