Diba streaming debug interface

This commit is contained in:
MelwareDE 2010-04-06 16:41:45 +00:00
parent 890826688f
commit ce2dffd58d
1 changed files with 40 additions and 0 deletions

40
divastreaming/debuglib.h Normal file
View File

@ -0,0 +1,40 @@
/*
*
Copyright (c) Dialogic (R) 2009 - 2010
*
This source file is supplied for the use with
Eicon Networks range of DIVA Server Adapters.
*
Dialogic (R) File Revision : 1.9
*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
*
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY OF ANY KIND WHATSOEVER INCLUDING ANY
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
*
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#ifndef __DIVA_STREAMING_DEBUGLIB_H__
#define __DIVA_STREAMING_DEBUGLIB_H__
void diva_runtime_error_message (const char* fmt, ...);
void diva_runtime_log_message (const char* fmt, ...);
void diva_runtime_trace_message (const char* fmt, ...);
void diva_runtime_binary_message (const void* data, dword length);
#define DBG_ERR(__x__) do { diva_runtime_error_message __x__; } while (0);
#define DBG_LOG(__x__) do { diva_runtime_log_message __x__; } while (0);
#define DBG_TRC(__x__) do { diva_runtime_trace_message __x__; } while (0);
#define DBG_BLK(__x__) do { diva_runtime_binary_message __x__; } while (0);
#define dbg_init(__a__, __b__, __c__) do { diva_runtime_log_message("%s %s %u", __a__, __b__, __c__); } while (0)
#endif