]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/debug-private.h
2 * Private debugging APIs for CUPS.
4 * Copyright © 2007-2018 by Apple Inc.
5 * Copyright © 1997-2005 by Easy Software Products.
7 * Licensed under Apache License v2.0. See the file "LICENSE" for more
11 #ifndef _CUPS_DEBUG_PRIVATE_H_
12 # define _CUPS_DEBUG_PRIVATE_H_
16 * Include necessary headers...
19 # include <cups/versioning.h>
28 # endif /* __cplusplus */
32 * The debug macros are used if you compile with DEBUG defined.
36 * DEBUG_set("logfile", "level", "filter", 1)
38 * The DEBUG_set macro allows an application to programmatically enable (or
39 * disable) debug logging. The arguments correspond to the CUPS_DEBUG_LOG,
40 * CUPS_DEBUG_LEVEL, and CUPS_DEBUG_FILTER environment variables. The 1 on the
41 * end forces the values to override the environment.
45 # define DEBUG_set(logfile,level,filter) _cups_debug_set(logfile,level,filter,1)
47 # define DEBUG_set(logfile,level,filter)
55 extern void _cups_debug_set(const char *logfile
, const char *level
, const char *filter
, int force
) _CUPS_PRIVATE
;
57 extern int _cups_gettimeofday(struct timeval
*tv
, void *tz
) _CUPS_PRIVATE
;
58 # define gettimeofday(a,b) _cups_gettimeofday(a, b)
63 # endif /* __cplusplus */
65 #endif /* !_CUPS_DEBUG_PRIVATE_H_ */