1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
/*
* debug.h: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
*/
#ifndef __debug_h_
#define __debug_h_
// debug pause und resume of markad process
// #define DEBUG_PAUSE_CONTINUE
// debug all VPS EIT events with runningStatus > 0 from <channel>
// #define DEBUG_VPS_EIT "<channel>"
// debug all VPS VDR events with runningStatus > 0 from <channel>
// #define DEBUG_VPS_VDR "<channel>"
// debug vdr locks
// #define DEBUG_LOCKS
#define LOCK_TIMEOUT 60000 // 0 for infinite wait
#ifdef DEBUG_MEM
#include <vdr/plugin.h>
#define ALLOC(size, var) memAlloc(size, __LINE__, const_cast<char *>(__FILE__), const_cast<char *>(var))
#define FREE(size, var) memFree(size, __LINE__, const_cast<char *>(__FILE__),const_cast<char *>(var))
void memAlloc(int size, int line, char *file, char *var);
void memFree(int size, int line, char *file, char *var);
void memList();
char *memListSVDR();
void memClear();
#else
#define ALLOC(size, var)
#define FREE(size, var)
#endif
#endif
|