source: svn/trunk/newcon3bcm2_21bu/BSEAV/lib/scte65/si_dbg.h @ 12

Last change on this file since 12 was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1/***************************************************************
2**
3** Broadcom Corp. Confidential
4** Copyright 2003-2008 Broadcom Corp. All Rights Reserved.
5**
6** THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED
7** SOFTWARE LICENSE AGREEMENT BETWEEN THE USER AND BROADCOM.
8** YOU HAVE NO RIGHT TO USE OR EXPLOIT THIS MATERIAL EXCEPT
9** SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
10**
11** File:                si_dbg.h
12** Description: defines for SI debug utilities
13**
14** Created: 03/08/2001
15**
16** REVISION:
17**
18** $Log: $
19**
20**
21****************************************************************/
22#ifndef SI_DBG_H
23#define SI_DBG_H
24
25/* need to have #include "si_os.h" before inclusion of this file. */
26
27typedef enum
28{
29        E_SI_DBG_MSG,
30        E_SI_WRN_MSG,
31        E_SI_ERR_MSG,
32}SI_DEBUGLEVELS;
33
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39void SI_Dbg_Set_Debug_Level (unsigned long level);
40unsigned long SI_Dbg_Get_Debug_Level (void);
41
42#ifdef __cplusplus
43}
44#endif
45
46#ifdef BCM_DEBUG_SI
47#define SI_DBG_PRINT(x,y)       {if (x >= SI_Dbg_Get_Debug_Level()) SI_print y;}
48#else
49#define SI_DBG_PRINT(x,y)       ((void)0)
50#endif
51
52#endif
Note: See TracBrowser for help on using the repository browser.