r23779: Change from v2 or later to v3 or later.
[bbaumbach/samba-autobuild/.git] / source3 / 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, write to the Free Software
18  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19  */
20
21 #include "includes.h"
22 #include "printing.h"
23
24 #if defined(DEVELOPER) || defined(ENABLE_BUILD_FARM_HACKS)
25
26 static int test_queue_get(const char *printer_name,
27                           enum printing_types printing_type,
28                           char *lpq_command,
29                           print_queue_struct **q,
30                           print_status_struct *status)
31 {
32         return -1;
33 }
34
35 static int test_queue_pause(int snum)
36 {
37         return -1;
38 }
39
40 static int test_queue_resume(int snum)
41 {
42         return -1;
43 }
44
45 static int test_job_delete(const char *sharename, const char *lprm_command,
46                            struct printjob *pjob)
47 {
48         return -1;
49 }
50
51 static int test_job_pause(int snum, struct printjob *pjob)
52 {
53         return -1;
54 }
55
56 static int test_job_resume(int snum, struct printjob *pjob)
57 {
58         return -1;
59 }
60
61 static int test_job_submit(int snum, struct printjob *pjob)
62 {
63         return -1;
64 };
65
66 struct printif test_printif =
67 {
68         PRINT_TEST,
69         test_queue_get,
70         test_queue_pause,
71         test_queue_resume,
72         test_job_delete,
73         test_job_pause,
74         test_job_resume,
75         test_job_submit,
76 };
77
78 #else
79  /* this keeps fussy compilers happy */
80  void print_test_dummy(void);
81  void print_test_dummy(void) {}
82 #endif /* DEVELOPER||ENABLE_BUILD_FARM_HACKS */