r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
[gd/samba/.git] / source / printing / print_test.c
1 /*
2  * Printing backend for the build farm
3  *
4  * Copyright (C) Volker Lendecke 2006
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  * 
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  * 
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, see <http://www.gnu.org/licenses/>.
18  */
19
20 #include "includes.h"
21 #include "printing.h"
22
23 #if defined(DEVELOPER) || defined(ENABLE_BUILD_FARM_HACKS)
24
25 static int test_queue_get(const char *printer_name,
26                           enum printing_types printing_type,
27                           char *lpq_command,
28                           print_queue_struct **q,
29                           print_status_struct *status)
30 {
31         return -1;
32 }
33
34 static int test_queue_pause(int snum)
35 {
36         return -1;
37 }
38
39 static int test_queue_resume(int snum)
40 {
41         return -1;
42 }
43
44 static int test_job_delete(const char *sharename, const char *lprm_command,
45                            struct printjob *pjob)
46 {
47         return -1;
48 }
49
50 static int test_job_pause(int snum, struct printjob *pjob)
51 {
52         return -1;
53 }
54
55 static int test_job_resume(int snum, struct printjob *pjob)
56 {
57         return -1;
58 }
59
60 static int test_job_submit(int snum, struct printjob *pjob)
61 {
62         return -1;
63 };
64
65 struct printif test_printif =
66 {
67         PRINT_TEST,
68         test_queue_get,
69         test_queue_pause,
70         test_queue_resume,
71         test_job_delete,
72         test_job_pause,
73         test_job_resume,
74         test_job_submit,
75 };
76
77 #else
78  /* this keeps fussy compilers happy */
79  void print_test_dummy(void);
80  void print_test_dummy(void) {}
81 #endif /* DEVELOPER||ENABLE_BUILD_FARM_HACKS */