00001 #ifndef PA_TRACE_H 00002 #define PA_TRACE_H 00003 /* 00004 * $Id: pa_trace.h 94 2003-05-13 10:54:17Z rene-cvs $ 00005 * Portable Audio I/O Library Trace Facility 00006 * Store trace information in real-time for later printing. 00007 * 00008 * Based on the Open Source API proposed by Ross Bencina 00009 * Copyright (c) 1999-2000 Phil Burk 00010 * 00011 * Permission is hereby granted, free of charge, to any person obtaining 00012 * a copy of this software and associated documentation files 00013 * (the "Software"), to deal in the Software without restriction, 00014 * including without limitation the rights to use, copy, modify, merge, 00015 * publish, distribute, sublicense, and/or sell copies of the Software, 00016 * and to permit persons to whom the Software is furnished to do so, 00017 * subject to the following conditions: 00018 * 00019 * The above copyright notice and this permission notice shall be 00020 * included in all copies or substantial portions of the Software. 00021 * 00022 * Any person wishing to distribute modifications to the Software is 00023 * requested to send the modifications to the original developer so that 00024 * they can be incorporated into the canonical version. 00025 * 00026 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00027 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00028 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 00029 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 00030 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 00031 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 00032 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00033 */ 00034 00035 00036 #define TRACE_REALTIME_EVENTS (0) /* Keep log of various real-time events. */ 00037 #define MAX_TRACE_RECORDS (2048) 00038 00039 #ifdef __cplusplus 00040 extern "C" 00041 { 00042 #endif /* __cplusplus */ 00043 00044 00045 /************************************************************************************/ 00046 /****************** Prototypes ******************************************************/ 00047 /************************************************************************************/ 00048 00049 #if TRACE_REALTIME_EVENTS 00050 00051 void DumpTraceMessages(); 00052 void ResetTraceMessages(); 00053 void AddTraceMessage( char *msg, int data ); 00054 00055 #else 00056 00057 #define AddTraceMessage(msg,data) /* noop */ 00058 #define ResetTraceMessages() /* noop */ 00059 #define DumpTraceMessages() /* noop */ 00060 00061 #endif 00062 00063 #ifdef __cplusplus 00064 } 00065 #endif /* __cplusplus */ 00066 00067 #endif /* PA_TRACE_H */