./ MultiCS.r69 / debug.h
#define DBG_ALL 0x00
#define DBG_CCCAM 0x01
#define DBG_CACHE 0x02
#define DBG_NEWCAMD 0x03
#define DBG_MGCAMD 0x04
#define DBG_SERVER 0x05
#define DBG_CONFIG 0x06
#define DBG_HTTP 0x07
struct trace_data {
char host[32];
int port;
unsigned int ip;
int sock;
struct sockaddr_in addr;
};
extern int flag_debugscr;
#ifdef DEBUG_NETWORK
extern int flag_debugnet;
#endif
extern int flag_debugfile;
extern char debug_file[256];
extern int flag_debugtrace;
extern struct trace_data trace;
extern uint32_t flagdebug;
#define MAX_DBGLINES 30
extern char dbgline[MAX_DBGLINES][512];
extern int idbgline;
uint32_t getdbgflag( int i, int j, int k);
uint32_t getdbgflagpro( int i, int j, int k, int csid );
char* debugtime(char *str);
void debug(char *str);
void debugf( uint32_t flag, char *format, ...);
void debughex(uint8 *buffer, int len);
void fdebug(char *str);
void fdebugf(char *format, ...);