From be64e1d8491032c3074cd8e60481afd402bbec68 Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Fri, 7 Jun 2002 22:15:47 +0000 Subject: Ability to xine-lib clients to use non debug xine-lib with UI compiled with DEBUG and using profiler. CVS patchset: 2037 CVS date: 2002/06/07 22:15:47 --- src/xine-utils/monitor.c | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'src/xine-utils/monitor.c') diff --git a/src/xine-utils/monitor.c b/src/xine-utils/monitor.c index e1a6ab57d..282f70e99 100644 --- a/src/xine-utils/monitor.c +++ b/src/xine-utils/monitor.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: monitor.c,v 1.3 2002/03/21 21:30:51 guenter Exp $ + * $Id: monitor.c,v 1.4 2002/06/07 22:15:47 f1rmb Exp $ * * debug print and profiling functions - implementation * @@ -134,4 +134,29 @@ void xine_profiler_print_results () { } } + +#else /* DEBUG */ + +#define NO_PROFILER_MSG {printf("%s(): profiler is not enable.\n", __XINE_FUNCTION__);} + +/* Dummies */ +void xine_profiler_init (void) { + NO_PROFILER_MSG +} +int xine_profiler_allocate_slot (char *label) { + NO_PROFILER_MSG + return -1; +} +void xine_profiler_start_count (int id) { + NO_PROFILER_MSG +} +void xine_profiler_stop_count (int id) { + NO_PROFILER_MSG +} +void xine_profiler_print_results (void) { + NO_PROFILER_MSG +} + #endif + + -- cgit v1.2.3