1 #ifndef __HP5400_DEBUG_H_
2 #define __HP5400_DEBUG_H_
3 
4 /* sane - Scanner Access Now Easy.
5    Copyright (C) 2003 Martijn van Oosterhout <kleptog@svana.org>
6    Copyright (C) 2003 Thomas Soumarmon <thomas.soumarmon@cogitae.net>
7 
8    Originally copied from HP3300 testtools. Original notice follows:
9 
10    Copyright (C) 2001 Bertrik Sikken (bertrik@zonnet.nl)
11 
12    This file is part of the SANE package.
13 
14    This program is free software; you can redistribute it and/or
15    modify it under the terms of the GNU General Public License
16    as published by the Free Software Foundation; either version 2
17    of the License, or (at your option) any later version.
18 
19    This program is distributed in the hope that it will be useful,
20    but WITHOUT ANY WARRANTY; without even the implied warranty of
21    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22    GNU General Public License for more details.
23 
24    You should have received a copy of the GNU General Public License
25    along with this program.  If not, see <https://www.gnu.org/licenses/>.
26 
27    As a special exception, the authors of SANE give permission for
28    additional uses of the libraries contained in this release of SANE.
29 
30    The exception is that, if you link a SANE library with other files
31    to produce an executable, this does not by itself cause the
32    resulting executable to be covered by the GNU General Public
33    License.  Your use of that executable is in no way restricted on
34    account of linking the SANE library code into it.
35 
36    This exception does not, however, invalidate any other reasons why
37    the executable file might be covered by the GNU General Public
38    License.
39 
40    If you submit changes to SANE to the maintainers to be included in
41    a subsequent release, you agree by submitting the changes that
42    those changes may be distributed with this exception intact.
43 
44    If you write modifications of your own for SANE, it is your choice
45    whether to permit this exception to apply to your modifications.
46    If you do not wish that, delete this exception notice.
47 
48 */
49 
50 #ifndef STANDALONE
51 
52 #define DEBUG_NOT_STATIC
53 #define DEBUG_DECLARE_ONLY
54 #include "../include/sane/sanei_debug.h"
55 
56 #define DBG_ASSERT  1
57 #define DBG_ERR     16
58 #define DBG_MSG     32
59 #define HP5400_DBG DBG
60 #define HP5400_SANE_STATIC static
61 
62 
63 #else
64 
65 #include <stdio.h>
66 #define LOCAL_DBG
67 #define HP5400_DBG fprintf
68 extern FILE *DBG_ASSERT;
69 extern FILE *DBG_ERR;
70 extern FILE *DBG_MSG;
71 
72 void  hp5400_dbg_start();
73 
74 #define HP5400_SANE_STATIC
75 
76 #endif
77 
78 
79 
80 #endif
81